24#ifndef _HTMLELEMENT_H_
25#define _HTMLELEMENT_H_ 1
45 class HTMLElementList;
123 {
return ! operator==(
element); }
224 {
return fEmbedded; }
272 {
return fAttributes; }
304 const std::string&
value);
357 const std::string *
data,
368 {
return fDataSpecified; }
373 HTMLAttributeList *fAttributes;
374 HTMLElementList *fEmbedded;
Platform and operating system specific macro definitions.
Class containing a list of HTMLAttribute objects.
Abstract base class for all streamable objects.
Template for concrete atomic HTMLElement subclasses.
An expandable list of HTMLAttribute objects.
An expandable list of HTMLElement objects.
Class representing an HTML element.
HTMLElement & set(const std::string &name)
Set an HTMLAttribute on this HTMLElement.
virtual void swapState() const
Swap the state of the boolean element.
HTMLElement & add(const HTMLElement &element)
Add an embedded HTMLElement in this one.
EElementType
Possible types of HTMLElements.
HTMLElement(const HTMLElement &element)
Copy constructor.
EElementType getType() const
Get the type of this element.
void setData(const std::string &data)
Set the data contained in this element.
std::string getData() const
Get the data contained in this element, if any.
virtual ~HTMLElement()
Destructor.
virtual const char * getName() const =0
Get the name of this element.
HTMLElement & set(const std::string &name, const std::string &value)
Set an HTMLAttribute on this HTMLElement.
void setAttributes(const HTMLAttributeList &attributes)
Set the attributes associated with this element.
virtual HTMLElement * clone() const =0
Clone this HTMLElement.
virtual bool getState() const
Get the state of this boolean element.
const HTMLAttributeList * getAttributes() const
Get the attributes associated with this element.
HTMLElement & add(HTMLElement *element)
Add an embedded HTMLElement in this one.
const HTMLElementList * getEmbedded() const
Get the HTMLElementList embedded in this element, if any.
bool dataSpecified() const
For subclasses only.
HTMLElement(const HTMLAttributeList *attributes, const HTMLElement *embedded, const std::string *data, EElementType type)
Subclass constructor.
virtual void render(std::ostream &out) const
Render this HTMLElement to an ostream.
void setEmbedded(const HTMLElementList &embedded)
Set the HTMLElementList associated with this element.
Mix-in streamable interface.
The namespace containing the cgicc library.