Add description to PropertyOwner

This commit is contained in:
Alexander Bock
2017-08-01 17:05:52 -04:00
parent eaf0d70a79
commit 8a62e6e791
39 changed files with 84 additions and 45 deletions

View File

@@ -51,9 +51,14 @@ class PropertyOwner {
public:
/// The separator that is used while accessing the properties and/or sub-owners
static const char URISeparator = '.';
struct PropertyOwnerInfo {
std::string name;
std::string description;
};
/// The constructor initializing the PropertyOwner's name to <code>""</code>
PropertyOwner(std::string name = "");
PropertyOwner(PropertyOwnerInfo info);
/**
* The destructor will remove all Propertys and PropertyOwners it owns along with
@@ -75,7 +80,12 @@ public:
* Returns the name of this PropertyOwner.
* \return The name of this PropertyOwner
*/
const std::string& name() const;
std::string name() const;
void setDescription(std::string description);
std::string description() const;
/**
* Returns a list of all Propertys directly owned by this PropertyOwner. This list not
@@ -223,6 +233,8 @@ public:
private:
/// The name of this PropertyOwner
std::string _name;
/// The description for this PropertyOwner
std::string _description;
/// The owner of this PropertyOwner
PropertyOwner* _owner;
/// A list of all registered Property's