|
VMime
|
#include <propertySet.hpp>


Public Member Functions | |
| property (const string &name, const string &value) | |
| property (const string &name) | |
| property (const property &prop) | |
| const string & | getName () const |
| const string & | getValue () 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 |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A property holds a (name,value) pair.
| VMIME_EXPORT bool getValue | ( | ) | const |
Return the value of the property as a string.
Get the value of the property as a generic type.
| exceptions::invalid_property_type | if the specified type is incompatible with the string value (cannot be converted using std::istringstream) |
| VMIME_EXPORT void setValue | ( | const bool & | value | ) |
References vmime::dynamicCast().
| VMIME_EXPORT void setValue< string > | ( | const string & | value | ) |
References vmime::dynamicCast().
Set the value of the property as a string.
| value | new value for property |
References vmime::dynamicCast().
Set the value of the property as a generic type.
| value | new value for property |