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