|
|
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) |
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) |
This function need to be overridden for streaming as HTML
HTML form is <name attributes settings>[content][entities]{ifterminated </tag>}
Strings & GetAttributes () |
This returns the Attribute list They get dumped in the tag as entities with no '='
StringMap & GetSettings () |
This returns the Settings Map They get dumped in the tag as entities with a '=value'
string & GetContent () |
This returns the content reference
void SetWhetherTerminated (bool yesno) |
These get/set whether or not the tag has an </tag> or not
Entities & GetEntities () |
These are the Children of the Entity. They automatically get Serialised
void SetNewlineAfterTag (bool yesno) |
This get/set 's the newline after tag setting. This is not propogated to subentities