#include <Equipment.hpp>
Inheritance diagram for Equipment
Public Methods | |
Equipment ( EquipmentCref ) | |
Copy constructor. | |
virtual | ~Equipment ( void ) |
Virtual destructor. | |
bool | operator== ( EquipmentCref ) const |
Equal if theName == theName. | |
NameCref | getName ( void ) const |
Return the components name. | |
virtual Watt | getPower ( void ) = 0 |
Return the power requirement. | |
Protected Methods | |
Equipment ( void ) throw (corelinux::CompositeException ) | |
Default constructor not allowed. | |
Equipment ( NameCref ) | |
Always requires a name in derivations. | |
EquipmentRef | operator= ( EquipmentCref ) throw (corelinux::CompositeException ) |
Assignment operator can't overwrite name. |
We use the transparent component because we don't want to differentiate types at run time.