cee::PropertySet Class Reference

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...
 
PropertySetoperator= (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< StrallKeys () const
 Returns an array of all keys in the property set. More...
 
std::vector< VariantallValues () const
 Returns an array of all values in the property set. More...
 
- Public Member Functions inherited from cee::RefCountedObject
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...
 
Inheritance diagram for cee::PropertySet:
cee::RefCountedObject

Detailed Description

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

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

void cee::PropertySet::setValue ( const Str key,
Variant  data 
)

Sets a key and value pair.

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.