15#ifndef DDL_MAPPING_RT_SOURCE_HEADER
16#define DDL_MAPPING_RT_SOURCE_HEADER
30struct AssignmentStruct {
33 uintptr_t element_ptr_offset;
35 AssignmentStruct() : buffer_size(0), type32(0), element_ptr_offset(static_cast<uintptr_t>(-1))
39 bool operator==(
const AssignmentStruct& other)
const
41 return (element_ptr_offset == other.element_ptr_offset);
62#if defined(__GNUC__) && (__GNUC__ == 5) && defined(__QNX__)
63#pragma GCC diagnostic ignored \
69 typedef std::vector<std::pair<AssignmentStruct, TargetElementList>> Assignments;
70 typedef std::vector<std::pair<TriggerBase*, AssignmentStruct>> Triggers;
71 typedef std::vector<uint8_t> MemoryBuffer;
72 typedef std::set<const Target*> TargetRefList;
75#if defined(__GNUC__) && (__GNUC__ == 5) && defined(__QNX__)
76#pragma GCC diagnostic warning \
111 const std::string& type_description);
121 const std::string& source_element,
163 std::string _type_name;
164 std::string _type_description;
165 Assignments _assignments;
166 TargetRefList _targets;
167 std::unique_ptr<ddl::codec::CodecFactory> _codec_factory;
Definition result_type_decl.h:34
Definition map_configuration.h:36
Definition map_source.h:31
Definition mapping_environment_intf.h:56
Signal listener interface class.
Definition mapping_environment_intf.h:23
a_util::result::Result addTrigger(const MapConfiguration &map_config, TriggerBase *trigger)
a_util::result::Result removeAssignmentsFor(const Target *target)
Source(const Source &)=delete
no copy CTOR
Source & operator=(const Source &)=delete
no copy assignment operator
a_util::result::Result create(const mapping::MapSource &map_source, const std::string &type_description)
a_util::result::Result onSampleReceived(const void *data, size_t size)
const std::string & getTypeName() const
a_util::result::Result addAssignment(const ddl::mapping::MapConfiguration &map_config, const std::string &source_element, TargetElement *target_element)
Source(IMappingEnvironment &env)
const Assignments & getAssigmentList() const
TargetElement represents a single signal element in the target.
Definition element.h:59
Target represents a mapped target signal in the runtime api.
Definition target.h:34
base class representing a trigger
Definition trigger.h:24
void * handle_t
Type of a handle value.
Definition types.h:27
bool operator==(const Date &lhs, const Date &rhs)
definition of the rt namespace for mapping
Definition ddl.h:59
std::vector< TargetElement * > TargetElementList
the targets element list
Definition element.h:133
std::map< std::string, Source * > SourceMap
Public composite types used in the mapping::rt namespace.
Definition source.h:174
definition of the mapping namespace
Definition ddl.h:50
std::map< std::string, uint8_t > TypeMap
String -> Datatype Enum Map.
Definition element.h:32
definition of the ddl namespace
Definition codec.h:21