Defined in file: hzDissemino.h
Derivative of: hdsVE
The hdsDirlist class as a visible entity is similar to hdsTable, drawing its data from a directory instead of a source repository. Instances of hdsDirlist are configured by means of the <xdirlist> tag. The HTML generated by this tag is a table with columns that are related to members of the hzDirent class. The <xcol> sub-tags within <xdirlist> must specifically name these members. Within the <xdirlist> tag are the following important subtags:- 1) <none> Compulsory, contains - This must contain subtags to be rendered in the event of an EMPTY listing. 2) <header> Optional, contains subtags to be rendered BEFORE the listing. 3) <footer> Optional, contains subtags to be rendered AFTER the listing. 4) <foreach> Compulsory, contains subtags to be rendered for each directory entry. The directories listed in the output will form HTML links to the same page in which the <xdirlist> appears but with an appended resource argument. Files listed in the output will have links of the same form. The <xdirlist> tag has parameters of 'directory' which can be specified using percent entitits, and criteria (the file selection criteria) which must be specified using the usual globing notation.
Constructors/Detructors
| hdsDirlist* | hdsDirlist | (hdsApp* pApp) | |
| NULL-TYPE | hdsDirlist | (hdsApp* pApp) | |
| void | ~hdsDirlist | (void) | |
| NULL-TYPE | ~hdsDirlist | (void) |
Public Methods:
| void | Generate | (hzChain& C)hzHttpEvent* pE, uint32_t& nLine, | Does not in itself produce HTML but the subtags do. The complete set of subtags are called for each member of the list the hdsTable controls. Returns: None |
| xTag | Whatami | (void) |
Member Variables:
| hzList<hdsCol> | m_Cols | Column names | |
| hzString | m_Criteria | Selection criteria hzString m_Url ; // Page URL (needed as a base for links) | |
| hzString | m_Directory | Data source name (repository class name, directory name) | |
| uint16_t | m_Height | Width of table | |
| uint16_t | m_Order | Order to display date/asc, date/dec, name/asc, name/dec | |
| uint16_t | m_Width | Width of table | |
| uint16_t | m_nRows | Number of rows to display | |
| hdsVE* | m_pFoot | HTML to be displayed after listing | |
| hdsVE* | m_pHead | HTML to be displayed before listing | |
| hdsVE* | m_pNone | HTML to be dispalyed in the event of no files/directories found |