ESA JPIP server  0.1
http::HeaderBase< NAME > Class Template Reference

Template class used to identify a HTTP header. More...

#include <header.h>

Collaboration diagram for http::HeaderBase< NAME >:

Public Member Functions

 HeaderBase ()
 Empty constructor. More...
 
 HeaderBase (const string &value)
 Initializes the header value. More...
 

Static Public Member Functions

static const char * name ()
 Returns the name of the header, used in the specialization of the class. More...
 

Private Attributes

string value
 String value of the header. More...
 

Friends

ostream & operator<< (ostream &out, const HeaderBase &header)
 
istream & operator>> (istream &in, HeaderBase &header)
 

Detailed Description

template<const char * NAME>
class http::HeaderBase< NAME >

Template class used to identify a HTTP header.

It is possible to use this class with standard streams. This class is specialized with the header name.

See Also
Header

Constructor & Destructor Documentation

template<const char * NAME>
http::HeaderBase< NAME >::HeaderBase ( )
inline

Empty constructor.

template<const char * NAME>
http::HeaderBase< NAME >::HeaderBase ( const string &  value)
inline

Initializes the header value.

Member Function Documentation

template<const char * NAME>
static const char* http::HeaderBase< NAME >::name ( )
inlinestatic

Returns the name of the header, used in the specialization of the class.

Here is the caller graph for this function:

Friends And Related Function Documentation

template<const char * NAME>
ostream& operator<< ( ostream &  out,
const HeaderBase< NAME > &  header 
)
friend
template<const char * NAME>
istream& operator>> ( istream &  in,
HeaderBase< NAME > &  header 
)
friend

Member Data Documentation

template<const char * NAME>
string http::HeaderBase< NAME >::value
private

String value of the header.


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