|
Dev Essential
|
#include <datamodel_units.h>
Inherits ddl::dd::datamodel::UnitBase, ddl::dd::utility::ModelSubjectUtility< TYPE, ModelEventCode >, ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode >, and ddl::dd::datamodel::InfoMap.
Inherited by ddl::BaseUnit< T >.
Public Member Functions | |
| BaseUnit () | |
| CTOR. | |
| BaseUnit (const BaseUnit &)=default | |
| copy CTOR | |
| BaseUnit (BaseUnit &&)=default | |
| move CTOR | |
| BaseUnit & | operator= (const BaseUnit &)=default |
| copy assignment operator | |
| BaseUnit & | operator= (BaseUnit &&)=default |
| move assignment operator | |
| BaseUnit (std::string name, std::string symbol, std::string description={}) | |
| CTOR. | |
| virtual | ~BaseUnit ()=default |
| DTOR. | |
| TypeOfUnit | getTypeOfUnit () const override |
| Get the Type Of Unit. | |
| void | setName (const std::string &name) override |
| Set the Name. | |
| const std::string & | getSymbol () const |
| Get the Symbol. | |
| void | setSymbol (const std::string &symbol) |
| Set the Symbol. | |
| const std::string & | getDescription () const |
| Get the Description. | |
| void | setDescription (const std::string &description) |
| Set the Description. | |
| bool | operator== (const BaseUnit &other) const |
| equality operator. | |
| bool | operator!= (const BaseUnit &other) const |
| non equality operator. | |
Public Member Functions inherited from ddl::dd::datamodel::UnitBase | |
| UnitBase ()=default | |
| default CTOR | |
| UnitBase (const UnitBase &)=default | |
| copy CTOR | |
| UnitBase (UnitBase &&)=default | |
| move CTOR | |
| UnitBase & | operator= (const UnitBase &)=default |
| copy assignment operator | |
| UnitBase & | operator= (UnitBase &&)=default |
| move assignment operator | |
| UnitBase (std::string name) | |
| CTOR. | |
| virtual | ~UnitBase ()=default |
| DTOR. | |
| const std::string & | getName () const |
| Get the Name. | |
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::utility::ModelSubjectUtility< T, TypeAccessMapEventCode > | |
| 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 | |
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 Types inherited from ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode > | |
| typedef TypeAccessMapEventCode | event_code_type |
| local definition of the event code type | |
| typedef T | subject_type |
| local definition of the subject type | |
| typedef ModelObserverUtility< T, TypeAccessMapEventCode > | observer_type |
| local definition of the observer type to notify | |
| typedef TypeAccessMapEventCode | event_code_type |
| local definition of the event code type | |
| typedef T | subject_type |
| local definition of the subject type | |
| typedef ModelObserverUtility< T, TypeAccessMapEventCode > | observer_type |
| local definition of the observer type to notify | |
| typedef TypeAccessMapEventCode | event_code_type |
| local definition of the event code type | |
| typedef T | subject_type |
| local definition of the subject type | |
| typedef ModelObserverUtility< T, TypeAccessMapEventCode > | observer_type |
| local definition of the observer type to notify | |
| typedef TypeAccessMapEventCode | event_code_type |
| local definition of the event code type | |
| typedef T | subject_type |
| local definition of the subject type | |
| typedef ModelObserverUtility< T, TypeAccessMapEventCode > | observer_type |
| local definition of the observer type to notify | |
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 | |
Protected Member Functions inherited from ddl::dd::utility::ModelSubjectUtility< T, TypeAccessMapEventCode > | |
| 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 | |
Protected Attributes inherited from ddl::dd::datamodel::UnitBase | |
| std::string | _name |
| the name | |
| ddl::dd::datamodel::BaseUnit::BaseUnit | ( | std::string | name, |
| std::string | symbol, | ||
| std::string | description = {} ) |
CTOR.
| name | name of the base unit |
| symbol | symbol of the baseunit |
| description | description of the baseunit |
| const std::string & ddl::dd::datamodel::BaseUnit::getDescription | ( | ) | const |
Get the Description.
| const std::string & ddl::dd::datamodel::BaseUnit::getSymbol | ( | ) | const |
Get the Symbol.
|
overridevirtual |
| bool ddl::dd::datamodel::BaseUnit::operator!= | ( | const BaseUnit & | other | ) | const |
non equality operator.
| other | the other baseunit to compare this baseunit to. |
move assignment operator
copy assignment operator
| bool ddl::dd::datamodel::BaseUnit::operator== | ( | const BaseUnit & | other | ) | const |
equality operator.
| other | the other baseunit to compare this baseunit to. |
| void ddl::dd::datamodel::BaseUnit::setDescription | ( | const std::string & | description | ) |
Set the Description.
| description | the description to set |
|
overridevirtual |
Set the Name.
| name | the name to set |
| dd::Error | If the name already exists in the container this unit prefix is part of it will throw. |
Reimplemented from ddl::dd::datamodel::UnitBase.
| void ddl::dd::datamodel::BaseUnit::setSymbol | ( | const std::string & | symbol | ) |
Set the Symbol.
| symbol | the symbol to set |