gatb.core-API-0.0.0
|
XML serialization of a IProperties instance. More...
#include <Property.hpp>
Inherits AbstractOutputPropertiesVisitor.
Public Member Functions | |
XmlDumpPropertiesVisitor (const std::string &filename, bool propertiesAsRoot=true, bool shouldIndent=true) | |
XmlDumpPropertiesVisitor (std::ostream &aStream, bool propertiesAsRoot=true, bool shouldIndent=true) | |
virtual | ~XmlDumpPropertiesVisitor () |
void | visitBegin () |
void | visitEnd () |
void | visitProperty (IProperty *prop) |
XML serialization of a IProperties instance.
This kind of visitor serializes into a file the content of a IProperties instance.
The output format is XML; the 'depth' attribute of each IProperty instance is used as a basis for building the XML tree.
XmlDumpPropertiesVisitor | ( | const std::string & | filename, |
bool | propertiesAsRoot = true , |
||
bool | shouldIndent = true |
||
) |
Constructor.
[in] | filename | : uri of the file where to serialize the instance. |
[in] | propertiesAsRoot | |
[in] | shouldIndent | : tells whether we should use indentation |
XmlDumpPropertiesVisitor | ( | std::ostream & | aStream, |
bool | propertiesAsRoot = true , |
||
bool | shouldIndent = true |
||
) |
Constructor.
[in] | aStream | : output stream |
[in] | propertiesAsRoot | |
[in] | shouldIndent | : tells whether we should use indentation |
|
virtual |
Desctructor.
|
virtual |
Called before the true visit of the IProperty instance.
Implements IPropertiesVisitor.
|
virtual |
Called after the true visit of the IProperty instance.
Implements IPropertiesVisitor.
|
virtual |
Visit of the IProperty instance.
[in] | prop | : the instance to be visited. |
Implements IPropertiesVisitor.