14 #ifndef MAPPINGENVIRONMENT_HEADER
15 #define MAPPINGENVIRONMENT_HEADER
72 const char* type_name,
111 const char* target_type,
113 size_t target_size) = 0;
133 const char*& type_description) = 0;
A common result class usable as return value throughout.
Mapping environment interface class This in combination with ISignalListener forms the functionality ...
virtual a_util::result::Result unregisterSource(handle_t handle)=0
Method to unregister a source signal.
virtual a_util::result::Result registerSource(const char *source_name, const char *type_name, ISignalListener *listener, handle_t &handle)=0
Method to register a source signal.
virtual a_util::result::Result sendTarget(handle_t target, const void *data, size_t size, timestamp_t time_stamp)=0
Method to send a target signal.
virtual a_util::result::Result targetMapped(const char *target_name, const char *target_type, handle_t target, size_t target_size)=0
targetMapped is invoked by the mapping engine upon the creation of a mapping.
virtual timestamp_t getTime() const =0
getTime is used by the mapping engine to get the current time.
virtual a_util::result::Result targetUnmapped(const char *target_name, handle_t target)=0
targetUnmapped is invoked by the mapping engine upon the destruction of a mapping.
virtual a_util::result::Result resolveType(const char *type_name, const char *&type_description)=0
Method to get the ddl description for a type.
virtual a_util::result::Result unregisterPeriodicTimer(timestamp_t period_us, IPeriodicListener *listener)=0
registerPeriodicTimer is used by the mapping engine to unregister periodic timers
virtual ~IMappingEnvironment()
DTOR.
virtual a_util::result::Result registerPeriodicTimer(timestamp_t period_us, IPeriodicListener *listener)=0
registerPeriodicTimer is used by the mapping engine to register periodic timers
virtual void onTimer(timestamp_t now)=0
onTimer is to be called by the mapping environment periodically.
virtual ~IPeriodicListener()
DTOR.
Signal listener interface class.
virtual ~ISignalListener()
DTOR.
virtual a_util::result::Result onSampleReceived(const void *data, size_t size)=0
onSampleReceived is to be called by the mapping environment upon receiving a sample on a registered s...
std::int64_t timestamp_t
Type of a timestamp value. If not otherwise stated, always in microseconds.
void * handle_t
Type of a handle value.
definition of the ddl namespace
Common include for component a_util::result.