The mapping engine to create the targets.
More...
The mapping engine to create the targets.
Definition at line 41 of file mapping_engine.h.
◆ MappingEngine()
CTOR.
- Parameters
-
[in] | env | - Mapping environment, used as interface |
◆ getCurrentData()
Method to send current data.
- Parameters
-
[in] | mapped_signal | The target handle |
[in] | target_buffer | The pointer referencing the target buffer |
[in] | target_buffer_size | The size of the target buffer |
- Return values
-
a_util::result::SUCCESS | Everything went fine |
ERR_INVALID_ARG | Invalid target handle or target buffer is NULL |
ERR_MEMORY | Target buffer not large enough |
◆ hasTriggers()
bool hasTriggers |
( |
handle_t |
mapped_signal | ) |
const |
Method to know if signal has triggers or not.
- Parameters
-
[in] | mapped_signal | The target handle |
- Return values
-
true | Signal has triggers |
false | Signal has no triggers |
◆ initializeModel()
Method to give an initial value to all targets.
- Return values
-
a_util::result::SUCCESS | Everything went fine |
ERR_FAILED | Error during initialization |
◆ Map()
Method to instanciate or expand the mapping structure for one particular target.
- Parameters
-
[in] | target_name | The target name |
[out] | mapped_signal | - Destination parameter for the signal handle |
- Return values
-
a_util::result::SUCCESS | Everything went fine |
ERR_INVALID_ARG | Error target already mapped or not found in mapping configuration |
ERR_FAILED | Error during creation of the mapping |
◆ reset()
Method to reset target buffers.
- Return values
-
a_util::result::SUCCESS | Everything went fine |
ERR_FAILED | Error during runtime |
◆ setConfiguration()
Setter for the current mapping configuration.
- Parameters
-
[in] | config | - The Configuration instance |
- Return values
-
a_util::result::SUCCESS | Everything went fine |
◆ start()
Method to start mapping.
- Return values
-
a_util::result::SUCCESS | Everything went fine |
ERR_FAILED | Error during runtime |
◆ stop()
Method to stop mapping.
- Return values
-
a_util::result::SUCCESS | Everything went fine |
◆ unmap()
Method to remove a target from the existing mapping structure.
- Parameters
-
[in] | mapped_signal | - Target handle |
- Return values
-
a_util::result::SUCCESS | Everything went fine |
ERR_INVALID_ARG | Error target not found in mapping structure |
ERR_FAILED | Error during removal |
◆ unmapAll()
Method to reinitialize the existing mapping structure.
- Return values
-
a_util::result::SUCCESS | Everything went fine |
ERR_FAILED | Error during reinitialization |