|
ADTF
|
Mapping Configuration model with validation and requirements management. More...
#include <mapping_configuration.h>
Public Types | |
| using | Header = datamodel::Header |
| header type | |
| using | Sources = datamodel::MappingConfiguration::Sources |
| Sources type. | |
| using | Targets = datamodel::MappingConfiguration::Targets |
| Targets type. | |
| using | Functions = datamodel::MappingConfiguration::Functions |
| Modules type. | |
Public Member Functions | |
| MappingConfiguration () | |
| CTOR. | |
| MappingConfiguration (const Version &version) | |
| CTOR. | |
| MappingConfiguration (const MappingConfiguration &other) | |
| copy CTOR | |
| MappingConfiguration (MappingConfiguration &&other) | |
| move CTOR | |
| MappingConfiguration (const std::shared_ptr< datamodel::MappingConfiguration > &datamodel) | |
| Construct a new MappingConfiguration and set the datamodel to the given one. | |
| ~MappingConfiguration () | |
| DTOR. | |
| MappingConfiguration & | operator= (const MappingConfiguration &other) |
| copy assignment operator | |
| MappingConfiguration & | operator= (MappingConfiguration &&other) |
| move assignment operator | |
| bool | operator== (const MappingConfiguration &other) const |
| equality operator | |
| bool | operator!= (const MappingConfiguration &other) const |
| inequality operator | |
| void | setModel (const std::shared_ptr< datamodel::MappingConfiguration > &datamodel) |
| Sets and references the datamodel object, that is to validate and observe. | |
| std::shared_ptr< const datamodel::MappingConfiguration > | getModel () const |
| Gets the datamodel reference. | |
| std::shared_ptr< const Header > | getHeader () const |
| Get the Header. | |
| std::shared_ptr< Header > | getHeader () |
| Get the Header. | |
| void | setHeader (const Header &header) |
| Set the Header. | |
| Version | getVersion () const |
| Get the version. | |
| void | setVersion (const Version &version) |
| Set the version. | |
| const Sources & | getSources () const |
| Get the Sources. | |
| Sources & | getSources () |
| Get the Sources. | |
| const Targets & | getTargets () const |
| Get the Targets. | |
| Targets & | getTargets () |
| Get the Targets. | |
| const Functions & | getFunctions () const |
| Get the Modules. | |
| Functions & | getFunctions () |
| Get the Functions. | |
| bool | isValid (ValidationLevel level=ValidationLevel::valid) const |
Obtains if the validation level has reached at least the given level. | |
| std::vector< Problem > | getValidationProtocol () const |
| Gets a collection of all problems obtained while validating the MappingConfiguration. | |
| Version | getRequiredVersion () const |
| Get the Required Version for the model. | |
| std::vector< Requirement > | getRequirements () const |
| Get the Requirements that are at least 2.0 requirements. | |
Mapping Configuration model with validation and requirements management.
| ddl::mapping::MappingConfiguration::MappingConfiguration | ( | const Version & | version | ) |
CTOR.
| version | the mapping version to use |
| ddl::mapping::MappingConfiguration::MappingConfiguration | ( | const MappingConfiguration & | other | ) |
copy CTOR
| other | the object to copy |
| ddl::mapping::MappingConfiguration::MappingConfiguration | ( | MappingConfiguration && | other | ) |
move CTOR
| other | the object to move |
| ddl::mapping::MappingConfiguration::MappingConfiguration | ( | const std::shared_ptr< datamodel::MappingConfiguration > & | datamodel | ) |
Construct a new MappingConfiguration and set the datamodel to the given one.
| datamodel | the datamodel to validate and observe. |
| Functions & ddl::mapping::MappingConfiguration::getFunctions | ( | ) |
| const Functions & ddl::mapping::MappingConfiguration::getFunctions | ( | ) | const |
Get the Modules.
| std::shared_ptr< Header > ddl::mapping::MappingConfiguration::getHeader | ( | ) |
Get the Header.
| std::shared_ptr< const Header > ddl::mapping::MappingConfiguration::getHeader | ( | ) | const |
Get the Header.
| std::shared_ptr< const datamodel::MappingConfiguration > ddl::mapping::MappingConfiguration::getModel | ( | ) | const |
Gets the datamodel reference.
| Version ddl::mapping::MappingConfiguration::getRequiredVersion | ( | ) | const |
Get the Required Version for the model.
If there are items used that requires a higher version than mapping 2.0 getRequirements will contain more information about them
| std::vector< Requirement > ddl::mapping::MappingConfiguration::getRequirements | ( | ) | const |
Get the Requirements that are at least 2.0 requirements.
| const Sources & ddl::mapping::MappingConfiguration::getSources | ( | ) | const |
| const Targets & ddl::mapping::MappingConfiguration::getTargets | ( | ) | const |
| std::vector< Problem > ddl::mapping::MappingConfiguration::getValidationProtocol | ( | ) | const |
Gets a collection of all problems obtained while validating the MappingConfiguration.
| bool ddl::mapping::MappingConfiguration::isValid | ( | ValidationLevel | level = ValidationLevel::valid | ) | const |
Obtains if the validation level has reached at least the given level.
| level | the level to check |
level level | bool ddl::mapping::MappingConfiguration::operator!= | ( | const MappingConfiguration & | other | ) | const |
inequality operator
| other | the object to compare to |
| MappingConfiguration & ddl::mapping::MappingConfiguration::operator= | ( | const MappingConfiguration & | other | ) |
| MappingConfiguration & ddl::mapping::MappingConfiguration::operator= | ( | MappingConfiguration && | other | ) |
| bool ddl::mapping::MappingConfiguration::operator== | ( | const MappingConfiguration & | other | ) | const |
equality operator
| other | the object to compare to |
| void ddl::mapping::MappingConfiguration::setHeader | ( | const Header & | header | ) |
Set the Header.
| header | the header to set |
| void ddl::mapping::MappingConfiguration::setModel | ( | const std::shared_ptr< datamodel::MappingConfiguration > & | datamodel | ) |
Sets and references the datamodel object, that is to validate and observe.
| datamodel | the datamodel to validate and observe. |
| void ddl::mapping::MappingConfiguration::setVersion | ( | const Version & | version | ) |
Set the version.
| version | the mapping version to set |