|
Dev Essential
|
UnitBase is the base class for Unit or BaseUnit. More...
#include <datamodel_units.h>
Inherited by ddl::dd::datamodel::BaseUnit, and ddl::dd::datamodel::Unit.
Public Member Functions | |
| 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. | |
| virtual TypeOfUnit | getTypeOfUnit () const =0 |
| Get the Type Of Unit. | |
| virtual void | setName (const std::string &name) |
| Set the Name. | |
| const std::string & | getName () const |
| Get the Name. | |
Protected Attributes | |
| std::string | _name |
| the name | |
| ddl::dd::datamodel::UnitBase::UnitBase | ( | std::string | name | ) |
CTOR.
| name | the name of the unit |
| const std::string & ddl::dd::datamodel::UnitBase::getName | ( | ) | const |
Get the Name.
|
pure virtual |
Get the Type Of Unit.
Implemented in ddl::dd::datamodel::BaseUnit, and ddl::dd::datamodel::Unit.
copy assignment operator
move assignment operator
|
virtual |
Set the Name.
| name | the name of the unit |
Reimplemented in ddl::dd::datamodel::BaseUnit, and ddl::dd::datamodel::Unit.