An HTML comment. More...
#include <cgicc/HTMLClasses.h>
Additional Inherited Members | |
![]() | |
enum | EElementType { eAtomic , eBoolean } |
Possible types of HTMLElements. More... | |
![]() | |
HTMLBooleanElement () | |
Create a new empty boolean element. | |
HTMLBooleanElement (const std::string &text) | |
Create a new element, specifying the enclosed text. | |
HTMLBooleanElement (const HTMLAttributeList &attributes) | |
Create a new element, specifying the HTMLAttribute objects. | |
HTMLBooleanElement (const HTMLElement &embedded) | |
Create a new element, specifying an embedded HTMLElement. | |
HTMLBooleanElement (const std::string &text, const HTMLAttributeList &attributes) | |
Create a new element, specifying the enclosed text and HTMLAttribute objects. | |
HTMLBooleanElement (const HTMLAttributeList &attributes, const HTMLElement &embed) | |
Create a new element, specifying the HTMLAttributes and embedded HTMLElement. | |
virtual | ~HTMLBooleanElement () |
Destructor. | |
virtual HTMLElement * | clone () const |
Clone this element. | |
virtual const char * | getName () const |
Get the name of this element. For example, "strong". | |
virtual void | swapState () const |
Swap the state of this boolean element. | |
virtual bool | getState () const |
Get the state of this boolean element. | |
![]() | |
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. | |
HTMLElement & | operator= (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 HTMLElementList * | getEmbedded () const |
Get the HTMLElementList embedded in this element, if any. | |
void | setEmbedded (const HTMLElementList &embedded) |
Set the HTMLElementList associated with this element. | |
HTMLElement & | add (const HTMLElement &element) |
Add an embedded HTMLElement in this one. | |
HTMLElement & | add (HTMLElement *element) |
Add an embedded HTMLElement in this one. | |
const HTMLAttributeList * | getAttributes () const |
Get the attributes associated with this element. | |
void | setAttributes (const HTMLAttributeList &attributes) |
Set the attributes associated with this element. | |
HTMLElement & | set (const std::string &name) |
Set an HTMLAttribute on this HTMLElement. | |
HTMLElement & | set (const std::string &name, const std::string &value) |
Set an HTMLAttribute on this HTMLElement. | |
![]() | |
MStreamable () | |
Empty constructor. | |
virtual | ~MStreamable () |
Empty destructor. | |
virtual void | render (std::ostream &out) const =0 |
Write this object to a stream. | |
![]() | |
static void | reset () |
Reset the state of this boolean element to closed. | |
![]() | |
HTMLElement (const HTMLAttributeList *attributes, const HTMLElement *embedded, const std::string *data, EElementType type) | |
Subclass constructor. | |
bool | dataSpecified () const |
For subclasses only. | |
An HTML comment.
Definition at line 92 of file HTMLClasses.h.