Dev Essential
Loading...
Searching...
No Matches
mapping_ddl_source.h
Go to the documentation of this file.
1
19
20#ifndef _MAPPING_DDL_SOURCE_HEADER
21#define _MAPPING_DDL_SOURCE_HEADER
22
26
27namespace ddl {
28namespace mapping {
29namespace detail {
30// forward declaration
31struct SharedDDLSourceState;
32} // namespace detail
33
38class DDLSource : public MapperElementBase<MemorySource> {
39public:
44 static std::string getType()
45 {
46 return "ddl";
47 }
48
53 {
54 return {{"type", {""}}, {"description", {""}}, {"serialized", {false}}};
55 }
56
57 DDLSource() = delete;
63 DDLSource(std::string name, Properties properties);
64
65 ~DDLSource();
66
67 std::vector<std::string> getAllValues() const override;
68 std::shared_ptr<const SourceValue> getValue(const std::string& value_name) const override;
69 size_t getExpectedDataSize() const override;
70 void updateMemory(std::shared_ptr<const Memory> memory) override;
71
72private:
73 std::shared_ptr<detail::SharedDDLSourceState> _shared_state;
74};
75
76} // namespace mapping
77} // namespace ddl
78#endif // _MAPPING_DDL_SOURCE_HEADER
DDLSource implementation class representing a MemorySource that provides named source values for ddl ...
Definition mapping_ddl_source.h:38
std::vector< std::string > getAllValues() const override
Get all value names.
DDLSource(std::string name, Properties properties)
CTOR.
static Properties getDefaultProperties()
Get the Default Properties to register within factory.
Definition mapping_ddl_source.h:52
size_t getExpectedDataSize() const override
Get the expected data size in bytes.
std::shared_ptr< const SourceValue > getValue(const std::string &value_name) const override
Get the value source with a certain name.
void updateMemory(std::shared_ptr< const Memory > memory) override
Update the sources memory buffer.
static std::string getType()
Get the Type as string to register within factory.
Definition mapping_ddl_source.h:44
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