tnt::Contenttype Class Reference

Content-type-field like rfc2045. More...

#include <tnt/contenttype.h>

Inheritance diagram for tnt::Contenttype:
tnt::MessageattributeParser

Public Types

typedef std::multimap
< std::string, std::string > 
parameter_type
typedef
parameter_type::const_iterator 
parameter_iterator
- Public Types inherited from tnt::MessageattributeParser
enum  return_type { OK, FAIL, END }

Public Member Functions

 Contenttype ()
 Contenttype (const std::string &ct)
 Contenttype (const std::string &type_, const std::string &subtype_)
const std::string & getType () const
const std::string & getSubtype () const
const std::string & getBoundary () const
bool isMultipart () const
parameter_iterator parameter_begin () const
parameter_iterator parameter_end () const
parameter_iterator parameter_find (parameter_type::key_type key) const
parameter_iterator parameter_upper_bound (parameter_type::key_type key) const
bool operator== (const Contenttype &ct) const
- Public Member Functions inherited from tnt::MessageattributeParser
virtual ~MessageattributeParser ()
void parse (std::istream &in)

Detailed Description

Content-type-field like rfc2045.

Member Typedef Documentation

typedef parameter_type::const_iterator tnt::Contenttype::parameter_iterator
typedef std::multimap<std::string, std::string> tnt::Contenttype::parameter_type

Constructor & Destructor Documentation

tnt::Contenttype::Contenttype ( )
inline
tnt::Contenttype::Contenttype ( const std::string &  ct)
explicit
tnt::Contenttype::Contenttype ( const std::string &  type_,
const std::string &  subtype_ 
)
inline

Member Function Documentation

const std::string& tnt::Contenttype::getBoundary ( ) const
inline
const std::string& tnt::Contenttype::getSubtype ( ) const
inline
const std::string& tnt::Contenttype::getType ( ) const
inline
bool tnt::Contenttype::isMultipart ( ) const
inline
bool tnt::Contenttype::operator== ( const Contenttype ct) const
inline
parameter_iterator tnt::Contenttype::parameter_begin ( ) const
inline
parameter_iterator tnt::Contenttype::parameter_end ( ) const
inline
parameter_iterator tnt::Contenttype::parameter_find ( parameter_type::key_type  key) const
inline
parameter_iterator tnt::Contenttype::parameter_upper_bound ( parameter_type::key_type  key) const
inline

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