mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-27 07:18:57 -06:00
Add description to PropertyOwner
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user