VMime
propertySet::property Class Reference
Inheritance diagram for propertySet::property:
Collaboration diagram for propertySet::property:

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 string &value)
 
template<>
void setValue (const bool &value)
 
template<>
string getValue () const
 
template<>
bool getValue () const
 
template<>
VMIME_EXPORT void setValue (const string &value)
 
template<>
VMIME_EXPORT void setValue (const bool &value)
 
template<>
VMIME_EXPORT string getValue () const
 
template<>
VMIME_EXPORT bool getValue () const
 

Additional Inherited Members

- Protected Member Functions inherited from object
 object ()
 
 object (const object &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

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
const string & getValue ( ) const

Return the value of the property as a string.

Returns
current value of the property
TYPE getValue ( ) const

Get the value of the property as a generic type.

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

Set the value of the property as a string.

Parameters
valuenew value for property
void setValue ( const TYPE &  value)

Set the value of the property as a generic type.

Parameters
valuenew value for property
void setValue ( const string value)
void setValue ( const bool &  value)
VMIME_EXPORT void setValue ( const string value)
VMIME_EXPORT void setValue ( const bool &  value)

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