|
VMime
|
#include <parameter.hpp>


Protected Member Functions | |
| void | parseImpl (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
| void | generateImpl (const generationContext &ctx, utility::outputStream &os, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
Protected Member Functions inherited from component | |
| void | setParsedBounds (const size_t start, const size_t end) |
| virtual void | parseImpl (const parsingContext &ctx, shared_ptr< utility::parserInputStreamAdapter > parser, const size_t position, const size_t end, size_t *newPosition=NULL) |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Construct a parameter with no value.
Charset is set to the current locale charset.
| name | parameter name |
Construct a parameter given a name and a value.
| name | parameter name |
| value | parameter value |
Construct a parameter given a name and a string value expressed in the current locale charset.
| name | parameter name |
| value | parameter value |
|
virtual |
Clone this component.
Implements component.
References vmime::dynamicCast().
Replace data in this component by data in other component.
Both components must be of the same type.
| std::bad_cast_exception | if the components are not of the same (dynamic) type |
| other | other component to copy data from |
Implements component.
References vmime::dynamicCast().
Referenced by parameter::operator=().
|
protectedvirtual |
Implements component.
References vmime::dynamicCast(), parserHelpers::isAscii(), parserHelpers::isPrint(), vmime::NEW_LINE_SEQUENCE, vmime::NEW_LINE_SEQUENCE_LENGTH, generationContext::PARAMETER_VALUE_NO_ENCODING, generationContext::PARAMETER_VALUE_RFC2047_ONLY, and generationContext::PARAMETER_VALUE_RFC2231_AND_RFC2047.
|
virtual |
Return the list of children of this component.
Implements component.
|
virtual |
Get the number of bytes that will be used by this component when it is generated.
This may be a heuristically-derived estimate, but such an estimated size should always be larger than the actual generated size.
| ctx | generation context |
Reimplemented from component.
References stringUtils::countASCIIchars(), vmime::dynamicCast(), and vmime::NEW_LINE_SEQUENCE_LENGTH.
Return the value of this object in the specified type.
For example, the following code:
getParameter("creation-date")->getValueAs <vmime::dateTime>()
is equivalent to:
shared_ptr <vmime::word> rawValue = getParameter("creation-date"); vmime::dateTime theDate; theDate.parse(rawValue->getBuffer());
| T | type to which convert the value |
References vmime::dynamicCast().
References parameter::copyFrom().
|
protectedvirtual |
Reimplemented from component.
References vmime::dynamicCast(), vmime::end(), vmime::charsets::US_ASCII, and vmime::charsets::UTF_8.
Set the value of this parameter.
| value | new value |
References vmime::dynamicCast(), parameter::setValue(), and vmime::charsets::US_ASCII.
Referenced by parameter::setValue().