MapEnumTableTransformation represents a transformation between to enumerations.
More...
#include <map_transformation.h>
Inherits ddl::mapping::MapTransformationBase.
|
|
using | ConversionMap = std::map<int64_t, int64_t> |
| | Alias for the conversion map.
|
| |
|
|
class | MapTransformationBase |
| |
MapEnumTableTransformation represents a transformation between to enumerations.
◆ MapEnumTableTransformation()
| ddl::mapping::MapEnumTableTransformation::MapEnumTableTransformation |
( |
MapConfiguration * | config, |
|
|
const std::string & | name ) |
CTOR
- Parameters
-
| [in] | config | The configuration |
| [in] | name | The transformation name |
◆ addConversion()
| a_util::result::Result ddl::mapping::MapEnumTableTransformation::addConversion |
( |
const std::string & | from, |
|
|
const std::string & | to ) |
Add a conversion as string
- Parameters
-
| [in] | from | string for source value |
| [in] | to | string for target value |
- Return values
-
| a_util::result::SUCCESS | Everything went fine |
◆ clone()
◆ evaluate()
| double ddl::mapping::MapEnumTableTransformation::evaluate |
( |
double | value | ) |
const |
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements ddl::mapping::MapTransformationBase.
◆ getConversions()
| const ConversionMap & ddl::mapping::MapEnumTableTransformation::getConversions |
( |
| ) |
const |
◆ getConversionsStr()
| const std::map< std::string, std::string > & ddl::mapping::MapEnumTableTransformation::getConversionsStr |
( |
| ) |
const |
Returns conversion list as string
◆ getDefault()
| int64_t ddl::mapping::MapEnumTableTransformation::getDefault |
( |
| ) |
const |
◆ getDefaultStr()
| std::string ddl::mapping::MapEnumTableTransformation::getDefaultStr |
( |
| ) |
const |
Returns default value as string
◆ getEnumFrom()
| const std::string & ddl::mapping::MapEnumTableTransformation::getEnumFrom |
( |
| ) |
const |
Returns the name of the source enumeration
◆ getEnumTo()
| const std::string & ddl::mapping::MapEnumTableTransformation::getEnumTo |
( |
| ) |
const |
Returns the name of the target enumeration
◆ isEqual()
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Implements ddl::mapping::MapTransformationBase.
◆ removeConversion()
Remove a conversion as string
- Parameters
-
| [in] | from | string for source value |
- Return values
-
| a_util::result::SUCCESS | Everything went fine |
◆ setDefault()
| a_util::result::Result ddl::mapping::MapEnumTableTransformation::setDefault |
( |
const std::string & | default_value | ) |
|
Set default value as string
- Parameters
-
| [in] | default_value | string for default value |
- Return values
-
| a_util::result::SUCCESS | Everything went fine |
◆ setEnums()
| a_util::result::Result ddl::mapping::MapEnumTableTransformation::setEnums |
( |
const std::string & | enum_from, |
|
|
const std::string & | enum_to ) |
Set the name of the target and source enumerations
- Parameters
-
| [in] | enum_from | input enumeration name |
| [in] | enum_to | output enumeration name |
- Return values
-
| ERR_INVALID_TYPE | Enums not found in ddl |
| a_util::result::SUCCESS | Everything went fine |
The documentation for this class was generated from the following file: