Mix-in streamable interface. More...
#include <cgicc/MStreamable.h>
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 | |
std::ostream & | operator<< (std::ostream &out, const MStreamable &obj) |
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.
|
inline |
Empty constructor.
Definition at line 77 of file MStreamable.h.
|
inlinevirtual |
Empty destructor.
Definition at line 84 of file MStreamable.h.
|
pure virtual |
Write this object to a stream.
Subclasses must implement this function.
out | The ostream to which to write. |
Implemented in cgicc::HTMLAttribute, cgicc::HTMLDoctype, cgicc::HTMLElement, cgicc::HTTPContentHeader, cgicc::HTTPCookie, cgicc::HTTPRedirectHeader, cgicc::HTTPResponseHeader, cgicc::HTTPStatusHeader, cgicc::XHTMLDoctype, cgicc::XMLPI, and cgicc::HTTPHeader.
|
friend |
Prototype for overloading streaming operator
out | The ostream to which to write |
obj | The MStreamable object to write |
out