cgicc::HTMLElementList Class Reference

An expandable list of HTMLElement objects. More...

#include <cgicc/HTMLElementList.h>

List of all members.

Public Member Functions

Constructors and Destructor
 HTMLElementList ()
 Create an empty HTMLElementList.
 HTMLElementList (const HTMLElement &head)
 Create a new HTMLElementList, specifying the first element.
 HTMLElementList (const HTMLElementList &list)
 Copy constructor.
 ~HTMLElementList ()
 Destructor.
Overloaded Operators
HTMLElementListoperator= (const HTMLElementList &list)
 Assignment operator.
List Management

Manage the elements in the list

HTMLElementListadd (const HTMLElement &element)
 Add an HTMLElement to the list.
HTMLElementListadd (HTMLElement *element)
 Add an HTMLElement to the list.
void render (std::ostream &out) const
 Render this HTMLElementList.

Detailed Description

An expandable list of HTMLElement objects.

An HTMLElementList represents any number of HTMLElement objects. To add HTMLElement objects to the list, use the add() methods:

 cgicc::HTMLElementList list;
 list.add(br());
See also:
HTMLAttribute
HTMLElement

Definition at line 67 of file HTMLElementList.h.


Constructor & Destructor Documentation

Create an empty HTMLElementList.

HTMLElementLists are most often created with the add() functions

Create a new HTMLElementList, specifying the first element.

The first element in the list is set to head

Parameters:
headThe first element of the list

Copy constructor.

Sets the elements in this list to those of list

Parameters:
listThe HTMLElementList to copy.

Destructor.

Deletes this HTMLElementList object


Member Function Documentation

Add an HTMLElement to the list.

Parameters:
elementThe HTMLElement to add.
Returns:
A reference to this

Add an HTMLElement to the list.

Parameters:
elementThe HTMLElement to add.
Returns:
A reference to the this
HTMLElementList& cgicc::HTMLElementList::operator= ( const HTMLElementList list)

Assignment operator.

Sets the elements in this list to those of list

Parameters:
listThe HTMLElementList to copy
Returns:
A reference to this
void cgicc::HTMLElementList::render ( std::ostream &  out) const

Render this HTMLElementList.

Utility Methods

Parameters:
outThe ostream to which to write

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 Wed Mar 28 2012 12:13:33 for cgicc by doxygen 1.8.0