ot::XMLWriter Class ReferenceThis class writes out the contents of the Context as a valid XML file. More...
Collaboration diagram for ot::XMLWriter:
Public Member Functions
|XMLWriter (Context &context_, unsigned int indent_=2)|
|void||write (const char *file)|
|unsigned int||getIndent ()|
|void||setIndent (unsigned int ind)|
Detailed DescriptionThis class writes out the contents of the Context as a valid XML file.
It can be used to store a changed tracker graph in a file or some other device accessible by an output stream. It can be reused on a context as often as desired and will allways record the current status of the context, as stored in the XML elements.
- Gerhard Reitmayr
Constructor & Destructor Documentation
|unsigned int|| indent_ = |
Member Function Documentation
|unsigned int ot::XMLWriter::getIndent||(||)||
|void ot::XMLWriter::setIndent||(||unsigned int||ind||)||
|void ot::XMLWriter::write||(||const char *||file||)|
writes the tracker graph and configuration to a file given as the parameter.
It creates the file if necessary. If the file exists, it will be overwritten by the new configuration data.
file char array containing the file name.
Referenced by main().
Member Data Documentation
|unsigned int ot::XMLWriter::indent
The documentation for this class was generated from the following files: