VMime
|
Public Member Functions | |
messageIdSequence () | |
messageIdSequence (const messageIdSequence &midSeq) | |
~messageIdSequence () | |
shared_ptr< component > | clone () const |
void | copyFrom (const component &other) |
messageIdSequence & | operator= (const messageIdSequence &other) |
const std::vector< shared_ptr < component > > | getChildComponents () |
void | appendMessageId (shared_ptr< messageId > mid) |
void | insertMessageIdBefore (shared_ptr< messageId > beforeMid, shared_ptr< messageId > mid) |
void | insertMessageIdBefore (const size_t pos, shared_ptr< messageId > mid) |
void | insertMessageIdAfter (shared_ptr< messageId > afterMid, shared_ptr< messageId > mid) |
void | insertMessageIdAfter (const size_t pos, shared_ptr< messageId > mid) |
void | removeMessageId (shared_ptr< messageId > mid) |
void | removeMessageId (const size_t pos) |
void | removeAllMessageIds () |
size_t | getMessageIdCount () const |
bool | isEmpty () const |
const shared_ptr< messageId > | getMessageIdAt (const size_t pos) |
const shared_ptr< const messageId > | getMessageIdAt (const size_t pos) const |
const std::vector< shared_ptr < const messageId > > | getMessageIdList () const |
const std::vector< shared_ptr < messageId > > | getMessageIdList () |
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 () |
A list of message identifiers (basic type).
messageIdSequence | ( | const messageIdSequence & | midSeq | ) |
References messageIdSequence::copyFrom().
~messageIdSequence | ( | ) |
References messageIdSequence::removeAllMessageIds().
void appendMessageId | ( | shared_ptr< messageId > | mid | ) |
Add a message-id at the end of the list.
mid | message-id to append |
|
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 vmime::clone(), and messageIdSequence::removeAllMessageIds().
Referenced by messageIdSequence::messageIdSequence(), and messageIdSequence::operator=().
|
protectedvirtual |
Implements component.
References generationContext::getMaxLineLength(), and generationContext::setMaxLineLength().
|
virtual |
Return the list of children of this component.
Implements component.
References vmime::copy_vector().
Return the message-id at the specified position.
pos | position |
Return the message-id at the specified position.
pos | position |
size_t getMessageIdCount | ( | ) | const |
Return the number of message-ides in the list.
const std::vector< shared_ptr< const messageId > > getMessageIdList | ( | ) | const |
Return the message-id list.
const std::vector< shared_ptr< messageId > > getMessageIdList | ( | ) |
Return the message-id list.
Insert a new message-id after the specified message-id.
afterMid | message-id after which the new message-id will be inserted |
mid | message-id to insert |
exceptions::no_such_message_id | if the message-id is not in the list |
Insert a new message-id after the specified position.
pos | position of the message-id before the new message-id |
mid | message-id to insert |
Insert a new message-id before the specified message-id.
beforeMid | message-id before which the new message-id will be inserted |
mid | message-id to insert |
exceptions::no_such_messageid | if the message-id is not in the list |
Insert a new message-id before the specified position.
pos | position at which to insert the new message-id (0 to insert at the beginning of the list) |
mid | message-id to insert |
bool isEmpty | ( | ) | const |
Tests whether the list of message-ides is empty.
messageIdSequence & operator= | ( | const messageIdSequence & | other | ) |
References messageIdSequence::copyFrom().
|
protectedvirtual |
Reimplemented from component.
References vmime::end(), and messageId::parseNext().
void removeAllMessageIds | ( | ) |
Remove all message-ids from the list.
Referenced by messageIdSequence::copyFrom(), and messageIdSequence::~messageIdSequence().
void removeMessageId | ( | shared_ptr< messageId > | mid | ) |
Remove the specified message-id from the list.
mid | message-id to remove |
exceptions::no_such_message_id | if the message-id is not in the list |
void removeMessageId | ( | const size_t | pos | ) |
Remove the message-id at the specified position.
pos | position of the message-id to remove |