MapSource represents a mapping source from the configuration file.
More...
MapSource represents a mapping source from the configuration file.
Definition at line 31 of file map_source.h.
◆ MapSource()
CTOR.
- Parameters
-
[in] | name | signal name |
[in] | type | signal type |
[in] | config | the config |
◆ loadFromDOM()
Initializes the source from a source-dom element.
- Parameters
-
[in] | source | The dom element from which to import |
- Return values
-
ERR_INVALID_ARG | Missing name or type |
a_util::result::SUCCESS | Everything went fine |
◆ setName()
Set name.
- Parameters
-
[in] | new_name | The new name of the target |
- Return values
-
ERR_INVALID_STATE | No description found |
ERR_INVALID_ARG | Signal name already used in configuration |
a_util::result::SUCCESS | Everything went fine |
◆ setType()
Set type.
- Parameters
-
[in] | type_name | The type of the target |
- Return values
-
ERR_INVALID_STATE | No description found |
ERR_INVALID_ARG | Signal name already used in configuration |
ERR_INVALID_TYPE | Inconsistency with ddl |
a_util::result::SUCCESS | Everything went fine |
◆ writeToDOM()
Export source to a XML dom element.
- Parameters
-
[in] | dom_element | The dom element to be written |
- Return values
-
a_util::result::SUCCESS | Everything went fine |