Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
cgicc
XHTMLDoctype.h
Go to the documentation of this file.
1
/* -*-mode:c++; c-file-style: "gnu";-*- */
2
/*
3
* $Id: XHTMLDoctype.h,v 1.1 2008/01/19 15:43:57 sebdiaz Exp $
4
*
5
* Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org>
6
* 2007 David Roberts
7
2007 Sebastien DIAZ <sebastien.diaz@gmail.com>
8
* Part of the GNU cgicc library, http://www.gnu.org/software/cgicc
9
*
10
* This library is free software; you can redistribute it and/or
11
* modify it under the terms of the GNU Lesser General Public
12
* License as published by the Free Software Foundation; either
13
* version 3 of the License, or (at your option) any later version.
14
*
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
* Lesser General Public License for more details.
19
*
20
* You should have received a copy of the GNU Lesser General Public
21
* License along with this library; if not, write to the Free Software
22
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
23
*/
24
#ifndef XXHTMLDoctype_H
25
#define XXHTMLDoctype_H
26
33
#include <string>
34
35
#include <
cgicc/MStreamable.h
>
36
37
namespace
cgicc {
38
44
class
CGICC_API
XHTMLDoctype
:
public
MStreamable
{
45
public
:
46
enum
EDocumentType {
47
eStrict,
48
eTransitional,
49
eFrames
50
};
51
// ============================================================
52
55
62
XHTMLDoctype
(EDocumentType type = eStrict);
68
virtual
~
XHTMLDoctype
();
69
71
72
virtual
void
render(std::ostream& out)
const
;
73
74
private
:
75
EDocumentType fType;
76
};
77
}
// namespace cgicc
78
80
#define xmlnsXHTML() set("xmlns", "http://www.w3.org/1999/xhtml")
81
82
#endif
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 Fri Jun 28 2013 08:36:33 for cgicc by
doxygen
1.8.3.1