|
Dev Essential
|
Data Definition datamodel for the Header. More...
#include <datamodel_header.h>
Inherits ddl::dd::utility::ModelSubjectUtility< TYPE, ModelEventCode >, and ddl::dd::datamodel::InfoMap.
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 ddl::dd::utility::ModelSubjectUtility< TYPE, ModelEventCode > | |
| typedef ModelEventCode | event_code_type |
| local definition of the event code type | |
| typedef TYPE | subject_type |
| local definition of the subject type | |
| typedef ModelObserverUtility< TYPE, ModelEventCode > | observer_type |
| local definition of the observer type to notify | |
| typedef ModelEventCode | event_code_type |
| local definition of the event code type | |
| typedef TYPE | subject_type |
| local definition of the subject type | |
| typedef ModelObserverUtility< TYPE, ModelEventCode > | observer_type |
| local definition of the observer type to notify | |
| typedef ModelEventCode | event_code_type |
| local definition of the event code type | |
| typedef TYPE | subject_type |
| local definition of the subject type | |
| typedef ModelObserverUtility< TYPE, ModelEventCode > | observer_type |
| local definition of the observer type to notify | |
| typedef ModelEventCode | event_code_type |
| local definition of the event code type | |
| typedef TYPE | subject_type |
| local definition of the subject type | |
| typedef ModelObserverUtility< TYPE, ModelEventCode > | observer_type |
| local definition of the observer type to notify | |
Public Member Functions | |
| Header ()=delete | |
| no default CTOR. | |
| Header (const Header &other) | |
| copy CTOR. | |
| Header & | operator= (const Header &other) |
| copy assignment. | |
| Header (Header &&)=default | |
| move CTOR. | |
| Header & | operator= (Header &&)=default |
| move assignment. | |
| virtual | ~Header ()=default |
| Destroys the Header. | |
| Header (Version ddl_version, std::string author={}, std::string date_creation={}, std::string date_change={}, std::string description={}, const std::vector< ExtDeclaration > &ext_declarations={}) | |
| Construct a new Header object. | |
| bool | operator== (const Header &other) const |
| Equality operator. | |
| bool | operator!= (const Header &other) const |
| Non-Equality operator. | |
| Version | getLanguageVersion () const |
| Get the Language Version. | |
| void | setLanguageVersion (const Version &ddl_version) |
| Set the Language Version. | |
| const std::string & | getAuthor () const |
| Get the Author. | |
| void | setAuthor (const std::string &author) |
| Set the Author. | |
| const std::string & | getDateCreation () const |
| Get the Date of Creation. | |
| void | setDateCreation (const std::string &date_creation) |
| Set the Date of Creation. | |
| const std::string & | getDateChange () const |
| Get the Date of last Change. | |
| void | setDateChange (const std::string &date_change) |
| Set the Date of last Change. | |
| const std::string & | getDescription () const |
| Get the Description. | |
| void | setDescription (const std::string &description) |
| Set the Description object. | |
| const ExtDeclarations & | getExtDeclarations () const |
| Get the Ext Declarations object. | |
| ExtDeclarations & | getExtDeclarations () |
| Get the Ext Declarations object. | |
Public Member Functions inherited from ddl::dd::utility::ModelSubjectUtility< TYPE, ModelEventCode > | |
| 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! | |
| virtual | ~ModelSubjectUtility ()=default |
| DTOR. | |
| void | attachObserver (observer_type *observer) |
| adda a observer to notify. | |
| void | detachObserver (observer_type *observer) |
| remove a observer if in list. | |
| 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! | |
| virtual | ~ModelSubjectUtility ()=default |
| DTOR. | |
| void | attachObserver (observer_type *observer) |
| adda a observer to notify. | |
| void | detachObserver (observer_type *observer) |
| remove a observer if in list. | |
| 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! | |
| virtual | ~ModelSubjectUtility ()=default |
| DTOR. | |
| void | attachObserver (observer_type *observer) |
| adda a observer to notify. | |
| void | detachObserver (observer_type *observer) |
| remove a observer if in list. | |
| 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! | |
| virtual | ~ModelSubjectUtility ()=default |
| DTOR. | |
| void | attachObserver (observer_type *observer) |
| adda a observer to notify. | |
| void | detachObserver (observer_type *observer) |
| remove a observer if in list. | |
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. | |
Additional Inherited Members | |
Protected Member Functions inherited from ddl::dd::utility::ModelSubjectUtility< TYPE, ModelEventCode > | |
| void | notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info) |
| helper utility function to notify the current observers | |
| void | notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info) |
| helper utility function to notify the current observers | |
| void | notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info) |
| helper utility function to notify the current observers | |
| void | notifyChanged (event_code_type event_code, subject_type &changed_subject, const std::string &additional_info) |
| helper utility function to notify the current observers | |
Data Definition datamodel for the Header.
| ddl::dd::datamodel::Header::Header | ( | const Header & | other | ) |
copy CTOR.
| other | other header. |
| ddl::dd::datamodel::Header::Header | ( | Version | ddl_version, |
| std::string | author = {}, | ||
| std::string | date_creation = {}, | ||
| std::string | date_change = {}, | ||
| 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 & ddl::dd::datamodel::Header::getAuthor | ( | ) | const |
Get the Author.
| const std::string & ddl::dd::datamodel::Header::getDateChange | ( | ) | const |
Get the Date of last Change.
| const std::string & ddl::dd::datamodel::Header::getDateCreation | ( | ) | const |
Get the Date of Creation.
| const std::string & ddl::dd::datamodel::Header::getDescription | ( | ) | const |
Get the Description.
| ExtDeclarations & ddl::dd::datamodel::Header::getExtDeclarations | ( | ) |
Get the Ext Declarations object.
| const ExtDeclarations & ddl::dd::datamodel::Header::getExtDeclarations | ( | ) | const |
Get the Ext Declarations object.
| Version ddl::dd::datamodel::Header::getLanguageVersion | ( | ) | const |
| bool ddl::dd::datamodel::Header::operator!= | ( | const Header & | other | ) | const |
Non-Equality operator.
| other | the other header to compare to |
copy assignment.
| other | other header. |
| bool ddl::dd::datamodel::Header::operator== | ( | const Header & | other | ) | const |
Equality operator.
| other | the other header to compare to |
| void ddl::dd::datamodel::Header::setAuthor | ( | const std::string & | author | ) |
Set the Author.
| author | the author |
| void ddl::dd::datamodel::Header::setDateChange | ( | const std::string & | date_change | ) |
Set the Date of last Change.
| date_change | the date of last change |
| void ddl::dd::datamodel::Header::setDateCreation | ( | const std::string & | date_creation | ) |
Set the Date of Creation.
| date_creation | the date of creation. |
| void ddl::dd::datamodel::Header::setDescription | ( | const std::string & | description | ) |
Set the Description object.
| description | the description |
| void ddl::dd::datamodel::Header::setLanguageVersion | ( | const Version & | ddl_version | ) |
Set the Language Version.
| ddl_version | The language version |