Dev Essential
Loading...
Searching...
No Matches
ddl::mapping::datamodel::MappingConfiguration Class Reference

The mapping configuration datamodel. More...

#include <datamodel_configuration.h>

Inherits ModelSubject< Header >, ModelObserver< Header >, ModelSubject< Source >, ModelSubject< Target >, ModelSubject< Function >, and ddl::dd::datamodel::InfoMap.

Public Types

using Sources = ddl::utility::TypeAccessMap<Source, MappingConfiguration>
 Sources types.
 
using Targets = ddl::utility::TypeAccessMap<Target, MappingConfiguration>
 Targets type.
 
using Functions = ddl::utility::TypeAccessMap<Function, MappingConfiguration>
 Modeuls type.
 

Public Member Functions

 MappingConfiguration ()
 CTOR.
 
 MappingConfiguration (const Version &version)
 CTOR.
 
 MappingConfiguration (const MappingConfiguration &other)
 copy CTOR
 
 MappingConfiguration (MappingConfiguration &&other)
 move CTOR
 
 ~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
 
std::shared_ptr< const Header > getHeader () const
 Get the Header object.
 
std::shared_ptr< Header > getHeader ()
 Get the Header object.
 
void setHeader (const Header &header)
 Set the Header object.
 
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 Functions.
 
Functions & getFunctions ()
 Get the Functions.
 
- Public Member Functions inherited from ddl::dd::datamodel::InfoMap
 InfoMap ()=default
 CTOR.
 
 InfoMap (const InfoMap &)
 copy CTOR
 
 InfoMap (InfoMap &&)
 move CTOR
 
InfoMap & operator= (const InfoMap &)
 copy assignment operator
 
InfoMap & operator= (InfoMap &&)
 move assignment operator
 
template<typename INFO_T>
const INFO_T * getInfo () const
 Get the Info Pointer.
 
template<typename INFO_T>
INFO_T * getInfo ()
 Get the Info Pointer.
 
template<typename INFO_T>
void setInfo (const std::shared_ptr< INFO_T > &info)
 Set the Info object as shared pointer.
 

Detailed Description

The mapping configuration datamodel.

Constructor & Destructor Documentation

◆ MappingConfiguration() [1/3]

ddl::mapping::datamodel::MappingConfiguration::MappingConfiguration ( const Version & version)

CTOR.

Parameters
versionthe mapping version to use

◆ MappingConfiguration() [2/3]

ddl::mapping::datamodel::MappingConfiguration::MappingConfiguration ( const MappingConfiguration & other)

copy CTOR

Parameters
otherthe object to copy

◆ MappingConfiguration() [3/3]

ddl::mapping::datamodel::MappingConfiguration::MappingConfiguration ( MappingConfiguration && other)

move CTOR

Parameters
otherthe object to move

Member Function Documentation

◆ getFunctions() [1/2]

Functions & ddl::mapping::datamodel::MappingConfiguration::getFunctions ( )

Get the Functions.

Returns
Functions&

◆ getFunctions() [2/2]

const Functions & ddl::mapping::datamodel::MappingConfiguration::getFunctions ( ) const

Get the Functions.

Returns
const Functions&

◆ getHeader() [1/2]

std::shared_ptr< Header > ddl::mapping::datamodel::MappingConfiguration::getHeader ( )

Get the Header object.

Returns
std::shared_ptr<Header>

◆ getHeader() [2/2]

std::shared_ptr< const Header > ddl::mapping::datamodel::MappingConfiguration::getHeader ( ) const

Get the Header object.

Returns
std::shared_ptr<const Header>

◆ getSources() [1/2]

Sources & ddl::mapping::datamodel::MappingConfiguration::getSources ( )

Get the Sources.

Returns
Sources&

◆ getSources() [2/2]

const Sources & ddl::mapping::datamodel::MappingConfiguration::getSources ( ) const

Get the Sources.

Returns
const Sources&

◆ getTargets() [1/2]

Targets & ddl::mapping::datamodel::MappingConfiguration::getTargets ( )

Get the Targets.

Returns
Targets&

◆ getTargets() [2/2]

const Targets & ddl::mapping::datamodel::MappingConfiguration::getTargets ( ) const

Get the Targets.

Returns
const Targets&

◆ getVersion()

Version ddl::mapping::datamodel::MappingConfiguration::getVersion ( ) const

Get the Version.

Returns
Version

◆ operator!=()

bool ddl::mapping::datamodel::MappingConfiguration::operator!= ( const MappingConfiguration & other) const

inequality operator

Remarks
this will NOT compare the headers, except of used mapping version
Parameters
otherthe object to compare to
Returns
true is not equal
false is equal

◆ operator=() [1/2]

MappingConfiguration & ddl::mapping::datamodel::MappingConfiguration::operator= ( const MappingConfiguration & other)

copy assignment operator

Parameters
otherthe object to copy
Returns
MappingConfiguration&

◆ operator=() [2/2]

MappingConfiguration & ddl::mapping::datamodel::MappingConfiguration::operator= ( MappingConfiguration && other)

move assignment operator

Parameters
otherthe object to move
Returns
MappingConfiguration&

◆ operator==()

bool ddl::mapping::datamodel::MappingConfiguration::operator== ( const MappingConfiguration & other) const

equality operator

Remarks
this will NOT compare the headers, except of used mapping version
Parameters
otherthe object to compare to
Returns
true is equal
false is not equal

◆ setHeader()

void ddl::mapping::datamodel::MappingConfiguration::setHeader ( const Header & header)

Set the Header object.

Parameters
headerthe header to set

◆ setVersion()

void ddl::mapping::datamodel::MappingConfiguration::setVersion ( const Version & version)

Set the Version.

Parameters
version

The documentation for this class was generated from the following file: