Dev Essential
Loading...
Searching...
No Matches
ddl_enum_table_function.h
Go to the documentation of this file.
1
19
20#ifndef _MAPPER_ENUM_TABLE_MODULE_HEADER
21#define _MAPPER_ENUM_TABLE_MODULE_HEADER
22
24
25namespace ddl {
26namespace mapping {
27
39class DDLEnumTableFunction : public MapperElementBase<Function> {
40public:
45 static std::string getType()
46 {
47 return "ddl_enum_table";
48 }
49
54 {
55 return {{"from", {}}, {"to", {}}, {"default", {}}, {"table", {}}, {"description", {}}};
56 }
57
58 DDLEnumTableFunction() = delete;
64 DDLEnumTableFunction(std::string name, Properties properties);
65
67 std::shared_ptr<Function::Callable> getCallable() const override;
68
73 {
77 std::unordered_map<uint64_t, uint64_t> _lookup_table;
82 };
83
84private:
85 void initialize();
86 TransformParameter _transform_parameter;
87};
88
89} // namespace mapping
90} // namespace ddl
91
92#endif // _MAPPER_ENUM_TABLE_MODULE_HEADER
Enum Table function with type string "ddl_enum_table". The callable function retrieved with getCallab...
Definition ddl_enum_table_function.h:39
std::shared_ptr< Function::Callable > getCallable() const override
Get a Function Callable.
static Properties getDefaultProperties()
Get the Default Properties to register within factory.
Definition ddl_enum_table_function.h:53
DDLEnumTableFunction(std::string name, Properties properties)
CTOR.
static std::string getType()
Get the Type as string to register within factory.
Definition ddl_enum_table_function.h:45
Function::Description getDescription() const override
Get the parameter descriptions.
std::unordered_map< std::string, ParameterDescription > Description
Definition mapper_interfaces.h:593
MapperElementBase(std::string name, Properties properties)
Definition mapper_base_types.h:43
definition of the mapping namespace
Definition ddl.h:50
std::unordered_map< std::string, Property > Properties
Properties class as set of key - property value pairs This proerties are used to adjust the readers a...
Definition mapper_interfaces.h:331
definition of the ddl namespace
Definition codec.h:21
Internal TransformParameter structure representing the "table" and "default" property.
Definition ddl_enum_table_function.h:73
std::unordered_map< uint64_t, uint64_t > _lookup_table
Definition ddl_enum_table_function.h:77
uint64_t _default_value
Definition ddl_enum_table_function.h:81