|
| XMLPersistenceOutputStream () |
| this constructor creates a new XML document that can be written afterwards with writeToFile or writeToString More...
|
|
| XMLPersistenceOutputStream (DOMElement *container) |
| this constructor takes an existing XML element - everything will be written relative to this element More...
|
|
virtual | ~XMLPersistenceOutputStream () |
| this will free the XML document if the first constructor was used More...
|
|
virtual void | writeToFile (const std::string &fileName) |
| Writes the complete tree to a file. More...
|
|
virtual void | writeToString (std::string &str) |
| Writes the subtree rooted by this node to a string. More...
|
|
| ~AbstractPersistenceOutputStream () override=default |
|
void | startStructWithVersion (int version, const char *name=nullptr) |
| start a versioned struct More...
|
|
template<typename T > |
void | write (const std::vector< T > &values, const char *name=nullptr) |
| Write vectors of primitive values to the stream. More...
|
|
template<typename T , size_t n, class DataContainer > |
void | write (const FloatingPointVector< T, n, DataContainer > &value, const char *name=nullptr) |
| Write float vectors like vec3f to the stream. More...
|
|
template<typename T , size_t n> |
void | write (const TVectorNDBase< T, n > &value, const char *name=nullptr) |
| Write integer vectors like ImageVector to the stream. More...
|
|
template<typename T , size_t n> |
void | write (const FloatingPointMatrix< T, n > &value, const char *name=nullptr) |
| Write float matrices like mat4 to the stream. More...
|
|
virtual void | writeObject (const Base *const obj, const char *name=nullptr) |
| Write a Base object to the stream. More...
|
|
virtual bool | isValidElementName (const char *name) |
| check if name is valid for use with persistence entries (by default this checks if the name is valid for use as a XML tag, but implementations may relax - or tighten - this check) More...
|
|
virtual void | write (bool value, const char *name=nullptr) |
| Write primitive values to the stream. More...
|
|
void | write (MLint32 value, const char *name=nullptr) |
|
void | write (MLuint32 value, const char *name=nullptr) |
|
void | write (MLint64 value, const char *name=nullptr) |
|
void | write (MLuint64 value, const char *name=nullptr) |
|
void | write (MLfloat value, const char *name=nullptr) |
|
void | write (MLdouble value, const char *name=nullptr) |
|
void | write (const std::string &value, const char *name=nullptr) |
|
void | write (const char *value, const char *name=nullptr) |
|
void | startList (const char *name=nullptr, const char *xmlItemName="Item", bool xmlSuppressScope=false) |
| Start a new list of values in the data stream, must be ended with endList(). More...
|
|
void | endList () |
| End reading/writing of the list. More...
|
|
void | startStruct (const char *name=nullptr) |
| Start a new struct of values in the data stream, must be ended with endStruct(). More...
|
|
void | endStruct () |
| End reading/writing of struct values. More...
|
|
bool | isBinary () const override |
| overridden methods More...
|
|
void | writeString (const char *name, const std::string &value) override |
| Abstract writing method that needs to be implemented by derived classes. More...
|
|
void | writeData (const void *data, size_t len, const char *name) override |
| Write binary data to stream. More...
|
|
void | startListImpl (const char *name, const char *xmlItemName, bool xmlSuppressScope) override |
| Abstract methods called by above methods, need to be implemented in derived classes. More...
|
|
void | endListImpl () override |
|
void | startStructImpl (const char *name) override |
|
void | endStructImpl () override |
|
void | setObjectID (int id) override |
| Implementation of Base object persistence, set attribute on currently open struct (implementation hint: these can be stored unnamed, if they are read or not is always deduced from the current state of the persistence stream)unique id for each pointer value - currently unused. More...
|
|
void | setObjectType (const char *type) override |
| base type name More...
|
|
void | setObjectVersion (int version) override |
| persistence version More...
|
|
void | writeValues (const char *name, const MLint32 *values, size_t n, bool fixedList) override |
| Abstract writing methods that need to be implemented by derived classes. More...
|
|
void | writeValues (const char *name, const MLuint32 *values, size_t n, bool fixedList) override |
|
void | writeValues (const char *name, const MLint64 *values, size_t n, bool fixedList) override |
|
void | writeValues (const char *name, const MLuint64 *values, size_t n, bool fixedList) override |
|
void | writeValues (const char *name, const MLfloat *values, size_t n, bool fixedList) override |
|
void | writeValues (const char *name, const MLdouble *values, size_t n, bool fixedList) override |
|
Implementation for AbstractPersistenceOutputStream using Xerces DOM Parser.
Definition at line 61 of file mlXMLPersistenceStream.h.