OpenASIP
2.0
|
#include <OperationPropertyLoader.hh>
Public Member Functions | |
OperationPropertyLoader () | |
virtual | ~OperationPropertyLoader () |
void | loadOperationProperties (Operation &operation, const OperationModule &module) |
Private Types | |
typedef std::map< std::string, std::vector< ObjectState * > > | ObjectStateCache |
Container containing already read ObjectState trees. More... | |
typedef ObjectStateCache::iterator | MapIter |
Iterator for map containing already read ObjectState trees. More... | |
typedef ObjectStateCache::value_type | ValueType |
value_type for map containing already read ObjectState trees. More... | |
Private Member Functions | |
OperationPropertyLoader (const OperationPropertyLoader &) | |
Copying not allowed. More... | |
OperationPropertyLoader & | operator= (const OperationPropertyLoader &) |
Assignment not allowed. More... | |
void | loadModule (const OperationModule &module) |
Private Attributes | |
OperationSerializer | serializer_ |
Serializer instance. More... | |
ObjectStateCache | operations_ |
Cache for already read ObjectState trees. More... | |
Imports the static information contents of an operation from a data file.
Definition at line 51 of file OperationPropertyLoader.hh.
|
private |
Iterator for map containing already read ObjectState trees.
Definition at line 64 of file OperationPropertyLoader.hh.
|
private |
Container containing already read ObjectState trees.
Definition at line 61 of file OperationPropertyLoader.hh.
|
private |
value_type for map containing already read ObjectState trees.
Definition at line 66 of file OperationPropertyLoader.hh.
OperationPropertyLoader::OperationPropertyLoader | ( | ) |
|
virtual |
Destructor.
Definition at line 56 of file OperationPropertyLoader.cc.
References SequenceTools::deleteAllItems(), and operations_.
|
private |
Copying not allowed.
|
private |
Loads the module.
Saves its operations as an ObjectState objects.
module | The OperationModule. |
InstanceNotFound | If loading the module fails. |
Definition at line 120 of file OperationPropertyLoader.cc.
References __func__, ObjectState::child(), ObjectState::childCount(), Exception::errorMessage(), operations_, OperationModule::propertiesModule(), OperationSerializer::readState(), serializer_, and OperationSerializer::setSourceFile().
Referenced by loadOperationProperties().
void OperationPropertyLoader::loadOperationProperties | ( | Operation & | operation, |
const OperationModule & | module | ||
) |
Loads the properties of an operation.
If operation properties has not yet been loaded, it is done first.
operation | Operation which properties are loaded and updated. |
module | Module where properties are loaded from. |
InstanceNotFound | If reading of XML fails, if Operation fails to load its state, or if properties are not found at all. |
Definition at line 76 of file OperationPropertyLoader.cc.
References __func__, Exception::errorMessage(), loadModule(), Operation::loadState(), Operation::name(), operations_, Operation::OPRN_NAME, and OperationModule::propertiesModule().
|
private |
Assignment not allowed.
|
private |
Cache for already read ObjectState trees.
Definition at line 78 of file OperationPropertyLoader.hh.
Referenced by loadModule(), loadOperationProperties(), and ~OperationPropertyLoader().
|
private |
Serializer instance.
Definition at line 76 of file OperationPropertyLoader.hh.
Referenced by loadModule().