cgicc::HTMLDoctype Class Reference

Specifies the DTD of the HTML 4 document. More...

#include <cgicc/HTMLDoctype.h>

Inheritance diagram for cgicc::HTMLDoctype:

cgicc::MStreamable

Public Types

enum  EDocumentType { eStrict, eTransitional, eFrames }

Public Member Functions

 HTMLDoctype (EDocumentType type=eStrict)
 Constructor.
virtual ~HTMLDoctype ()
 Destructor.
virtual void render (std::ostream &out) const
 Write this object to a stream.

Detailed Description

Specifies the DTD of the HTML 4 document.

To use this class, simply write an object of this type to an ostream:

 out << cgicc::HTMLDoctype();
For more information, see http://www.w3.org/MarkUp/ and http://www.w3.org/TR/REC-html40/

Definition at line 56 of file HTMLDoctype.h.


Member Enumeration Documentation

enum cgicc::HTMLDoctype::EDocumentType

The DTD used by this document.

Enumerator:
eStrict  The HTML 4.0 strict DTD (the default)
eTransitional  The HTML 4.0 Transitional DTD
eFrames  The HTML 4.0 Frameset DTD

Definition at line 61 of file HTMLDoctype.h.


Constructor & Destructor Documentation

cgicc::HTMLDoctype::HTMLDoctype ( EDocumentType  type = eStrict  ) 

Constructor.

Parameters:
type The version of the HTML 4.0 DTD used by this document.

Definition at line 34 of file HTMLDoctype.cpp.


Member Function Documentation

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

Write this object to a stream.

Subclasses must implement this function.

Parameters:
out The ostream to which to write.

Implements cgicc::MStreamable.

Definition at line 42 of file HTMLDoctype.cpp.

References eFrames, eStrict, and eTransitional.


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