Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

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

Classes

class  nullTag
class  comment
 An HTML comment. More...

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 _HTMLCLASSES_H_   1
 

Definition at line 25 of file HTMLClasses.h.

#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 60 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 72 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 48 of file HTMLClasses.h.


© sourcejam.com 2005-2008