class Entity

state entity for all HTML entries. More...

Definition#include <../common/html.h>
InheritsBaseObject
Inherited byHead, Body, Frameset, HTMLDocument
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members

Protected Members


Detailed Description

Entity

This holds the basic state for all HTML entries. It is capable of being serialised and can hold arbitrary information.

Most of the methods are protected, suggesting that they should only be used by subclasses and by "promotion" to public

Entity (const string& name)

Special case of name=="" - no tags are emitted, attrs entities and settings ignored only content is streamed to html.

bool Write (Engine& archive)
[const virtual]

These are the important functions which need to be overridden properly for persistence. Failure to do so results in Persistence::Engine barfing

Reimplemented from BaseObject

void OutputHTML (Writer& wr)
[const virtual]

This function need to be overridden for streaming as HTML

HTML form is <name attributes settings>[content][entities]{ifterminated </tag>}

Strings & GetAttributes ()
[protected]

This returns the Attribute list They get dumped in the tag as entities with no '='

StringMap & GetSettings ()
[protected]

This returns the Settings Map They get dumped in the tag as entities with a '=value'

string & GetContent ()
[protected]

This returns the content reference

void SetWhetherTerminated (bool yesno)
[protected]

These get/set whether or not the tag has an </tag> or not

Entities & GetEntities ()
[protected]

These are the Children of the Entity. They automatically get Serialised

void SetNewlineAfterTag (bool yesno)
[protected]

This get/set 's the newline after tag setting. This is not propogated to subentities