ADTF
|
Mapping Configuration model with validation and requirements management. More...
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. More... | |
MappingConfiguration (const MappingConfiguration &other) | |
copy CTOR More... | |
MappingConfiguration (MappingConfiguration &&other) | |
move CTOR More... | |
MappingConfiguration (const std::shared_ptr< datamodel::MappingConfiguration > &datamodel) | |
Construct a new MappingConfiguration and set the datamodel to the given one. More... | |
~MappingConfiguration () | |
DTOR. | |
MappingConfiguration & | operator= (const MappingConfiguration &other) |
copy assignment operator More... | |
MappingConfiguration & | operator= (MappingConfiguration &&other) |
move assignment operator More... | |
bool | operator== (const MappingConfiguration &other) const |
equality operator More... | |
bool | operator!= (const MappingConfiguration &other) const |
inequality operator More... | |
void | setModel (const std::shared_ptr< datamodel::MappingConfiguration > &datamodel) |
Sets and references the datamodel object, that is to validate and observe. More... | |
std::shared_ptr< const datamodel::MappingConfiguration > | getModel () const |
Gets the datamodel reference. More... | |
std::shared_ptr< const Header > | getHeader () const |
Get the Header. More... | |
std::shared_ptr< Header > | getHeader () |
Get the Header. More... | |
void | setHeader (const Header &header) |
Set the Header. More... | |
Version | getVersion () const |
Get the version. More... | |
void | setVersion (const Version &version) |
Set the version. More... | |
const Sources & | getSources () const |
Get the Sources. More... | |
Sources & | getSources () |
Get the Sources. More... | |
const Targets & | getTargets () const |
Get the Targets. More... | |
Targets & | getTargets () |
Get the Targets. More... | |
const Functions & | getFunctions () const |
Get the Modules. More... | |
Functions & | getFunctions () |
Get the Functions. More... | |
bool | isValid (ValidationLevel level=ValidationLevel::valid) const |
Obtains if the validation level has reached at least the given level . More... | |
std::vector< Problem > | getValidationProtocol () const |
Gets a collection of all problems obtained while validating the MappingConfiguration. More... | |
Version | getRequiredVersion () const |
Get the Required Version for the model. More... | |
std::vector< Requirement > | getRequirements () const |
Get the Requirements that are at least 2.0 requirements. More... | |
Private Attributes | |
std::unique_ptr< MappingConfigurationImpl > | _impl |
Mapping Configuration model with validation and requirements management.
Definition at line 34 of file mapping_configuration.h.
MappingConfiguration | ( | const Version & | version | ) |
CTOR.
version | the mapping version to use |
MappingConfiguration | ( | const MappingConfiguration & | other | ) |
copy CTOR
other | the object to copy |
MappingConfiguration | ( | MappingConfiguration && | other | ) |
move CTOR
other | the object to move |
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& getFunctions | ( | ) |
Get the Functions.
const Functions& getFunctions | ( | ) | const |
Get the Modules.
std::shared_ptr<Header> getHeader | ( | ) |
Get the Header.
std::shared_ptr<const Header> getHeader | ( | ) | const |
Get the Header.
std::shared_ptr<const datamodel::MappingConfiguration> getModel | ( | ) | const |
Gets the datamodel reference.
Version 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> getRequirements | ( | ) | const |
Get the Requirements that are at least 2.0 requirements.
Sources& getSources | ( | ) |
Get the Sources.
const Sources& getSources | ( | ) | const |
Get the Sources.
Targets& getTargets | ( | ) |
Get the Targets.
const Targets& getTargets | ( | ) | const |
Get the Targets.
std::vector<Problem> getValidationProtocol | ( | ) | const |
Gets a collection of all problems obtained while validating the MappingConfiguration.
bool 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 operator!= | ( | const MappingConfiguration & | other | ) | const |
inequality operator
other | the object to compare to |
MappingConfiguration& operator= | ( | const MappingConfiguration & | other | ) |
MappingConfiguration& operator= | ( | MappingConfiguration && | other | ) |
bool operator== | ( | const MappingConfiguration & | other | ) | const |
equality operator
other | the object to compare to |
void setHeader | ( | const Header & | header | ) |
Set the Header.
header | the header to set |
void 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 setVersion | ( | const Version & | version | ) |
Set the version.
version | the mapping version to set |