Public Member Functions | List of all members
cgicc::HTMLAtomicElement< Tag > Class Template Reference

Template for concrete atomic HTMLElement subclasses. More...

#include <cgicc/HTMLAtomicElement.h>

Inheritance diagram for cgicc::HTMLAtomicElement< Tag >:
cgicc::HTMLElement cgicc::MStreamable

Public Member Functions

virtual HTMLElementclone () const
 Clone this element.
 
virtual const char * getName () const
 Get the name of this element.
 
Constructors and Destructor
 HTMLAtomicElement ()
 Create a new empty atomic element.
 
 HTMLAtomicElement (const HTMLAttributeList &attributes)
 Create a new element, specifying the HTMLAttributes.
 
virtual ~HTMLAtomicElement ()
 Destructor.
 
- Public Member Functions inherited from cgicc::HTMLElement
virtual void render (std::ostream &out) const
 Render this HTMLElement to an ostream.
 
 HTMLElement (const HTMLElement &element)
 Copy constructor.
 
virtual ~HTMLElement ()
 Destructor.
 
bool operator== (const HTMLElement &element) const
 Compare two HTMLElements for equality.
 
bool operator!= (const HTMLElement &element) const
 Compare two HTMLElements for inequality.
 
HTMLElementoperator= (const HTMLElement &element)
 Assignment operator.
 
std::string getData () const
 Get the data contained in this element, if any.
 
EElementType getType () const
 Get the type of this element.
 
void setData (const std::string &data)
 Set the data contained in this element.
 
const HTMLElementListgetEmbedded () const
 Get the HTMLElementList embedded in this element, if any.
 
void setEmbedded (const HTMLElementList &embedded)
 Set the HTMLElementList associated with this element.
 
HTMLElementadd (const HTMLElement &element)
 Add an embedded HTMLElement in this one.
 
HTMLElementadd (HTMLElement *element)
 Add an embedded HTMLElement in this one.
 
const HTMLAttributeListgetAttributes () const
 Get the attributes associated with this element.
 
void setAttributes (const HTMLAttributeList &attributes)
 Set the attributes associated with this element.
 
HTMLElementset (const std::string &name)
 Set an HTMLAttribute on this HTMLElement.
 
HTMLElementset (const std::string &name, const std::string &value)
 Set an HTMLAttribute on this HTMLElement.
 
virtual void swapState () const
 Swap the state of the boolean element.
 
virtual bool getState () const
 Get the state of this boolean element.
 
- Public Member Functions inherited from cgicc::MStreamable
 MStreamable ()
 Empty constructor.
 
virtual ~MStreamable ()
 Empty destructor.
 

Additional Inherited Members

- Public Types inherited from cgicc::HTMLElement
enum  EElementType { eAtomic, eBoolean }
 Possible types of HTMLElements. More...
 
- Protected Member Functions inherited from cgicc::HTMLElement
 HTMLElement (const HTMLAttributeList *attributes, const HTMLElement *embedded, const std::string *data, EElementType type)
 Subclass constructor.
 
bool dataSpecified () const
 For subclasses only.
 

Detailed Description

template<class Tag>
class cgicc::HTMLAtomicElement< Tag >

Template for concrete atomic HTMLElement subclasses.

An atomic HTML element is an element in which the opening and closing tags are combined. For example, in the HTML code

  <meta link="made" href="mailto:sbooth@gnu.org" />

The meta tag is an atomic HTML element because the opening and closing tags appear together.

See Also
HTMLElement
HTMLBooleanElement

Definition at line 56 of file HTMLAtomicElement.h.

Constructor & Destructor Documentation

template<class Tag>
cgicc::HTMLAtomicElement< Tag >::HTMLAtomicElement ( const HTMLAttributeList attributes)
inline

Create a new element, specifying the HTMLAttributes.

Parameters
attributesThe HTMLAttributes contained within the element.

Definition at line 78 of file HTMLAtomicElement.h.

Member Function Documentation

template<class Tag>
virtual HTMLElement* cgicc::HTMLAtomicElement< Tag >::clone ( ) const
inlinevirtual

Clone this element.

Returns
A newly-allocated copy of this element

Implements cgicc::HTMLElement.

Definition at line 97 of file HTMLAtomicElement.h.

template<class Tag>
virtual const char* cgicc::HTMLAtomicElement< Tag >::getName ( ) const
inlinevirtual

Get the name of this element.

For example, meta.

Returns
The name of this element

Implements cgicc::HTMLElement.

Definition at line 108 of file HTMLAtomicElement.h.


The documentation for this class was generated from the following file:

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 Thu Apr 11 2013 19:07:09 for cgicc by doxygen 1.8.2