|
VMime
|


Classes | |
| class | constPropertyProxy |
| class | property |
| class | propertyProxy |
Public Member Functions | |
| propertySet () | |
| propertySet (const string &props) | |
| propertySet (const propertySet &set) | |
| ~propertySet () | |
| propertySet & | operator= (const propertySet &set) |
| void | setFromString (const string &props) |
| void | removeAllProperties () |
| void | removeProperty (const string &name) |
| bool | hasProperty (const string &name) const |
| template<class TYPE > | |
| const TYPE | getProperty (const string &name) const |
| template<class TYPE > | |
| const TYPE | getProperty (const string &name, const TYPE defaultValue) const |
| template<class TYPE > | |
| void | setProperty (const string &name, const TYPE &value) |
| propertyProxy | operator[] (const string &name) |
| const constPropertyProxy | operator[] (const string &name) const |
| const std::vector< shared_ptr< const property > > | getPropertyList () const |
| const std::vector< shared_ptr< property > > | getPropertyList () |
| template<> | |
| string | valueFromString (const string &value) |
| template<> | |
| string | valueToString (const string &value) |
| template<> | |
| bool | valueFromString (const string &value) |
| template<> | |
| string | valueToString (const bool &value) |
| template<> | |
| VMIME_EXPORT string | valueFromString (const string &value) |
| template<> | |
| VMIME_EXPORT string | valueToString (const string &value) |
| template<> | |
| VMIME_EXPORT bool | valueFromString (const string &value) |
| template<> | |
| VMIME_EXPORT string | valueToString (const bool &value) |
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 | ) |
| ~propertySet | ( | ) |
References propertySet::removeAllProperties().
| const TYPE getProperty | ( | const string & | name | ) | const |
Get the value of the specified property.
| exceptions::no_such_property | if the property does not exist |
| name | property name |
Referenced by qpEncoder::decode(), uuEncoder::encode(), b64Encoder::encode(), qpEncoder::encode(), b64Encoder::getEncodedSize(), and qpEncoder::getEncodedSize().
| const TYPE getProperty | ( | const string & | name, |
| const TYPE | defaultValue | ||
| ) | const |
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 |
| const std::vector< shared_ptr< const propertySet::property > > getPropertyList | ( | ) | const |
Return the property list.
| const std::vector< shared_ptr< propertySet::property > > getPropertyList | ( | ) |
Return the property list.
| bool hasProperty | ( | const string & | name | ) | const |
Test whether the specified property is set.
| name | name of the property to test |
Referenced by defaultAuthenticator::getAccessToken(), defaultAuthenticator::getPassword(), and defaultAuthenticator::getUsername().
| propertySet & operator= | ( | const propertySet & | set | ) |
References 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().
| void removeProperty | ( | const string & | name | ) |
Remove the specified property.
| name | name of the property to remove |
References vmime::end(), and parserHelpers::isSpace().
| void setFromString | ( | const string & | props | ) |
Parse a string and extract one or more properties.
The string format is: name[=value](;name[=value])*.
| props | string representing a list of properties |
| void setProperty | ( | const string & | name, |
| const TYPE & | value | ||
| ) |
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 stringUtils::toLower().
| bool valueFromString | ( | const string & | value | ) |
References stringUtils::toLower().
|
static |
Referenced by propertySet::valueToString().
| VMIME_EXPORT bool valueFromString | ( | const string & | value | ) |
| string valueToString | ( | const bool & | value | ) |
|
static |
| VMIME_EXPORT string valueToString | ( | const bool & | value | ) |