contentDisposition Class Reference

Content disposition (basic type). More...

Inheritance diagram for contentDisposition:
Inheritance graph
[legend]
Collaboration diagram for contentDisposition:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 contentDisposition ()
 contentDisposition (const string &name)
 contentDisposition (const contentDisposition &disp)
const stringgetName () const
void setName (const string &name)
ref< componentclone () const
void copyFrom (const component &other)
contentDispositionoperator= (const contentDisposition &other)
const std::vector< ref< const
component > > 
getChildComponents () const
contentDispositionoperator= (const string &name)
bool operator== (const contentDisposition &value) const
bool operator!= (const contentDisposition &value) const
void parse (const string &buffer, const string::size_type position, const string::size_type end, string::size_type *newPosition=NULL)
void generate (utility::outputStream &os, const string::size_type maxLineLength=lineLengthLimits::infinite, const string::size_type curLinePos=0, string::size_type *newLinePos=NULL) const

Detailed Description

Content disposition (basic type).


Constructor & Destructor Documentation

contentDisposition ( const string name  ) 
contentDisposition ( const contentDisposition disp  ) 

Member Function Documentation

ref< 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_exception if the components are not of the same (dynamic) type
Parameters:
other other component to copy data from

Implements component.

void generate ( utility::outputStream os,
const string::size_type  maxLineLength = lineLengthLimits::infinite,
const string::size_type  curLinePos = 0,
string::size_type *  newLinePos = NULL 
) const [virtual]

Generate RFC-2822/MIME data for this component.

Parameters:
os output stream
maxLineLength maximum line length for output
curLinePos length of the current line in the output buffer
newLinePos will receive the new line position (length of the last line written)

Implements component.

const std::vector< ref< const component > > getChildComponents (  )  const [virtual]

Return the list of children of this component (const version).

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 string name  ) 
contentDisposition & operator= ( const contentDisposition other  ) 
bool operator== ( const contentDisposition value  )  const
void parse ( const string buffer,
const string::size_type  position,
const string::size_type  end,
string::size_type *  newPosition = NULL 
) [virtual]

Parse RFC-822/MIME data for this component.

Parameters:
buffer input buffer
position current position in the input buffer
end end position in the input buffer
newPosition will receive the new position in the input buffer

Implements component.

void setName ( const string name  ) 

Set the content disposition type.

See the constants in vmime::dispositionTypes.

Parameters:
name name of the disposition type

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

Generated by  doxygen 1.6.2