Defined in file: hzDissemino.h
The hdsVE (visible entity) base class and its derivatives are the means by which the HTML content of pages, articles, and other resources are assembled. For the avoidance of of confusion, 'visible' in this context does not mean a visible object will appear in the browser. It simply means that HTML tags will be generated in the output. Some hdsVE derivatives are directly associated with a single HTML tag, while others result in multiiple HTML tags. Resource HTML content is set by providing the resource with an array of VEs, which are then processed into HTML. Rules apply to the processing of hdsVE into HTML. In particular, if a tag is text bearing, its subtags may also contain text but no further subtags. The tag content can be devoid of subtags in which case it can be evaluated directly. But where subtags are included in the content (such as a link), the content is said to be 'composite'. Such composite content is constructed by means of a pre-text value on subtags. The text content of a given tag is produced by visiting each of its subtags in turn and first adding the pre-text value, then adding the content. Only when there are no more subtags to visit are the actual contents of the tag in hand added to the final string.
Constructors/Detructors
| hdsVE* | hdsVE | (hdsVE&) | |
| hdsVE* | hdsVE | (void) | |
| NULL-TYPE | hdsVE | (void) | |
| void | ~hdsVE | (void) |
Public Methods:
| hzEcode | AddAttr | (hzString& name)hzString& value, | Add an attribute to the visible entity |
| hzEcode | AddChild | (hdsVE* pChild) | Add a child to this visible entity. Returns: E_OK |
| hdsVE* | Children | (void) | Return first child of the current VE |
| void | Complete | (void) | |
| void | Generate | (hzChain& C)hzHttpEvent* pE, uint32_t& nLine, | |
| hzEcode | InitVE | (hdsApp* pApp) | |
| void | SetCSS | (const char* cpCSS) | |
| hzEcode | SetSibling | (hdsVE* pSib) | |
| hdsVE* | Sibling | (void) | |
| xTag | Whatami | (void) |
Overloaded operators:
| hdsVE& | operator= | (hdsVE&) |
Member Variables:
| uint32_t | m_Access | Access control etc | |
| uint32_t | m_BgColor | Background color (if not set use table value) | |
| hzString | m_CSS | Style-sheet class (if set this will be default for the table's <td> tags) | |
| uint32_t | m_Children | Sub nodes of this node | |
| uint32_t | m_FgColor | Foreground color (if not set use table value) | |
| uint16_t | m_Indent | Indentation | |
| uint32_t | m_Line | Line number of opening tag (drawn from the line number of the associated XML node) | |
| uint16_t | m_Resv | ??? | |
| uint32_t | m_Sibling | Next node (in the series m_Chridren belonging to the parent of this) | |
| hzString | m_Tag | The HTML or Dissemino tag | |
| uint32_t | m_VID | Absolute unique VE identifier (possible deprecation) | |
| uint32_t | m_flagVE | Operational flags | |
| uint16_t | m_nAttrs | Number of attributes | |
| uint16_t | m_nChildren | Number of chidren | |
| hdsApp* | m_pApp | Parent Dissemino Application | |
| hzString | m_strContent | Tag content (value) | |
| hzString | m_strPretext | If the parent is complex, this text is to be displayed as part of the parent content |