WDS_HierarchyFile

WDS_HierarchyFile

wds

1998 12-05


CLASS

WDS_HierarchyFile - file hierarchy node widget


SYNOPSIS

Class WDS_HierarchyFile is a node in dynamic file listing system. It inherits the listing functionality from WDS_HierarchyNode and adds some file handling capabilities.


PUBLIC MEMBER FUNCTIONS

Inheritance from class WDS_HierarchyNode



void SetFullPathName(char *buffer)

void GetFullPathName(char *buffer)
Set/Get the full path name of directory for which the node represents.



void SetFileHandler(long (*fp)(char *,char *,char **))

static long DefaultFileHandler(char *serverhost,char *request,char **response)
SetFileHandler() sets the file handler, by default DefaultFileHandler(). The function is expect to take arguments for a machine serverhost to handle the string request and then form and return with a response. The space for the response must be allocated by the handler and should be free'd by the calling function after use. The default DefaultFileHandler() ignores the serverhost and handles all requests relative to the local machine.


FILES

wds/hfile.h File Hierarchy header file


SEE ALSO

WDS_intro(3), WDS_Widget(3), WDS_HierarchyNode(3)


NOTES

A better handler could make a request through some mechanism to a remote machine about its remote file system. That is the intention of the interface, but any such mechanism can not be assumed in this generic library.