Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

HTMLClasses.h File Reference

The header file containing HTML output classes. More...

#include "cgicc/CgiDefs.h"
#include "cgicc/HTMLAtomicElement.h"
#include "cgicc/HTMLBooleanElement.h"
#include "cgicc/HTMLDoctype.h"

Go to the source code of this file.

Namespaces

namespace  cgicc

Compounds

class  cgicc::comment
 An HTML comment. More...


Defines

#define _HTMLCLASSES_H_   1
#define TAG(name, tag)
 Create an HTML element rendering class. More...

#define ATOMIC_ELEMENT(name, tag)   TAG(name, tag); typedef HTMLAtomicElement<name##Tag> name
 Create an atomic HTML element. More...

#define BOOLEAN_ELEMENT(name, tag)   TAG(name, tag); typedef HTMLBooleanElement<name##Tag> name
 An HTML element maintaining an internal on/off state. More...


Detailed Description

The header file containing HTML output classes.

One class is defined for each element in the HTML 4.0 standard.

Definition in file HTMLClasses.h.


Define Documentation

#define ATOMIC_ELEMENT name,
tag       TAG(name, tag); typedef HTMLAtomicElement<name##Tag> name
 

Create an atomic HTML element.

Atomic HTML elements maintain no internal on/off state. For example, br and meta are atomic elements.

Parameters:
name  The name of the class to define
tag  The text to output when this tag is rendered

Definition at line 58 of file HTMLClasses.h.

#define BOOLEAN_ELEMENT name,
tag       TAG(name, tag); typedef HTMLBooleanElement<name##Tag> name
 

An HTML element maintaining an internal on/off state.

Boolean HTML elements maintain an internal state, and the output rendered depends on the current state. For example, h1 and title are boolean elements.

Parameters:
name  The name of the class to define
tag  The text to output when this tag is rendered

Definition at line 70 of file HTMLClasses.h.

#define TAG name,
tag   
 

Value:

class name##Tag   \
{ public: inline static const char* getName() { return tag; } }
Create an HTML element rendering class.

Parameters:
name  The name of the class to define
tag  The text to output when this tag is rendered

Definition at line 46 of file HTMLClasses.h.


GNU cgicc - A C++ class library for writing CGI applications
Copyright © 1996 - 2002 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 Sun Mar 17 16:40:57 2002 for cgicc by doxygen 1.2.13.1