base class for writing to XML files. More...
#include <openrave.h>
Public Member Functions | |
virtual | ~BaseXMLWriter () |
virtual const std::string & | GetFormat () const =0 |
return the format for the data writing, should be all lower capitals. | |
virtual void | SetCharData (const std::string &data)=0 |
saves character data to the child. Special characters like '<' are automatically converted to fit inside XML. | |
virtual BaseXMLWriterPtr | AddChild (const std::string &xmltag, const AttributesList &atts=AttributesList())=0 |
returns a writer for child elements | |
base class for writing to XML files.
OpenRAVE Interfaces accept a BaseXMLWriter instance and call its write methods to write the data.
Definition at line 784 of file openrave.h.
|
inlinevirtual |
Definition at line 787 of file openrave.h.
|
pure virtual |
returns a writer for child elements
Implemented in OpenRAVE::xmlreaders::StreamXMLWriter.
|
pure virtual |
return the format for the data writing, should be all lower capitals.
Samples formats are 'openrave', 'collada'
Implemented in OpenRAVE::xmlreaders::StreamXMLWriter.
|
pure virtual |
saves character data to the child. Special characters like '<' are automatically converted to fit inside XML.
openrave_exception | throws if this element cannot have character data or the character data was not written |
Implemented in OpenRAVE::xmlreaders::StreamXMLWriter.