ADTF
Loading...
Searching...
No Matches
mapping_ddl_target.h
Go to the documentation of this file.
1
19
20#ifndef _MAPPING_DDL_TARGET_HEADER
21#define _MAPPING_DDL_TARGET_HEADER
22
26
27namespace ddl {
28namespace mapping {
29namespace detail {
30// forward declaration
31struct SharedDDLTargetState;
32} // namespace detail
33
38class DDLTarget : public MapperElementBase<MemoryTarget> {
39public:
44 static std::string getType()
45 {
46 return "ddl";
47 }
48
53 {
54 return {{"type", {""}}, {"description", {""}}, {"serialized", {false}}};
55 }
56
57 DDLTarget() = delete;
63 DDLTarget(std::string name, Properties properties);
64 ~DDLTarget();
65
66 std::vector<std::string> getAllValues() const override;
67 std::shared_ptr<TargetValue> getValue(const std::string& value_name) const override;
68
69 size_t getExpectedDataSize() const override;
70 void updateMemory(std::shared_ptr<Memory> memory) override;
71 void updateEnd() override;
72
73private:
74 std::shared_ptr<detail::SharedDDLTargetState> _shared_state;
75 std::string _description;
76};
77
78} // namespace mapping
79} // namespace ddl
80#endif // _MAPPING_DDL_HEADER
DDLTarget implementation class representing a MemoryTarget that provides named target values for ddl ...
Definition mapping_ddl_target.h:38
void updateMemory(std::shared_ptr< Memory > memory) override
Sets the target's memory buffer where to set the values to.
static std::string getType()
Get the Type as string to register within factory.
Definition mapping_ddl_target.h:44
void updateEnd() override
Function callback interface that is called after a value was updated.
std::shared_ptr< TargetValue > getValue(const std::string &value_name) const override
Get the value Target with a certain name.
DDLTarget(std::string name, Properties properties)
CTOR.
static Properties getDefaultProperties()
Get the Default Properties to register within factory.
Definition mapping_ddl_target.h:52
std::vector< std::string > getAllValues() const override
Get all value names.
size_t getExpectedDataSize() const override
Get the expected data size of the buffer.
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