32 #include "WProperties.h"
40 template<
typename T >
47 typedef std::shared_ptr< WObjectNDIP >
SPtr;
52 typedef std::shared_ptr< const WObjectNDIP >
ConstSPtr;
97 WObjectNDIP( std::string name, std::string description,
const char** icon = NULL );
107 template<
typename T >
109 m_properties( new
WProperties( name, description ) ),
111 m_description( description ),
117 template<
typename T >
123 template<
typename T >
129 template<
typename T >
132 return m_description;
135 template<
typename T >
141 template<
typename T >
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
WObjectNDIP(std::string name, std::string description, const char **icon=NULL)
Construct a NDIP'ed object.
virtual const char ** getIcon() const
The icon of this object.
const char ** m_icon
the icon
virtual std::string getDescription() const
The description of this object.
virtual WProperties::SPtr getProperties()
Return the property group of this object.
std::shared_ptr< const WObjectNDIP > ConstSPtr
Shared ptr to a const instance.
virtual std::string getName() const
The name of the object.
std::string m_description
the description
std::string m_name
the name
virtual ~WObjectNDIP()
Destructor.
std::shared_ptr< WObjectNDIP > SPtr
Shared ptr to an instance.
WProperties::SPtr m_properties
the properties of the object.
Class to manage properties of an object and to provide convenience methods for easy access and manipu...
std::shared_ptr< WPropertyGroup > SPtr
shared pointer to object of this type