A property set stores a set of properties each consisting of a key and a value. More...
Public Member Functions | |
PropertySet (const Str &classType) | |
Constructs an empty property set. More... | |
PropertySet (const PropertySet &other) | |
Constructs a property set object as a copy of other. More... | |
PropertySet & | operator= (const PropertySet &rhs) |
Assigns rhs to this property set and returns a reference to this property set. More... | |
bool | operator== (const PropertySet &rhs) const |
Returns true if rhs is equal to this property set; otherwise returns false. More... | |
bool | operator!= (const PropertySet &rhs) const |
Returns true if rhs is not equal to this property set; otherwise returns false. More... | |
Str | classType () const |
Returns the class type for this property set. More... | |
Variant | value (const Str &key) const |
Returns the value found for the given key. More... | |
void | setValue (const Str &key, Variant data) |
Sets a key and value pair. More... | |
std::vector< Str > | allKeys () const |
Returns an array of all keys in the property set. More... | |
std::vector< Variant > | allValues () const |
Returns an array of all values in the property set. More... | |
![]() | |
void | addRef () const |
Increments the reference count for this object. More... | |
void | release () const |
Decrements the reference count for this object. More... | |
int | refCount () const |
Returns the reference count for this object. More... | |
void | setRefCountZero () const |
Sets the ref count to zero, but DOES NOT delete the object. More... | |
A property set stores a set of properties each consisting of a key and a value.
cee::PropertySet::PropertySet | ( | const Str & | classType | ) |
Constructs an empty property set.
cee::PropertySet::PropertySet | ( | const PropertySet & | other | ) |
Constructs a property set object as a copy of other.
std::vector< Str > cee::PropertySet::allKeys | ( | ) | const |
Returns an array of all keys in the property set.
std::vector< Variant > cee::PropertySet::allValues | ( | ) | const |
Returns an array of all values in the property set.
Str cee::PropertySet::classType | ( | ) | const |
Returns the class type for this property set.
bool cee::PropertySet::operator!= | ( | const PropertySet & | rhs | ) | const |
Returns true if rhs is not equal to this property set; otherwise returns false.
PropertySet & cee::PropertySet::operator= | ( | const PropertySet & | rhs | ) |
Assigns rhs to this property set and returns a reference to this property set.
bool cee::PropertySet::operator== | ( | const PropertySet & | rhs | ) | const |
Returns true if rhs is equal to this property set; otherwise returns false.
cee::Variant cee::PropertySet::value | ( | const Str & | key | ) | const |
Returns the value found for the given key.
Returns an empty Variant if the key was not found.