Enum Table function with type string "ddl_enum_table". The callable function retrieved with getCallable() will transform the given value to another mapped value.
More...
#include <ddl_enum_table_function.h>
Inherits ddl::mapping::MapperElementBase< Function >.
Enum Table function with type string "ddl_enum_table". The callable function retrieved with getCallable() will transform the given value to another mapped value.
Properties:
- "description" : DDL description for enum types
- "from" : the enum type name of the source
- "to" : the enum type name of the target
- "table" : a value assignment table like: ENUM_VALUE_OF_FROM_1=ENUM_VALUE_OF_TO_5
ENUM_VALUE_OF_FROM_2=ENUM_VALUE_OF_TO_1
- "default" : the enum value i.e. ENUM_VALUE_OF_TO_1 if assignment is not defined within "table" property
◆ DDLEnumTableFunction()
| ddl::mapping::DDLEnumTableFunction::DDLEnumTableFunction |
( |
std::string | name, |
|
|
Properties | properties ) |
CTOR.
- Parameters
-
| name | the name of the instance |
| properties | the properties for the instance |
◆ getCallable()
| std::shared_ptr< Function::Callable > ddl::mapping::DDLEnumTableFunction::getCallable |
( |
| ) |
const |
|
overridevirtual |
◆ getDefaultProperties()
| static Properties ddl::mapping::DDLEnumTableFunction::getDefaultProperties |
( |
| ) |
|
|
inlinestatic |
◆ getDescription()
◆ getType()
| static std::string ddl::mapping::DDLEnumTableFunction::getType |
( |
| ) |
|
|
inlinestatic |
Get the Type as string to register within factory.
- Returns
- std::string
The documentation for this class was generated from the following file: