|
WSF
|
#include <WsfSimpleComponent.hpp>


Public Member Functions | |
| WsfSimpleComponentT ()=default | |
| Empty constructor for serialization. | |
| WsfSimpleComponentT (int aRole, WsfStringId aName) | |
| WsfSimpleComponentT (int aRole) | |
| WsfSimpleComponentT (WsfStringId aName) | |
| WsfSimpleComponentT (const WsfSimpleComponentT &aSrc) | |
| WsfSimpleComponentT & | operator= (const WsfSimpleComponentT &aRhs) |
| ~WsfSimpleComponentT () override=default | |
| Public Member Functions inherited from WsfNamed | |
| WsfNamed () | |
| WsfNamed (WsfStringId aName) | |
| WsfNamed (const WsfNamed &)=default | |
| WsfNamed & | operator= (const WsfNamed &)=default |
| virtual | ~WsfNamed ()=default |
| const std::string & | GetName () const |
| WsfStringId | GetNameId () const |
| void | SetName (WsfStringId aName) |
Implementation of those routines that can be provided by this class. | |
| int | mRoles [2] |
| WsfStringId | GetComponentName () const override |
| const int * | GetComponentRoles () const override |
A class template for a simple, single-role component that is not a WsfObject. Deriving from this class provides two of the four abstract methods required by WsfComponent. The derived class need only provide CloneComponent and QueryInterface, and if needed, ComponentParentChange (if the component requires notification of being attached to a component list.)
Typical uses are for things like 'extension' components (e.g.: WsfDisExtension and WsfDisPlatformComponent, WsfExtInterfaceComponent, WsfTaskManagerComponent) and simple components that don't utilize type-lists (e.g. WsfCommandChain, WsfGeoPoint and WsfTaskManager).
This class derives from WsfNamed, which provides the name attribute and the methods GetName(Id)/SetName. This makes it mutually exclusive with things that require WsfObject.
|
default |
Empty constructor for serialization.
|
inline |
Construct the a role and a name.
| aRole | The role of the component. |
| aName | The name of the component. |
|
inlineexplicit |
Construct with only a role.
| aRole | The role of the component. With this form all components in a list must have a unique role. |
|
inline |
Construct with only a name. With this form all components in a list must have a unique name.
|
inline |
|
overridedefault |
|
inlineoverride |
|
inlineoverride |
|
inline |
|
protected |