Go to the documentation of this file.
24 #ifndef _HTMLCLASSES_H_
25 #define _HTMLCLASSES_H_ 1
48 #define TAG(name, tag) \
50 { public: inline static const char* getName() { return tag; } }
60 #define ATOMIC_ELEMENT(name, tag) \
61 TAG(name, tag); typedef HTMLAtomicElement<name##Tag> name
72 #define BOOLEAN_ELEMENT(name, tag) \
73 TAG(name, tag); typedef HTMLBooleanElement<name##Tag> name
87 {
public:
inline static const char* getName() {
return 0; } };
94 virtual void render(std::ostream& out)
const
98 out << (
getState() ?
"<!-- " :
" -->");
101 out <<
"<!-- " <<
getData() <<
" -->";
virtual void swapState() const
Swap the state of this boolean element.
Template class for concrete boolean HTMLElement subclasses.
#define BOOLEAN_ELEMENT(name, tag)
An HTML element maintaining an internal on/off state.
Class which specifies the DTD of the HTML 4 document.
#define ATOMIC_ELEMENT(name, tag)
Create an atomic HTML element.
Platform and operating system specific macro definitions.
std::string getData() const
Get the data contained in this element, if any.
Template class for concrete atomic HTMLElement subclasses.
Template for concrete boolean HTMLElement subclasses.
virtual bool getState() const
Get the state of this boolean element.
The namespace containing the cgicc library.
bool dataSpecified() const
For subclasses only.
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 Tue Mar 24 2020 14:05:44 for cgicc by
doxygen 1.8.17