Part of a MIME-multipart-object. More...

#include <tnt/multipart.h>

Public Types

typedef std::string::const_iterator const_iterator
typedef std::string::const_iterator iterator
typedef std::string::size_type size_type
typedef std::string::value_type value_type
typedef std::string::pointer pointer
typedef std::string::reference reference
typedef
std::string::const_reference 
const_reference
typedef
std::string::difference_type 
difference_type

Public Member Functions

 Part ()
 Part (const_iterator b, const_iterator e)
const PartheadergetHeader () const
 returns the Partheader-object of this Part.
std::string getHeader (const std::string &key) const
 returns a single header-value or empty string if not set.
const std::string & getType () const
 returns the type of this Part
std::string getMimetype () const
 returns the type of this Part
const std::string & getName () const
 returns the name of this Part (name-attribute of html-input-field)
const std::string & getFilename () const
 returns the passed filename of the Part or empty string.
const_iterator getBodyBegin () const
 returns a const iterator to the start of data.
const_iterator getBodyEnd () const
 returns a const iterator past the end of data.
std::string getBody () const
 less efficient (a temporary string is created), but easier to use:
bool isEmpty () const
size_type getSize () const
const_iterator begin () const
const_iterator end () const
size_type size () const
bool empty () const

Detailed Description

Part of a MIME-multipart-object.

Member Typedef Documentation

typedef std::string::const_iterator tnt::Part::const_iterator
typedef std::string::const_reference tnt::Part::const_reference
typedef std::string::difference_type tnt::Part::difference_type
typedef std::string::const_iterator tnt::Part::iterator
typedef std::string::pointer tnt::Part::pointer
typedef std::string::reference tnt::Part::reference
typedef std::string::size_type tnt::Part::size_type
typedef std::string::value_type tnt::Part::value_type

Constructor & Destructor Documentation

tnt::Part::Part ( )
inline
tnt::Part::Part ( const_iterator  b,
const_iterator  e 
)

Member Function Documentation

const_iterator tnt::Part::begin ( ) const
inline
bool tnt::Part::empty ( ) const
inline
const_iterator tnt::Part::end ( ) const
inline
std::string tnt::Part::getBody ( ) const
inline

less efficient (a temporary string is created), but easier to use:

const_iterator tnt::Part::getBodyBegin ( ) const
inline

returns a const iterator to the start of data.

const_iterator tnt::Part::getBodyEnd ( ) const
inline

returns a const iterator past the end of data.

const std::string& tnt::Part::getFilename ( ) const
inline

returns the passed filename of the Part or empty string.

const Partheader& tnt::Part::getHeader ( ) const
inline

returns the Partheader-object of this Part.

std::string tnt::Part::getHeader ( const std::string &  key) const

returns a single header-value or empty string if not set.

std::string tnt::Part::getMimetype ( ) const
inline

returns the type of this Part

const std::string& tnt::Part::getName ( ) const
inline

returns the name of this Part (name-attribute of html-input-field)

size_type tnt::Part::getSize ( ) const
inline
const std::string& tnt::Part::getType ( ) const
inline

returns the type of this Part

bool tnt::Part::isEmpty ( ) const
inline
size_type tnt::Part::size ( ) const
inline

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