14 using std::unique_ptr;
void clearProperties()
Clears properties.
UniquePtrSequenceIterator< BaseProperty > getProperties()
bool updateProperty(const string &oldName, const string &name, const string &value)
Update a property.
vector< unique_ptr< BaseProperty > > properties
const BaseProperty * getPropertyAt(int idx) const
Get property by index.
BaseProperty * getPropertyAt(int idx)
Get property by index.
void setName(const string &name)
Set up name.
const int getPropertyIndex(const string &name) const
Get property index.
const BaseProperty * getProperty(const string &name) const
Retrieve property by name.
map< string, BaseProperty * > propertiesByName
BaseProperties(const string &name, const string &description)
Public constructor.
virtual ~BaseProperties()
Destructor.
ConstUniquePtrSequenceIterator< BaseProperty > getProperties() const
bool addProperty(const string &name, const string &value)
Add a property.
const string & getDescription()
bool removeProperty(const string &name)
Removes a property.
bool renameProperty(const string &oldName, const string &name)
Rename a property.
void setDescription(const string &description)
Set up description.
Base property model class.
Const unique_ptr sequence iterator.
unique_ptr sequence iterator
#define FORBID_CLASS_COPY(CLASS)