Core Functions Architecture
Core sub-package functions provide an object-based framework for generating HTML documents. In simple terms, the program calls various functions to build up a set of objects that specify the structure and the content of the HTML document. Once the set of objects is complete, a single call to Html_Page_Code_Generate() generates the HTML document.
Objects can be divided into three types: pages (HtmlT_Page), frames (HtmlT_Frame), and elements (HtmlT_Element). Both pages and elements have sub-types, which are identified by enumerated constants, as follows:
Pages can be an:
- Element page (
HtmlC_Element_Page) - Frameset page (
HtmlC_Frameset_Page) - Remote page (
HtmlC_Remote_Page)
Elements can be a:
- Table (
HtmlC_Element_Table) - Image (
HtmlC_Element_Image) - Text (
HtmlC_Element_Text) - List (
HtmlC_Element_List) - Raw HTML code (
HtmlC_Element_Raw_Html) - Compound element (
HtmlC_Element_Compound)
Pages that are frameset pages have two frames, divided either horizontally or vertically. Each frame contains a page, which is either an element page or another frameset page. Some elements work similarly in that they can contain other elements. For example, a list element is created from a linked list of further elements, some of which may be lists themselves.
The overall approach to generating a simple page with the HTML package is as follows:
- An
HtmlT_Pageis created - Each element that is to appear on the page is created and added to the page
- The HTML code is generated from the
HtmlT_Pageobject - The
HtmlT_Pageobject is destroyed