Specifies the DTD of the HTML 4 document. More...
#include <cgicc/HTMLDoctype.h>
Public Types | |
| enum | EDocumentType { eStrict, eTransitional, eFrames, eHTML5 } |
Public Member Functions | |
| HTMLDoctype (EDocumentType type=eStrict) | |
| Constructor. More... | |
| virtual | ~HTMLDoctype () |
| Destructor. | |
| virtual void | render (std::ostream &out) const |
| Write this object to a stream. More... | |
Public Member Functions inherited from cgicc::MStreamable | |
| MStreamable () | |
| Empty constructor. | |
| virtual | ~MStreamable () |
| Empty destructor. | |
Specifies the DTD of the HTML 4 document.
To use this class, simply write an object of this type to an ostream:
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.
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 |
| eHTML5 | HTML5 (added 11.30.14 t.o.) |
Definition at line 61 of file HTMLDoctype.h.
| cgicc::HTMLDoctype::HTMLDoctype | ( | EDocumentType | type = eStrict | ) |
Constructor.
| type | The version of the HTML 4.0 DTD used by this document. |
|
virtual |
Write this object to a stream.
Subclasses must implement this function.
| out | The ostream to which to write. |
Implements cgicc::MStreamable.