|
ADTF
|
#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.
Classes | |
| class | RefUnit |
| datamodel for the refUnit More... | |
Public Types | |
| using | RefUnits = std::vector<RefUnit> |
| definiton of the container for the RefUnits | |
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 | |
Public Member Functions | |
| Unit () | |
| CTOR. | |
| Unit (const Unit &)=default | |
| copy CTOR | |
| Unit & | operator= (const Unit &)=default |
| copy assignment operator | |
| Unit (Unit &&)=default | |
| move CTOR | |
| Unit & | operator= (Unit &&)=default |
| move assignment operator | |
| virtual | ~Unit ()=default |
| DTOR. | |
| Unit (std::string name, std::string numerator, std::string denominator, std::string offset, const std::vector< RefUnit > &ref_units={}) | |
| CTOR. | |
| bool | operator== (const Unit &other) const |
| equality operator. | |
| bool | operator!= (const Unit &other) const |
| non equality operator. | |
| TypeOfUnit | getTypeOfUnit () const override |
| Get the Type Of Unit. | |
| void | setName (const std::string &name) override |
| Set the Name. | |
| const std::string & | getNumerator () const |
| Get the Numerator. | |
| void | setNumerator (const std::string &numerator) |
| Set the Numerator object. | |
| const std::string & | getDenominator () const |
| Get the Denominator. | |
| void | setDenominator (const std::string &denominator) |
| Set the Denominator. | |
| const std::string & | getOffset () const |
| Get the Offset. | |
| void | setOffset (const std::string &offset) |
| Set the Offset. | |
| const RefUnits & | getRefUnits () const |
| return the refUnits container | |
| void | addRefUnit (const RefUnit &ref_unit) |
| adding a refunit | |
| void | removeRefUnit (const RefUnit &ref_unit) |
| remove the refunit | |
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 | |
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::Unit::Unit | ( | std::string | name, |
| std::string | numerator, | ||
| std::string | denominator, | ||
| std::string | offset, | ||
| const std::vector< RefUnit > & | ref_units = {} ) |
CTOR.
| name | the name of the unit |
| numerator | the numerator for the unit |
| denominator | the denominator for the unit |
| offset | the offset for the unit |
| ref_units | vector of refunits |
| dd::Error | this will throw if this list contains a base_unit/prefix pair twice |
| void ddl::dd::datamodel::Unit::addRefUnit | ( | const RefUnit & | ref_unit | ) |
adding a refunit
| ref_unit | the refunit to add |
| dd::Error | this will throw if this refUnits already contains a base_unit/prefix pair |
| const std::string & ddl::dd::datamodel::Unit::getDenominator | ( | ) | const |
Get the Denominator.
| const std::string & ddl::dd::datamodel::Unit::getNumerator | ( | ) | const |
Get the Numerator.
| const std::string & ddl::dd::datamodel::Unit::getOffset | ( | ) | const |
Get the Offset.
| const RefUnits & ddl::dd::datamodel::Unit::getRefUnits | ( | ) | const |
return the refUnits container
|
overridevirtual |
| bool ddl::dd::datamodel::Unit::operator!= | ( | const Unit & | other | ) | const |
non equality operator.
| other | the other unit to compare this unit to. |
copy assignment operator
move assignment operator
| bool ddl::dd::datamodel::Unit::operator== | ( | const Unit & | other | ) | const |
equality operator.
| other | the other unit to compare this unit to. |
| void ddl::dd::datamodel::Unit::removeRefUnit | ( | const RefUnit & | ref_unit | ) |
remove the refunit
| ref_unit | the refunit to remove |
| void ddl::dd::datamodel::Unit::setDenominator | ( | const std::string & | denominator | ) |
Set the Denominator.
| denominator | the denominator to set |
|
overridevirtual |
Set the Name.
| name | the name to set |
| dd::Error | If the name already exists in the container this unit is part of it will throw. |
Reimplemented from ddl::dd::datamodel::UnitBase.
| void ddl::dd::datamodel::Unit::setNumerator | ( | const std::string & | numerator | ) |
Set the Numerator object.
| numerator | the numerator to set |
| void ddl::dd::datamodel::Unit::setOffset | ( | const std::string & | offset | ) |
Set the Offset.
| offset | the offset to set |