Public Member Functions |
| | FileStorage () |
| | The constructors.
|
| |
| | FileStorage (const String &filename, int flags, const String &encoding=String()) |
| |
| virtual | ~FileStorage () |
| | the destructor. calls release()
|
| |
| void | endWriteStruct () |
| | Finishes writing nested structure (should pair startWriteStruct())
|
| |
| FileNode | getFirstTopLevelNode () const |
| | Returns the first element of the top-level mapping.
|
| |
| int | getFormat () const |
| | Returns the current format.
|
| |
| virtual bool | isOpened () const |
| | Checks whether the file is opened.
|
| |
| virtual bool | open (const String &filename, int flags, const String &encoding=String()) |
| | Opens a file.
|
| |
| FileNode | operator[] (const char *nodename) const |
| |
| FileNode | operator[] (const String &nodename) const |
| | Returns the specified element of the top-level mapping.
|
| |
| virtual void | release () |
| | Closes the file and releases all the memory buffers.
|
| |
| virtual String | releaseAndGetString () |
| | Closes the file and releases all the memory buffers.
|
| |
| FileNode | root (int streamidx=0) const |
| | Returns the top-level mapping.
|
| |
| void | startWriteStruct (const String &name, int flags, const String &typeName=String()) |
| | Starts to write a nested structure (sequence or a mapping).
|
| |
| void | write (const String &name, const Mat &val) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| void | write (const String &name, const std::vector< String > &val) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| void | write (const String &name, const String &val) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| void | write (const String &name, double val) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| void | write (const String &name, int val) |
| | Simplified writing API to use with bindings.
|
| |
| void | write (const String &name, int64_t val) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| void | writeComment (const String &comment, bool append=false) |
| | Writes a comment.
|
| |
| void | writeRaw (const String &fmt, const void *vec, size_t len) |
| | Writes multiple numbers.
|
| |