![]() |
OpenWalnut
1.5.0dev
|
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP). More...
#include <WObjectNDIP.h>
Inheritance diagram for WObjectNDIP< T >:
Collaboration diagram for WObjectNDIP< T >:Public Types | |
| typedef std::shared_ptr< WObjectNDIP > | SPtr |
| Shared ptr to an instance. More... | |
| typedef std::shared_ptr< const WObjectNDIP > | ConstSPtr |
| Shared ptr to a const instance. More... | |
Public Member Functions | |
| virtual | ~WObjectNDIP () |
| Destructor. More... | |
| virtual std::string | getName () const |
| The name of the object. More... | |
| virtual std::string | getDescription () const |
| The description of this object. More... | |
| virtual const char ** | getIcon () const |
| The icon of this object. More... | |
| virtual WProperties::SPtr | getProperties () |
| Return the property group of this object. More... | |
Protected Member Functions | |
| WObjectNDIP (std::string name, std::string description, const char **icon=NULL) | |
| Construct a NDIP'ed object. More... | |
Protected Attributes | |
| WProperties::SPtr | m_properties |
| the properties of the object. More... | |
Private Attributes | |
| std::string | m_name |
| the name More... | |
| std::string | m_description |
| the description More... | |
| const char ** | m_icon |
| the icon More... | |
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
Just derive from this class and you get the NDIP stuff for free. Managed for you.
Definition at line 41 of file WObjectNDIP.h.
| typedef std::shared_ptr< const WObjectNDIP > WObjectNDIP< T >::ConstSPtr |
Shared ptr to a const instance.
Definition at line 52 of file WObjectNDIP.h.
| typedef std::shared_ptr< WObjectNDIP > WObjectNDIP< T >::SPtr |
Shared ptr to an instance.
Definition at line 47 of file WObjectNDIP.h.
|
virtual |
Destructor.
Implement if you have non trivial cleanup stuff.
Definition at line 118 of file WObjectNDIP.h.
|
protected |
Construct a NDIP'ed object.
| name | the name |
| description | the description |
| icon | an icon in XPM format. Can be NULL if no icon is required. |
Definition at line 108 of file WObjectNDIP.h.
|
virtual |
The description of this object.
Definition at line 130 of file WObjectNDIP.h.
|
virtual |
The icon of this object.
Definition at line 136 of file WObjectNDIP.h.
|
virtual |
|
virtual |
Return the property group of this object.
Definition at line 142 of file WObjectNDIP.h.
|
private |
the description
Definition at line 103 of file WObjectNDIP.h.
|
private |
the icon
Definition at line 104 of file WObjectNDIP.h.
|
private |
the name
Definition at line 102 of file WObjectNDIP.h.
|
protected |
the properties of the object.
Definition at line 99 of file WObjectNDIP.h.