Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class 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

Defines

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

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

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


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 - 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 Sat Jun 19 00:36:23 2004 for cgicc by doxygen 1.3.6