cgicc::MStreamable Class Reference

Mix-in streamable interface. More...

#include <cgicc/MStreamable.h>

Inheritance diagram for cgicc::MStreamable:

cgicc::HTMLAttribute cgicc::HTMLDoctype cgicc::HTMLElement cgicc::HTTPCookie cgicc::HTTPHeader cgicc::HTTPResponseHeader cgicc::HTMLAtomicElement< Tag > cgicc::HTMLBooleanElement< Tag > cgicc::HTMLBooleanElement< cgicc::nullTag > cgicc::HTTPContentHeader cgicc::HTTPRedirectHeader cgicc::HTTPStatusHeader cgicc::comment cgicc::HTTPHTMLHeader cgicc::HTTPPlainHeader

Public Member Functions

 MStreamable ()
 Empty constructor.
virtual ~MStreamable ()
 Empty destructor.
virtual void render (std::ostream &out) const=0
 Write this object to a stream.

Friends

CGICC_API std::ostream & operator<< (std::ostream &out, const MStreamable &obj)

Detailed Description

Mix-in streamable interface.

Abstract mix-in class which makes classes streamable via the << operator. Written in the spirit of a Java interface.

Definition at line 66 of file MStreamable.h.


Member Function Documentation

virtual void cgicc::MStreamable::render ( std::ostream &  out  )  const [pure virtual]

Write this object to a stream.

Subclasses must implement this function.

Parameters:
out The ostream to which to write.

Implemented in cgicc::HTMLAttribute, cgicc::HTMLDoctype, cgicc::HTMLElement, cgicc::HTTPContentHeader, cgicc::HTTPCookie, cgicc::HTTPHeader, cgicc::HTTPRedirectHeader, cgicc::HTTPResponseHeader, and cgicc::HTTPStatusHeader.

Referenced by cgicc::operator<<().


Friends And Related Function Documentation

CGICC_API std::ostream& operator<< ( std::ostream &  out,
const MStreamable obj 
) [friend]

Prototype for overloading streaming operator

Parameters:
out The ostream to which to write
obj The MStreamable object to write
Returns:
A reference to out

Definition at line 34 of file MStreamable.cpp.


The documentation for this class was generated from the following file:
Generated on Tue Jul 3 15:44:48 2007 for GNUCgicc by  doxygen 1.5.1