VMime
|
Public Member Functions | |
path () | |
path (const string &localPart, const string &domain) | |
path (const path &p) | |
const string & | getLocalPart () const |
void | setLocalPart (const string &localPart) |
const string & | getDomain () const |
void | setDomain (const string &domain) |
bool | operator== (const path &p) const |
bool | operator!= (const path &p) const |
void | copyFrom (const component &other) |
shared_ptr< component > | clone () const |
path & | operator= (const path &other) |
const std::vector< shared_ptr < component > > | getChildComponents () |
Public Member Functions inherited from headerFieldValue | |
size_t | getGeneratedSize (const generationContext &ctx) |
Public Member Functions inherited from component | |
component () | |
virtual | ~component () |
void | parse (const string &buffer) |
void | parse (const parsingContext &ctx, const string &buffer) |
void | parse (shared_ptr< utility::inputStream > inputStream, const size_t length) |
void | parse (const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | parse (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | parse (shared_ptr< utility::inputStream > inputStream, const size_t position, const size_t end, size_t *newPosition=NULL) |
void | parse (const parsingContext &ctx, shared_ptr< utility::inputStream > inputStream, const size_t position, const size_t end, size_t *newPosition=NULL) |
virtual const string | generate (const size_t maxLineLength=lineLengthLimits::infinite, const size_t curLinePos=0) const |
virtual void | generate (utility::outputStream &outputStream, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
virtual void | generate (const generationContext &ctx, utility::outputStream &outputStream, const size_t curLinePos=0, size_t *newLinePos=NULL) const |
size_t | getParsedOffset () const |
size_t | getParsedLength () const |
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 () |
Protected Attributes | |
string | m_localPart |
string | m_domain |
A path: a local part + '@' + a domain.
path | ( | ) |
|
virtual |
|
virtual |
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 path::m_domain, and path::m_localPart.
Referenced by path::operator=().
|
protectedvirtual |
Implements component.
|
virtual |
Return the list of children of this component.
Implements component.
const string & getDomain | ( | ) | const |
Return the domain of the address.
References path::m_domain.
Referenced by MDNHelper::needConfirmation().
const string & getLocalPart | ( | ) | const |
Return the local part of the address.
References path::m_localPart.
Referenced by MDNHelper::needConfirmation().
bool operator!= | ( | const path & | p | ) | const |
References path::m_domain, and path::m_localPart.
References path::copyFrom().
bool operator== | ( | const path & | p | ) | const |
References path::m_domain, and path::m_localPart.
|
protectedvirtual |
Reimplemented from component.
References vmime::end(), parserHelpers::isSpace(), and vmime::npos.
void setDomain | ( | const string & | domain | ) |
void setLocalPart | ( | const string & | localPart | ) |
Set the local part of the address.
localPart | local part of the address |
References path::m_localPart.
|
protected |
Referenced by path::copyFrom(), path::getDomain(), path::operator!=(), path::operator==(), and path::setDomain().
|
protected |
Referenced by path::copyFrom(), path::getLocalPart(), path::operator!=(), path::operator==(), and path::setLocalPart().