property Class Reference

A property holds a (name,value) pair. More...

Inheritance diagram for property:
Inheritance graph
[legend]
Collaboration diagram for property:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 property (const string &name, const string &value)
 property (const string &name)
 property (const property &prop)
const stringgetName () const
const stringgetValue () const
void setValue (const string &value)
template<class TYPE >
void setValue (const TYPE &value)
template<class TYPE >
TYPE getValue () const
template<>
void setValue (const bool &value)

Detailed Description

A property holds a (name,value) pair.


Constructor & Destructor Documentation

property ( const string name,
const string value 
)
property ( const string name  ) 
property ( const property prop  ) 

Member Function Documentation

const string & getName (  )  const

Return the name of the property.

Returns:
property name
TYPE getValue (  )  const

Get the value of the property as a generic type.

Exceptions:
exceptions::invalid_property_type if the specified type is incompatible with the string value (cannot be converted using std::istringstream)
Returns:
current value of the property
bool getValue (  )  const

Return the value of the property as a string.

Returns:
current value of the property
void setValue ( const bool &  value  ) 
void setValue ( const TYPE &  value  ) 

Set the value of the property as a generic type.

Parameters:
value new value for property
void setValue< string > ( const string value  ) 

Set the value of the property as a string.

Parameters:
value new value for property

The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2