ADTF
|
Unit Prefix - datamodel pefixes. More...
Public Member Functions | |
UnitPrefix () | |
default CTOR | |
UnitPrefix (const UnitPrefix &)=default | |
copy CTOR | |
UnitPrefix (UnitPrefix &&)=default | |
move CTOR | |
UnitPrefix & | operator= (const UnitPrefix &)=default |
copy assignment operator More... | |
UnitPrefix & | operator= (UnitPrefix &&)=default |
move assignment operator More... | |
UnitPrefix (const std::string &name, const std::string &symbol, int32_t power) | |
CTOR. More... | |
virtual | ~UnitPrefix ()=default |
DTOR. | |
const std::string & | getName () const |
Get the Name. More... | |
void | setName (const std::string &name) |
Set the Name. More... | |
const std::string & | getSymbol () const |
Get the Symbol. More... | |
void | setSymbol (const std::string &symbol) |
Set the Symbol. More... | |
int32_t | getPower () const |
Get the Power. More... | |
void | setPower (int32_t power) |
Set the Power. More... | |
bool | operator== (const UnitPrefix &other) const |
equality operator. More... | |
bool | operator!= (const UnitPrefix &other) const |
non equality operator. 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 | |
void | notify (const std::string &additional_info) |
Private Attributes | |
std::string | _name = {} |
std::string | _symbol = {} |
int32_t | _power = {} |
Additional Inherited Members | |
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 | |
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... | |
Unit Prefix - datamodel pefixes.
Definition at line 219 of file datamodel_units.h.
UnitPrefix | ( | const std::string & | name, |
const std::string & | symbol, | ||
int32_t | power | ||
) |
CTOR.
name | name of the unit prefix |
symbol | symbol of the unit prefix |
power | power of the unit prefix |
const std::string& getName | ( | ) | const |
Get the Name.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
int32_t getPower | ( | ) | const |
const std::string& getSymbol | ( | ) | const |
Get the Symbol.
Referenced by DDToXMLFactory< DOM_NODE_TYPE >::createNode().
bool operator!= | ( | const UnitPrefix & | other | ) | const |
non equality operator.
other | the other unitprefix to compare this unitprefix to. |
|
default |
copy assignment operator
|
default |
move assignment operator
bool operator== | ( | const UnitPrefix & | other | ) | const |
equality operator.
other | the other unitprefix to compare this unitprefix to. |
void setName | ( | const std::string & | name | ) |
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. |
void setPower | ( | int32_t | power | ) |
Set the Power.
power | the power to set |
void setSymbol | ( | const std::string & | symbol | ) |
Set the Symbol.
symbol | the symbol to set |