ADTF
3.18.2
|
cMapTransformation forms a base class for a single transformation More...
Public Member Functions | |
MapTransformationBase (MapConfiguration *config, const std::string &name) | |
CTOR. More... | |
virtual | ~MapTransformationBase () |
DTOR. | |
const std::string & | getName () const |
Returns the name of the transformation. | |
bool | isValid () const |
Returns the validity for the current description. | |
virtual bool | isEqual (const MapTransformationBase &other) const =0 |
Polymorphic comparison method. | |
virtual MapTransformationBase * | clone () const =0 |
Polymorphic clone method. | |
virtual double | evaluate (double value) const =0 |
Polymorphic evaluation template method. More... | |
Private Member Functions | |
a_util::result::Result | writeToDOM (a_util::xml::DOMElement &dom_element) const |
Export transformation to a XML dom element. More... | |
a_util::result::Result | setTypeFromDDL () |
Set Float values from Enumeration definition in DataDefinition-File. More... | |
Static Private Member Functions | |
static a_util::result::Result | createFromDOM (MapConfiguration *config, const a_util::xml::DOMElement &dom_element, MapTransformationBase *&destination) |
creates a polymorphic transformation instance from a dom element More... | |
static a_util::result::Result | create (MapConfiguration *config, const std::string &name, const std::string &type, MapTransformationBase *&destination) |
creates a polymorphic transformation instance from a dom element More... | |
cMapTransformation forms a base class for a single transformation
Definition at line 30 of file map_transformation.h.
MapTransformationBase | ( | MapConfiguration * | config, |
const std::string & | name | ||
) |
CTOR.
[in] | config | The configuration |
[in] | name | The transformation name |
|
staticprivate |
creates a polymorphic transformation instance from a dom element
[in] | config | The mapping configuration |
[in] | name | Name of the element |
[in] | type | Type of the element |
[out] | destination | The Transformation object to fill |
ERR_INVALID_ARG | Missing name or type |
a_util::result::SUCCESS | Everything went fine |
|
staticprivate |
creates a polymorphic transformation instance from a dom element
[in] | config | The configuration |
[in] | dom_element | The dom element from which to import |
[out] | destination | The Transformation object to fill |
ERR_INVALID_ARG | Missing name or type |
a_util::result::SUCCESS | Everything went fine |
|
pure virtual |
Polymorphic evaluation template method.
[in] | value | The value to evaluate |
Implemented in MapEnumTableTransformation, and MapPolynomTransformation.
|
private |
Set Float values from Enumeration definition in DataDefinition-File.
ERR_INVALID_TYPE | Inconsistency with ddl |
a_util::result::SUCCESS | Everything went fine |
|
private |
Export transformation to a XML dom element.
[in] | dom_element | The dom element from which to import |
a_util::result::SUCCESS | Everything went fine |