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-TYPEhdsDirlist(hdsApp* pApp)
void~hdsDirlist(void)
NULL-TYPE~hdsDirlist(void)

Public Methods:

voidGenerate(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
xTagWhatami(void)

Member Variables:

hzList<hdsCol>m_ColsColumn names
hzStringm_CriteriaSelection criteria hzString m_Url ; // Page URL (needed as a base for links)
hzStringm_DirectoryData source name (repository class name, directory name)
uint16_tm_HeightWidth of table
uint16_tm_OrderOrder to display date/asc, date/dec, name/asc, name/dec
uint16_tm_WidthWidth of table
uint16_tm_nRowsNumber of rows to display
hdsVE*m_pFootHTML to be displayed after listing
hdsVE*m_pHeadHTML to be displayed before listing
hdsVE*m_pNoneHTML to be dispalyed in the event of no files/directories found