VMime
|
Public Member Functions | |
messageId () | |
messageId (const string &id) | |
messageId (const messageId &mid) | |
messageId (const string &left, const string &right) | |
const string & | getLeft () const |
void | setLeft (const string &left) |
const string & | getRight () const |
void | setRight (const string &right) |
messageId & | operator= (const string &id) |
bool | operator== (const messageId &mid) const |
bool | operator!= (const messageId &mid) const |
const string | getId () const |
shared_ptr< component > | clone () const |
void | copyFrom (const component &other) |
messageId & | operator= (const messageId &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 |
Static Public Member Functions | |
static messageId | generateId () |
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 () |
Static Protected Member Functions | |
static shared_ptr< messageId > | parseNext (const parsingContext &ctx, const string &buffer, const size_t position, const size_t end, size_t *newPosition) |
Message identifier (basic type).
messageId | ( | ) |
References component::parse().
|
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.
|
static |
Generate a random message identifier.
Referenced by htmlTextPart::addObject(), and transport::processHeader().
|
protectedvirtual |
Implements component.
|
virtual |
Return the list of children of this component.
Implements component.
const string getId | ( | ) | const |
Return the message identifier constructed by using the right part and the left part, separated by a '@' character.
Referenced by htmlTextPart::addObject(), and htmlTextPart::parse().
const string & getLeft | ( | ) | const |
Return the left part of the message identifier.
const string & getRight | ( | ) | const |
Return the right part of the message identifier.
bool operator!= | ( | const messageId & | mid | ) | const |
bool operator== | ( | const messageId & | mid | ) | const |
|
protectedvirtual |
Reimplemented from component.
References vmime::end(), and parserHelpers::isSpace().
|
staticprotected |
Parse a message-id from an input buffer.
buffer | input buffer |
position | position in the input buffer |
end | end position in the input buffer |
newPosition | will receive the new position in the input buffer |
Referenced by messageIdSequence::parseImpl().
void setLeft | ( | const string & | left | ) |
Set the left part of the message identifier.
left | left part of message identifier |
void setRight | ( | const string & | right | ) |
Set the right part of the message identifier.
right | right part of message identifier |