Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

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 cgicc::HTMLBooleanElement cgicc::HTMLBooleanElement< nullTag > cgicc::HTTPContentHeader cgicc::HTTPRedirectHeader cgicc::HTTPStatusHeader cgicc::comment cgicc::HTTPHTMLHeader cgicc::HTTPPlainHeader List of all members.

Public Methods

 MStreamable ()
 Empty constructor. More...

virtual ~MStreamable ()
 Empty destructor. More...

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


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 64 of file MStreamable.h.

Constructor & Destructor Documentation

cgicc::MStreamable::MStreamable   [inline]

Empty constructor.

Definition at line 75 of file MStreamable.h.

virtual cgicc::MStreamable::~MStreamable   [inline, virtual]

Empty destructor.

Definition at line 82 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.

out  The ostream to which to write.

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

Friends And Related Function Documentation

std:: ostream& operator<< std::ostream &    out,
const MStreamable &    obj

Prototype for overloading streaming operator

out  The ostream to which to write
obj  The MStreamable object to write
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 - 2002 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 Sun Mar 17 16:40:58 2002 for cgicc by doxygen