OpenASIP
2.0
|
#include <ProDeOptionsSerializer.hh>
Public Member Functions | |
ProDeOptionsSerializer () | |
virtual | ~ProDeOptionsSerializer () |
Public Member Functions inherited from GUIOptionsSerializer | |
GUIOptionsSerializer (std::string configurationName) | |
virtual | ~GUIOptionsSerializer () |
void | writeState (const ObjectState *optionsState) |
ObjectState * | readState () |
void | writeOptions (const GUIOptions &options) |
GUIOptions * | readOptions () |
Public Member Functions inherited from XMLSerializer | |
XMLSerializer () | |
virtual | ~XMLSerializer () |
void | setSourceFile (const std::string &fileName) |
void | setSourceString (const std::string &source) |
void | setDestinationFile (const std::string &fileName) |
void | setDestinationString (std::string &destination) |
void | setSchemaFile (const std::string &fileName) |
void | setUseSchema (bool useSchema) |
void | setXMLNamespace (std::string nsUri) |
Public Member Functions inherited from TCETools::Serializer | |
virtual | ~Serializer () |
Private Member Functions | |
ObjectState * | convertToConfigFileFormat (const ObjectState *options) const |
ObjectState * | convertToOptionsObjectFormat (const ObjectState *root) const |
ProDeOptionsSerializer (const ProDeOptionsSerializer &) | |
Copying not allowed. More... | |
ProDeOptionsSerializer & | operator= (const ProDeOptionsSerializer &) |
Assignment not allowed. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from XMLSerializer | |
std::string | sourceFile () const |
Reads/writes ProDe options from/to an XML file.
Definition at line 43 of file ProDeOptionsSerializer.hh.
ProDeOptionsSerializer::ProDeOptionsSerializer | ( | ) |
Constructor.
Definition at line 53 of file ProDeOptionsSerializer.cc.
|
virtual |
|
private |
Copying not allowed.
|
privatevirtual |
Converts the given ObjectState tree created by ProDeOptions::saveState to the format of configuration file.
options | ObjectState tree to be converted. |
Reimplemented from GUIOptionsSerializer.
Definition at line 74 of file ProDeOptionsSerializer.cc.
References ObjectState::addChild(), GUIOptionsSerializer::convertToConfigFileFormat(), options, ProDeOptions::OSKEY_UNDO_STACK_SIZE, ObjectState::setAttribute(), UNDO, and UNDO_SIZE.
|
privatevirtual |
Creates a new ObjectState tree which can be given to ProDeOptions constructor. The tree is created according to the given tree which matches with the syntax of the options file.
root | Root node of the ObjectState tree to be converted. |
Reimplemented from GUIOptionsSerializer.
Definition at line 99 of file ProDeOptionsSerializer.cc.
References ObjectState::childByName(), GUIOptionsSerializer::convertToOptionsObjectFormat(), DEFAULT_UNDO_SIZE, ObjectState::hasChild(), options, ProDeOptions::OSKEY_UNDO_STACK_SIZE, ObjectState::stringAttribute(), UNDO, and UNDO_SIZE.
|
private |
Assignment not allowed.