cee::PropertySet

class PropertySet : public RefCountedObject

A property set stores a set of properties each consisting of a key and a value.

Public Functions

PropertySet(const Str &classType)

Constructs an empty property set.

PropertySet(const PropertySet &other)

Constructs a property set object as a copy of other.

PropertySet &operator=(const PropertySet &rhs)

Assigns rhs to this property set and returns a reference to this property set.

bool operator==(const PropertySet &rhs) const

Returns true if rhs is equal to this property set; otherwise returns false.

bool operator!=(const PropertySet &rhs) const

Returns true if rhs is not equal to this property set; otherwise returns false.

Str classType() const

Returns the class type for this property set.

Variant value(const Str &key) const

Returns the value found for the given key.

Returns an empty Variant if the key was not found.

void setValue(const Str &key, Variant data)

Sets a key and value pair.

std::vector<Str> allKeys() const

Returns an array of all keys in the property set.

std::vector<Variant> allValues() const

Returns an array of all values in the property set.