#include <map_configuration.h>
MapConfiguration is the central class of the mapping::dd namespace. It represents a whole mapping configuration which can be imported from a mapping configuration file.
◆ MapConfiguration() [1/4]
| ddl::mapping::MapConfiguration::MapConfiguration |
( |
| ) |
|
◆ MapConfiguration() [2/4]
◆ ~MapConfiguration()
| ddl::mapping::MapConfiguration::~MapConfiguration |
( |
| ) |
|
◆ MapConfiguration() [3/4]
| ddl::mapping::MapConfiguration::MapConfiguration |
( |
const MapConfiguration & | other | ) |
|
◆ MapConfiguration() [4/4]
◆ addSource()
| a_util::result::Result ddl::mapping::MapConfiguration::addSource |
( |
const std::string & | name, |
|
|
const std::string & | type ) |
Add a source signal to use in mapping
- Parameters
-
| [in] | name | The name of the source |
| [in] | type | The type of the source |
- Return values
-
| ERR_INVALID_STATE | No description found |
| ERR_INVALID_TYPE | Inconsistency with ddl |
| ERR_INVALID_ARG | Signal name already used in configuration |
| a_util::result::SUCCESS | Everything went fine |
◆ addTarget()
| a_util::result::Result ddl::mapping::MapConfiguration::addTarget |
( |
const std::string & | name, |
|
|
const std::string & | type ) |
Add a target signal to use in mapping
- Parameters
-
| [in] | name | The name of the target |
| [in] | type | The type of the target |
- Return values
-
| ERR_INVALID_STATE | No description found |
| ERR_INVALID_TYPE | Inconsistency with ddl |
| ERR_INVALID_ARG | Signal name already used in configuration |
| a_util::result::SUCCESS | Everything went fine |
◆ addTransformation()
| a_util::result::Result ddl::mapping::MapConfiguration::addTransformation |
( |
const std::string & | transformation_name, |
|
|
const std::string & | transformation_type ) |
Add a transformation to use in mapping
- Parameters
-
| [in] | transformation_name | The transformation name |
| [in] | transformation_type | The transformation type can be "Periodic", "Signal" or "Data" |
- Return values
-
| ERR_INVALID_STATE | No description found |
| ERR_INVALID_TYPE | Inconsistency with ddl |
| a_util::result::SUCCESS | Everything went fine |
◆ appendError()
| void ddl::mapping::MapConfiguration::appendError |
( |
const std::string & | error_string | ) |
const |
Append error to error list
◆ checkDDLConsistency()
Checks the configuration for consistency with ddl representation (all types, transformations etc. are known and present & many other problems)
- Return values
-
| ERR_INVALID_TYPE | Configuration is inconsistent with ddl, error list is populated and validity flags are set |
| a_util::result::SUCCESS | Everything went fine, configuration is consistent |
◆ getDD()
Get the reference ddl description
◆ getErrorList()
| const MapErrorList & ddl::mapping::MapConfiguration::getErrorList |
( |
| ) |
const |
Returns the error list, containing human readable error messages.
- Note
- The error list is filled by loadFromFile and loadFromDOM and is reset on every call
- Returns
- Const reference to the error list
◆ getHeader()
| const MapHeader & ddl::mapping::MapConfiguration::getHeader |
( |
| ) |
const |
Returns the mapping header of the configuration
◆ getHeaderDDPaths()
| const std::string & ddl::mapping::MapConfiguration::getHeaderDDPaths |
( |
| ) |
const |
Get the ddl paths attribute from configuration header
◆ getSource() [1/2]
| MapSource * ddl::mapping::MapConfiguration::getSource |
( |
const std::string & | source_name | ) |
|
Returns a specific mapping source from the configuration
- Parameters
-
| [in] | source_name | The name of the source |
- Return values
-
| The | requested source instance pointer |
| NULL | if no source instance was found with that name |
◆ getSource() [2/2]
| const MapSource * ddl::mapping::MapConfiguration::getSource |
( |
const std::string & | source_name | ) |
const |
Returns a specific mapping source from the configuration
- Parameters
-
| [in] | source_name | The name of the source |
- Return values
-
| The | requested source instance pointer |
| NULL | if no source instance was found with that name |
◆ getSourceList()
| const MapSourceList & ddl::mapping::MapConfiguration::getSourceList |
( |
| ) |
const |
Returns all mapping sources contained in the configuration
◆ getTarget() [1/2]
| MapTarget * ddl::mapping::MapConfiguration::getTarget |
( |
const std::string & | target_name | ) |
|
Returns a specific mapping target from the configuration
- Parameters
-
| [in] | target_name | The name of the target |
- Return values
-
| The | requested target instance pointer |
| NULL | if no target instance was found with that name |
◆ getTarget() [2/2]
| const MapTarget * ddl::mapping::MapConfiguration::getTarget |
( |
const std::string & | target_name | ) |
const |
Returns a specific mapping target from the configuration
- Parameters
-
| [in] | target_name | The name of the target |
- Return values
-
| The | requested target instance pointer |
| NULL | if no target instance was found with that name |
◆ getTargetList()
| const MapTargetList & ddl::mapping::MapConfiguration::getTargetList |
( |
| ) |
const |
Returns all mapping targets contained in the configuration
◆ getTransformation() [1/2]
| MapTransformationBase * ddl::mapping::MapConfiguration::getTransformation |
( |
const std::string & | transformation_name | ) |
|
Returns a specific transformation from the configuration
- Parameters
-
| [in] | transformation_name | The name of the transformation |
- Return values
-
| The | requested transformation base instance pointer |
| NULL | if no transformation instance was found with that name |
◆ getTransformation() [2/2]
| const MapTransformationBase * ddl::mapping::MapConfiguration::getTransformation |
( |
const std::string & | transformation_name | ) |
const |
Returns a specific transformation from the configuration
- Parameters
-
| [in] | transformation_name | The name of the transformation |
- Return values
-
| The | requested transformation base instance pointer |
| NULL | if no transformation instance was found with that name |
◆ getTransformationList()
Returns all transformations contained in the configuration
◆ isConsistencyChecked()
| bool ddl::mapping::MapConfiguration::isConsistencyChecked |
( |
| ) |
|
Returns bool flag indicating whether consistency of mapping with its DataDefinition was already checked
- Returns
- Bool flag indicating whether consistency was checked
◆ isConsistent()
| bool ddl::mapping::MapConfiguration::isConsistent |
( |
| ) |
|
Returns bool flag indicating consistency of mapping with its DataDefinition
- Returns
- Bool flag indicating consistency
◆ loadFromDOM()
Import mapping configuration from a XML dom instance
- Parameters
-
| [in] | dom | The dom instance from which to import |
| [in] | flags | Options for loading. See MapConfigFlags |
- Return values
-
| ERR_INVALID_FLAGS | Invalid flag combination |
| ERR_INVALID_STATE | No description found |
| ERR_FAILED | Configuration file is invalid (see error list for details) |
| ERR_INVALID_TYPE | Configuration uses unknown DataDefinition types (see error list for details) |
| a_util::result::SUCCESS | Everything went fine |
◆ loadFromDOMWithoutDDLConsistency()
Import mapping configuration from a XML dom instance without checking for DataDefinition consistency
- Parameters
-
| [in] | dom | The dom instance from which to import |
| [in] | flags | Options for loading. See MapConfigFlags |
- Return values
-
| ERR_INVALID_FLAGS | Invalid flag combination |
| ERR_FAILED | Configuration file is invalid (see error list for details) |
| a_util::result::SUCCESS | Everything went fine |
◆ loadFromFile()
| a_util::result::Result ddl::mapping::MapConfiguration::loadFromFile |
( |
const std::string & | file_path, |
|
|
uint32_t | flags = mc_load_mapping ) |
Import mapping configuration from a file Load file in DOM and call loadFromDOM()
- Parameters
-
| [in] | file_path | The file path to the configuration file |
| [in] | flags | Options for loading. See MapConfigFlags |
- Return values
-
| ERR_INVALID_FILE | DOM Import from file failed (see error list for details) |
| see | loadFromDOM() |
◆ loadPartiallyFromDOM()
Import mapping configuration from a XML dom instance Modell is laoding even if it is not consistent with the DataDefinition description Each element has a validity flag representing its consistency
- Parameters
-
| [in] | dom | The dom instance from which to import |
| [in] | flags | Options for loading. See MapConfigFlags |
- Return values
-
| ERR_INVALID_FLAGS | Invalid flag combination |
| ERR_FAILED | Configuration file is invalid (see error list for details) |
| ERR_INVALID_TYPE | Configuration uses unknown DataDefinition types (see error list for details) |
| a_util::result::SUCCESS | Everything went fine |
◆ loadPartiallyFromFile()
| a_util::result::Result ddl::mapping::MapConfiguration::loadPartiallyFromFile |
( |
const std::string & | file_path, |
|
|
uint32_t | flags = mc_load_mapping ) |
Import mapping configuration from a file Load file in DOM and call loadPartiallyFromDOM() Modell is loaded even if it is not consistent with the DataDefinition description Each element has a validity flag representing its consistency
- Parameters
-
| [in] | file_path | The file path to the configuration file |
| [in] | flags | Options for loading. See MapConfigFlags |
- Return values
-
◆ modifyDD()
Modify the reference ddl description Set the new ddl description and check mapping consistency
- Parameters
-
- Note
- This call does not imply a internal Reset call
- Return values
-
| ERR_INVALID_TYPE | Configuration is inconsistent with ddl, mapping validity updated |
| a_util::result::SUCCESS | Everything went fine |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ removeSource()
Remove a source signal from the configuration All connections using this source will be deleted
- Parameters
-
| [in] | name | The name of the target |
- Return values
-
| ERR_NOT_FOUND | Source not found |
| a_util::result::SUCCESS | Everything went fine |
◆ removeTarget()
Remove a target signal from the configuration All connections using this source will be deleted
- Parameters
-
| [in] | name | The name of the target |
- Return values
-
| ERR_NOT_FOUND | Target not found |
| a_util::result::SUCCESS | Everything went fine |
◆ removeTransformation()
| a_util::result::Result ddl::mapping::MapConfiguration::removeTransformation |
( |
const std::string & | transformation_name | ) |
|
Remove a transformation
- Parameters
-
| [in] | transformation_name | The transformation name |
- Return values
-
| ERR_NOT_FOUND | Transformation not found |
| a_util::result::SUCCESS | Everything went fine |
◆ reset()
| void ddl::mapping::MapConfiguration::reset |
( |
| ) |
|
Resets the entire map configuration to its initial, empty state
- Note
- The ddl description remains untouched by this
◆ resetDD()
Resets the reference DD
- Note
- This call implies an internal Reset call, the configuration is reset
- Return values
-
| a_util::result::SUCCESS | Everything went fine |
◆ resetErrors()
Clear error list and verify DataDefinition Description exists
- Return values
-
| ERR_INVALID_STATE | No description found |
| a_util::result::SUCCESS | Everything went fine |
◆ setDD()
Set the reference DD
- Parameters
-
- Note
- This call implies an internal Reset call, the configuration is reset
- Return values
-
| a_util::result::SUCCESS | Everything went fine |
◆ setDDWithoutConsistency()
Set the reference Data description without consistency check
- Parameters
-
- Return values
-
| a_util::result::SUCCESS | Everything went fine |
◆ setHeaderDDPaths()
Set the ddl paths attribute in configuration header
- Return values
-
| a_util::result::SUCCESS | Everything went fine |
◆ setHeaderDescription()
Set the description in configuration header
- Return values
-
| a_util::result::SUCCESS | Everything went fine |
◆ writeToDOM()
Export mapping configuration to a XML dom instance
- Parameters
-
| [in] | dom | The dom instance from which to import |
- Return values
-
| ERR_INVALID_STATE | No description found |
| ERR_FAILED | Configuration is invalid (see error list for details) |
| ERR_INVALID_TYPE | Configuration uses unknown DataDefinition types (see error list for details) |
| a_util::result::SUCCESS | Everything went fine |
◆ writeToFile()
Export mapping configuration to a file Call writeToDOM() and wirte DOM to file
- Parameters
-
| [in] | file_path | The file path to the configuration file |
- Return values
-
| ERR_INVALID_FILE | Can not write in file (see error list for details) |
| see | writeToDOM() |
The documentation for this class was generated from the following file:
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/ddl/mapping/legacy/configuration/map_configuration.h