VMime
contentDisposition Class Reference
Inheritance diagram for contentDisposition:
Collaboration diagram for contentDisposition:

Public Member Functions

 contentDisposition ()
 
 contentDisposition (const string &name)
 
 contentDisposition (const contentDisposition &disp)
 
const stringgetName () const
 
void setName (const string &name)
 
shared_ptr< componentclone () const
 
void copyFrom (const component &other)
 
contentDispositionoperator= (const contentDisposition &other)
 
const std::vector< shared_ptr
< component > > 
getChildComponents ()
 
contentDispositionoperator= (const string &name)
 
bool operator== (const contentDisposition &value) const
 
bool operator!= (const contentDisposition &value) const
 
- 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 &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

Detailed Description

Content disposition (basic type).

Constructor & Destructor Documentation

contentDisposition ( const string name)

Member Function Documentation

shared_ptr< component > clone ( ) const
virtual

Clone this component.

Returns
a copy of this component

Implements component.

void copyFrom ( const component other)
virtual

Replace data in this component by data in other component.

Both components must be of the same type.

Exceptions
std::bad_cast_exceptionif the components are not of the same (dynamic) type
Parameters
otherother component to copy data from

Implements component.

Referenced by contentDisposition::operator=().

void generateImpl ( const generationContext ctx,
utility::outputStream os,
const size_t  curLinePos = 0,
size_t newLinePos = NULL 
) const
protectedvirtual

Implements component.

const std::vector< shared_ptr< component > > getChildComponents ( )
virtual

Return the list of children of this component.

Returns
list of child components

Implements component.

const string & getName ( ) const

Return the content disposition type.

See the constants in vmime::dispositionTypes.

Returns
name of the disposition type (eg. "inline")

Referenced by attachmentHelper::isBodyPartAnAttachment().

bool operator!= ( const contentDisposition value) const
contentDisposition & operator= ( const contentDisposition other)
contentDisposition & operator= ( const string name)
bool operator== ( const contentDisposition value) const
void parseImpl ( const parsingContext ctx,
const string buffer,
const size_t  position,
const size_t  end,
size_t newPosition = NULL 
)
protectedvirtual

Reimplemented from component.

References vmime::end(), stringUtils::toLower(), and stringUtils::trim().

void setName ( const string name)

Set the content disposition type.

See the constants in vmime::dispositionTypes.

Parameters
namename of the disposition type

The documentation for this class was generated from the following files: