ADTF
|
Data Definition datamodel for the Header. More...
Public Types | |
using | ExtDeclaration = KeyValuePair |
Use of the key value pair to declare the ext declaration. | |
using | ExtDeclarations = utility::TypeAccessMap< ExtDeclaration, Header > |
map container for a set of ext declarations. | |
Public Types inherited from ModelSubjectUtility< MODEL_SUBJECT_T, EVENT_CODE_T > | |
typedef EVENT_CODE_T | event_code_type |
local definition of the event code type | |
typedef MODEL_SUBJECT_T | subject_type |
local definition of the subject type | |
typedef ModelObserverUtility< MODEL_SUBJECT_T, EVENT_CODE_T > | observer_type |
local definition of the observer type to notify | |
Public Member Functions | |
Header ()=delete | |
no default CTOR. | |
Header (const Header &other) | |
copy CTOR. More... | |
Header & | operator= (const Header &other) |
copy assignment. More... | |
Header (Header &&)=default | |
move CTOR. | |
Header & | operator= (Header &&)=default |
move assignment. | |
virtual | ~Header ()=default |
Destroys the Header. | |
Header (const Version &ddl_version, const std::string &author={}, const std::string &date_creation={}, const std::string &date_change={}, const std::string &description={}, const std::vector< ExtDeclaration > &ext_declarations={}) | |
Construct a new Header object. More... | |
bool | operator== (const Header &other) const |
Equality operator. More... | |
bool | operator!= (const Header &other) const |
Non-Equality operator. More... | |
Version | getLanguageVersion () const |
Get the Language Version. More... | |
void | setLanguageVersion (const Version &ddl_version) |
Set the Language Version. More... | |
const std::string & | getAuthor () const |
Get the Author. More... | |
void | setAuthor (const std::string &author) |
Set the Author. More... | |
const std::string & | getDateCreation () const |
Get the Date of Creation. More... | |
void | setDateCreation (const std::string &date_creation) |
Set the Date of Creation. More... | |
const std::string & | getDateChange () const |
Get the Date of last Change. More... | |
void | setDateChange (const std::string &date_change) |
Set the Date of last Change. More... | |
const std::string & | getDescription () const |
Get the Description. More... | |
void | setDescription (const std::string &description) |
Set the Description object. More... | |
const ExtDeclarations & | getExtDeclarations () const |
Get the Ext Declarations object. More... | |
ExtDeclarations & | getExtDeclarations () |
Get the Ext Declarations object. More... | |
Public Member Functions inherited from ModelSubjectUtility< MODEL_SUBJECT_T, EVENT_CODE_T > | |
ModelSubjectUtility ()=default | |
CTOR. | |
ModelSubjectUtility (const ModelSubjectUtility &) | |
copy CTOR which removes the observers in case of! | |
ModelSubjectUtility & | operator= (const ModelSubjectUtility &) |
copy assignment operator which removes the observers in case of! More... | |
virtual | ~ModelSubjectUtility ()=default |
DTOR. | |
void | attachObserver (observer_type *observer) |
adda a observer to notify. More... | |
void | detachObserver (observer_type *observer) |
remove a observer if in list. More... | |
Public Member Functions inherited from InfoMap | |
InfoMap ()=default | |
CTOR. | |
InfoMap (const InfoMap &) | |
copy CTOR More... | |
InfoMap (InfoMap &&) | |
move CTOR More... | |
InfoMap & | operator= (const InfoMap &) |
copy assignment operator More... | |
InfoMap & | operator= (InfoMap &&) |
move assignment operator More... | |
template<typename INFO_T > | |
const INFO_T * | getInfo () const |
Get the Info Pointer. More... | |
template<typename INFO_T > | |
INFO_T * | getInfo () |
Get the Info Pointer. More... | |
template<typename INFO_T > | |
void | setInfo (const std::shared_ptr< INFO_T > &info) |
Set the Info object as shared pointer. More... | |
Private Member Functions | |
bool | validateContains (const ExtDeclarations::access_type &ext_declarations_name) const |
void | notifyChangedMapContent (utility::TypeAccessMapEventCode code, ExtDeclarations::access_type &ext_declaration, const std::string &additional_info) |
Private Attributes | |
Version | _ddl_version = {} |
std::string | _author |
std::string | _date_creation |
std::string | _date_change |
std::string | _description |
ExtDeclarations | _ext_declarations |
Additional Inherited Members | |
Protected Member Functions inherited from ModelSubjectUtility< MODEL_SUBJECT_T, EVENT_CODE_T > | |
void | notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info) |
helper utility function to notify the current observers More... | |
Data Definition datamodel for the Header.
Definition at line 37 of file datamodel_header.h.
Header | ( | const Version & | ddl_version, |
const std::string & | author = {} , |
||
const std::string & | date_creation = {} , |
||
const std::string & | date_change = {} , |
||
const std::string & | description = {} , |
||
const std::vector< ExtDeclaration > & | ext_declarations = {} |
||
) |
Construct a new Header object.
ddl_version | The Language version |
author | the author |
date_creation | the date of creation |
date_change | the date of last change |
description | the description |
ext_declarations | a vector of ext declations that are added immediatelly. |
throws | if ext_declarations contains ext declarations with the same key. |
const std::string& getAuthor | ( | ) | const |
Get the Author.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
const std::string& getDateChange | ( | ) | const |
Get the Date of last Change.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
const std::string& getDateCreation | ( | ) | const |
Get the Date of Creation.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
const std::string& getDescription | ( | ) | const |
Get the Description.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
ExtDeclarations& getExtDeclarations | ( | ) |
Get the Ext Declarations object.
const ExtDeclarations& getExtDeclarations | ( | ) | const |
Get the Ext Declarations object.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
Version getLanguageVersion | ( | ) | const |
Get the Language Version.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
bool operator!= | ( | const Header & | other | ) | const |
Non-Equality operator.
other | the other header to compare to |
bool operator== | ( | const Header & | other | ) | const |
Equality operator.
other | the other header to compare to |
void setAuthor | ( | const std::string & | author | ) |
Set the Author.
author | the author |
Referenced by DDFromXMLFactory< DOM_NODE_TYPE >::createHeader().
void setDateChange | ( | const std::string & | date_change | ) |
Set the Date of last Change.
date_change | the date of last change |
void setDateCreation | ( | const std::string & | date_creation | ) |
Set the Date of Creation.
date_creation | the date of creation. |
void setDescription | ( | const std::string & | description | ) |
Set the Description object.
description | the description |