ADTF
3.18.3
|
the engine source More...
Public Member Functions | |
Source (IMappingEnvironment &env) | |
CTOR. More... | |
Source (const Source &)=delete | |
no copy CTOR | |
Source & | operator= (const Source &)=delete |
no copy assignment operator More... | |
~Source () | |
DTOR. | |
a_util::result::Result | create (const mapping::MapSource &map_source, const std::string &type_description) |
Creation method to fill the object with data. More... | |
a_util::result::Result | addAssignment (const ddl::mapping::MapConfiguration &map_config, const std::string &source_element, TargetElement *target_element) |
Method to add a new pair of source element and target element to the intern assignment list. More... | |
a_util::result::Result | addTrigger (const MapConfiguration &map_config, TriggerBase *trigger) |
Method to add a new trigger to the intern trigger list. More... | |
a_util::result::Result | removeAssignmentsFor (const Target *target) |
Method to remove all elements of a target from the intern assignment list. More... | |
const std::string & | getTypeName () const |
Getter for the source type. More... | |
const Assignments & | getAssigmentList () const |
Getter for the assignment list. More... | |
a_util::result::Result | onSampleReceived (const void *data, size_t size) |
Method to handle a sample when it is received. More... | |
Public Member Functions inherited from ISignalListener | |
virtual | ~ISignalListener () |
DTOR. | |
Private Attributes | |
IMappingEnvironment & | _env |
handle_t | _handle |
std::string | _name |
std::string | _type_name |
std::string | _type_description |
Assignments | _assignments |
TargetRefList | _targets |
std::unique_ptr< ddl::codec::CodecFactory > | _codec_factory |
TypeMap | _type_map |
TargetElementList | _received_elements |
Triggers | _triggers |
Source | ( | IMappingEnvironment & | env | ) |
CTOR.
[in] | env | The mapping environment |
a_util::result::Result addAssignment | ( | const ddl::mapping::MapConfiguration & | map_config, |
const std::string & | source_element, | ||
TargetElement * | target_element | ||
) |
Method to add a new pair of source element and target element to the intern assignment list.
[in] | map_config | The Configuration instance |
[in] | source_element | The name of the source element to map |
[in] | target_element | The target element instance |
a_util::result::SUCCESS | Everything went fine |
a_util::result::Result addTrigger | ( | const MapConfiguration & | map_config, |
TriggerBase * | trigger | ||
) |
Method to add a new trigger to the intern trigger list.
[in] | map_config | The Configuration instance |
[in] | trigger | The trigger |
a_util::result::SUCCESS | Everything went fine |
a_util::result::Result create | ( | const mapping::MapSource & | map_source, |
const std::string & | type_description | ||
) |
Creation method to fill the object with data.
[in] | map_source | The soucre representation from mapping configuration |
[in] | type_description | The description for the source type |
a_util::result::SUCCESS | Everything went fine |
ERR_FAILED | Error while filing the object |
const Assignments& getAssigmentList | ( | ) | const |
Getter for the assignment list.
const std::string& getTypeName | ( | ) | const |
Getter for the source type.
|
virtual |
Method to handle a sample when it is received.
[in] | data | The memory location of the received buffer |
[in] | size | The memory size of the received buffer |
a_util::result::SUCCESS | Everything went fine |
Implements ISignalListener.
a_util::result::Result removeAssignmentsFor | ( | const Target * | target | ) |
Method to remove all elements of a target from the intern assignment list.
[in] | target | The target to unmap |
a_util::result::SUCCESS | Everything went fine |