00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _HTMLDOCTYPE_H_
00025 #define _HTMLDOCTYPE_H_ 1
00026
00027 #ifdef __GNUG__
00028 # pragma interface
00029 #endif
00030
00036 #include <string>
00037
00038 #include "MStreamable.h"
00039
00040 namespace cgicc {
00041
00042
00043
00044
00045
00056 class CGICC_API HTMLDoctype : public MStreamable
00057 {
00058 public:
00059
00061 enum EDocumentType {
00063 eStrict,
00065 eTransitional,
00067 eFrames,
00069 eHTML5
00070 };
00071
00072
00077 HTMLDoctype(EDocumentType type = eStrict);
00078
00083 virtual ~HTMLDoctype();
00084
00085 virtual void
00086 render(std::ostream& out) const;
00087
00088 private:
00089 EDocumentType fType;
00090 };
00091
00092 }
00093
00094 #endif
00095