Standard-message-header like rfc822. More...

#include <tnt/messageheader.h>

Inheritance diagram for tnt::Messageheader:
tnt::Partheader

Classes

class  const_iterator
class  Parser

Public Types

typedef std::pair< const char
*, const char * > 
value_type

Public Member Functions

 Messageheader ()
virtual ~Messageheader ()
const_iterator begin () const
const_iterator end () const
const_iterator find (const char *key) const
const_iterator find (const std::string &key) const
bool hasHeader (const char *key) const
bool hasHeader (const std::string &key) const
bool compareHeader (const char *key, const char *value) const
bool compareHeader (const std::string &key, const std::string &value) const
void removeHeader (const char *key)
void removeHeader (const std::string &key)
void clear ()
void setHeader (const char *key, const char *value, bool replace)
void setHeader (const std::string &key, const std::string &value, bool replace)

Static Public Attributes

static const unsigned MAXHEADERSIZE = 4096

Protected Types

enum  return_type { OK, FAIL, END }

Protected Member Functions

virtual return_type onField (const char *name, const char *value)

Detailed Description

Standard-message-header like rfc822.

Member Typedef Documentation

typedef std::pair<const char*, const char*> tnt::Messageheader::value_type

Member Enumeration Documentation

Enumerator:
OK 
FAIL 
END 

Constructor & Destructor Documentation

tnt::Messageheader::Messageheader ( )
inline
virtual tnt::Messageheader::~Messageheader ( )
inlinevirtual

Member Function Documentation

const_iterator tnt::Messageheader::begin ( ) const
inline
void tnt::Messageheader::clear ( )
bool tnt::Messageheader::compareHeader ( const char *  key,
const char *  value 
) const
bool tnt::Messageheader::compareHeader ( const std::string &  key,
const std::string &  value 
) const
inline
const_iterator tnt::Messageheader::end ( ) const
inline
const_iterator tnt::Messageheader::find ( const char *  key) const
const_iterator tnt::Messageheader::find ( const std::string &  key) const
inline
bool tnt::Messageheader::hasHeader ( const char *  key) const
inline
bool tnt::Messageheader::hasHeader ( const std::string &  key) const
inline
virtual return_type tnt::Messageheader::onField ( const char *  name,
const char *  value 
)
protectedvirtual

Reimplemented in tnt::Partheader.

void tnt::Messageheader::removeHeader ( const char *  key)
void tnt::Messageheader::removeHeader ( const std::string &  key)
inline
void tnt::Messageheader::setHeader ( const char *  key,
const char *  value,
bool  replace 
)
void tnt::Messageheader::setHeader ( const std::string &  key,
const std::string &  value,
bool  replace 
)
inline

Member Data Documentation

const unsigned tnt::Messageheader::MAXHEADERSIZE = 4096
static

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