ADTF  3.18.3
mapping_engine.h
Go to the documentation of this file.
1 
21 #ifndef MAPPINGENGINE_HEADER
22 #define MAPPINGENGINE_HEADER
23 
33 
34 namespace ddl {
35 namespace mapping {
36 namespace rt {
42 public:
48 
53 
61 
71  a_util::result::Result Map(const std::string& target_name, handle_t& mapped_signal);
72 
80 
88 
95 
105 
113  bool hasTriggers(handle_t mapped_signal) const;
114 
126  void* target_buffer,
127  size_t target_buffer_size) const;
128 
136 
137 private:
145 
146 private:
147  IMappingEnvironment& _env;
148  bool _running;
149 
150  MapConfiguration _map_config;
151  TargetMap _targets;
152  SourceMap _sources;
153  TriggerMap _triggers;
154 };
155 
156 } // namespace rt
157 } // namespace mapping
158 } // namespace ddl
159 #endif // MAPPINGENGINE_HEADER
A common result class usable as return value throughout.
MapConfiguration is the central class of the mapping::dd namespace.
Mapping environment interface class This in combination with ISignalListener forms the functionality ...
The mapping engine to create the targets.
MappingEngine(IMappingEnvironment &env)
CTOR.
a_util::result::Result unmapAll()
Method to reinitialize the existing mapping structure.
a_util::result::Result Map(const std::string &target_name, handle_t &mapped_signal)
Method to instanciate or expand the mapping structure for one particular target.
a_util::result::Result getCurrentData(handle_t mapped_signal, void *target_buffer, size_t target_buffer_size) const
Method to send current data.
a_util::result::Result setConfiguration(const MapConfiguration &config)
Setter for the current mapping configuration.
bool hasTriggers(handle_t mapped_signal) const
Method to know if signal has triggers or not.
a_util::result::Result reset()
Method to reset target buffers.
a_util::result::Result unmap(handle_t mapped_signal)
Method to remove a target from the existing mapping structure.
a_util::result::Result start()
Method to start mapping.
a_util::result::Result initializeModel()
Method to give an initial value to all targets.
a_util::result::Result stop()
Method to stop mapping.
std::map< std::string, TriggerBase * > TriggerMap
type for trigger map.
Definition: trigger.h:76
std::map< std::string, Target * > TargetMap
Public composite types used in the mapping::rt namespace.
Definition: target.h:185
std::map< std::string, Source * > SourceMap
Public composite types used in the mapping::rt namespace.
Definition: source.h:174