Beatmup
|
Enables construction of an operation from its serialized representation. More...
#include <operation.h>
Public Member Functions | |
Deserializer (const char *opType) | |
Registers a new deserializer capable of building an operation from a listing block. More... | |
virtual AbstractOperation * | deserialize (Context &context, const Listing::Block &block)=0 |
Constructs an operation from a serialized representation (a listing block). More... | |
Static Public Member Functions | |
static std::map< std::string, Deserializer * > & | getDeserializersMap () |
Enables construction of an operation from its serialized representation.
Every new instance of this class is registered in a static map and used to build operations during the model deserialization.
Definition at line 248 of file operation.h.
AbstractOperation::Deserializer::Deserializer | ( | const char * | opType | ) |
Registers a new deserializer capable of building an operation from a listing block.
[in] | opType | Operation type |
Definition at line 89 of file operation.cpp.
|
static |
Definition at line 83 of file operation.cpp.
|
pure virtual |
Constructs an operation from a serialized representation (a listing block).
Raises exceptions if the representation contains errors or has missing parameters.
[in] | context | A context instance passed to the operation constructor if needed |
[in] | block | The block containing the operation description |