|
VMime
|
#include <propertySet.hpp>


Classes | |
| class | constPropertyProxy |
| class | property |
| class | propertyProxy |
Static Public Member Functions | |
| template<typename TYPE > | |
| static TYPE | valueFromString (const string &value) |
| template<typename TYPE > | |
| static string | valueToString (const TYPE &value) |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Manage a list of (name,value) pairs.
| propertySet | ( | ) |
| propertySet | ( | const string & | props | ) |
| propertySet | ( | const propertySet & | set | ) |
References vmime::dynamicCast().
| ~propertySet | ( | ) |
References propertySet::removeAllProperties().
Get the value of the specified property.
| exceptions::no_such_property | if the property does not exist |
| name | property name |
References vmime::dynamicCast().
Referenced by qpEncoder::decode(), b64Encoder::encode(), qpEncoder::encode(), uuEncoder::encode(), b64Encoder::getEncodedSize(), and qpEncoder::getEncodedSize().
Get the value of the specified property.
A default value can be returned if the property is not set.
| name | property name |
| defaultValue | value to return if the specified property does not exist |
References vmime::dynamicCast().
| const std::vector< shared_ptr< propertySet::property > > getPropertyList | ( | ) |
| const std::vector< shared_ptr< const propertySet::property > > getPropertyList | ( | ) | const |
Test whether the specified property is set.
| name | name of the property to test |
References vmime::dynamicCast().
Referenced by defaultAuthenticator::getAccessToken(), defaultAuthenticator::getPassword(), and defaultAuthenticator::getUsername().
| propertySet & operator= | ( | const propertySet & | set | ) |
References vmime::dynamicCast(), and propertySet::removeAllProperties().
| propertySet::propertyProxy operator[] | ( | const string & | name | ) |
Return a proxy object to access the specified property suitable for reading or writing.
If the property does not exist and the value is changed, a new property will be created.
| name | property name |
| const propertySet::constPropertyProxy operator[] | ( | const string & | name | ) | const |
Return a proxy object to access the specified property suitable for reading only.
| exceptions::no_such_property | if the property does not exist |
| void removeAllProperties | ( | ) |
Remove all properties from the list.
Referenced by propertySet::operator=(), and propertySet::~propertySet().
Remove the specified property.
| name | name of the property to remove |
References vmime::dynamicCast().
Parse a string and extract one or more properties.
The string format is: name[=value](;name[=value])*.
| props | string representing a list of properties |
Change the value of the specified property or create a new property set to the specified a value.
| name | property name |
| value | property value |
References vmime::dynamicCast().
References vmime::dynamicCast().
References vmime::dynamicCast(), and stringUtils::toLower().
References vmime::dynamicCast().
| VMIME_EXPORT string valueFromString | ( | const string & | value | ) |
| VMIME_EXPORT bool valueFromString | ( | const string & | value | ) |
References vmime::dynamicCast().
| VMIME_EXPORT string valueToString | ( | const bool & | value | ) |
References vmime::dynamicCast().
| VMIME_EXPORT string valueToString | ( | const string & | value | ) |
References vmime::dynamicCast().