25 #ifndef WPROPERTYLIST_H
26 #define WPROPERTYLIST_H
32 #include "WPropertyGroupBase.h"
33 #include "WPropertyTypes.h"
40 template<
typename T >
57 typedef std::shared_ptr< WPropertyList< ValueType > >
SPtr;
62 typedef std::shared_ptr< const WPropertyList< ValueType > >
ConstSPtr;
165 virtual bool set( std::shared_ptr< WPropertyBase > value )
180 template<
typename T >
std::shared_ptr< WPropertyBase > SPtr
Convenience typedef for a std::shared_ptr< WPropertyBase >
This is the base class and interface for property groups.
PropertySharedContainerType m_properties
The set of proerties.
This is a dynamic property list.
WPropertyList< ValueType > WPropertyListType
Abbreviation for this template with the current value type.
T ValueType
The type of property to store in this list.
std::shared_ptr< const WPropertyList< ValueType > > ConstSPtr
Convenience typedef for a std::shared_ptr< const WPropertyList >.
virtual PROPERTY_TYPE getType() const
Gets the real WPropertyVariable type of this instance.
virtual bool set(std::shared_ptr< WPropertyBase > value)
Sets the value from the specified property to this one.
virtual WPropertyBase::SPtr clone()
This method clones a property and returns the clone.
WPropertyList(const WPropertyListType &from)
Copy constructor.
virtual ~WPropertyList()
Destructor.
virtual std::string getAsString()
Returns the current value as a string.
virtual bool setAsString(std::string value)
This methods allows properties to be set by a string value.
WPropertyList(std::string name, std::string description)
Create an empty named property.
std::shared_ptr< WPropertyList< ValueType > > SPtr
Convenience typedef for a std::shared_ptr< WPropertyList >.
std::shared_ptr< WSharedObjectTicketRead< T > > ReadTicket
Type for read tickets.
ReadTicket getReadTicket() const
Returns a ticket to get read access to the contained data.