Public Member Functions | Friends | List of all members
cgicc::MStreamable Class Referenceabstract

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::XHTMLDoctype cgicc::XMLPI

Public Member Functions

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

Friends

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
outThe ostream to which to write.

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

Friends And Related Function Documentation

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

Prototype for overloading streaming operator

Parameters
outThe ostream to which to write
objThe MStreamable object to write
Returns
A reference to out

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

GNU cgicc - A C++ class library for writing CGI applications
Copyright © 1996 - 2004 Stephen F. Booth
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front Cover Texts, and with no Back-Cover Texts.
Documentation generated Thu Jun 5 2014 01:05:51 for cgicc by doxygen 1.8.3.1