HDK_Sample::FS_HomeInfoHelper Class Reference

Class to stat a file. The class tests for a "home:" prefix and replaces it with $HOME. More...

#include <FS_HomeHelper.h>

Inheritance diagram for HDK_Sample::FS_HomeInfoHelper:

FS_InfoHelper

List of all members.

Public Member Functions

 FS_HomeInfoHelper ()
virtual ~FS_HomeInfoHelper ()
virtual bool canHandle (const char *source)
 Determine whether this helper can process the filename.
virtual bool hasAccess (const char *source, int mode)
virtual bool getIsDirectory (const char *source)
 Return whether the filename is a directory.
virtual int getModTime (const char *source)
 Get the modification timestamp (returns time_t).
virtual int64 getSize (const char *source)
 Get the file size in bytes.
virtual bool getContents (const char *source, UT_StringArray &contents, UT_StringArray *dirs)


Detailed Description

Class to stat a file. The class tests for a "home:" prefix and replaces it with $HOME.
Examples:

FS/FS_HomeHelper.C.

Definition at line 78 of file FS_HomeHelper.h.


Constructor & Destructor Documentation

FS_HomeInfoHelper::FS_HomeInfoHelper (  ) 

Examples:
FS/FS_HomeHelper.C, and FS/FS_HomeHelper.h.

Definition at line 108 of file FS_HomeHelper.C.

FS_HomeInfoHelper::~FS_HomeInfoHelper (  )  [virtual]

Examples:
FS/FS_HomeHelper.C, and FS/FS_HomeHelper.h.

Definition at line 113 of file FS_HomeHelper.C.


Member Function Documentation

bool FS_HomeInfoHelper::canHandle ( const char *  source  )  [virtual]

Determine whether this helper can process the filename.

Implements FS_InfoHelper.

Examples:
FS/FS_HomeHelper.C, and FS/FS_HomeHelper.h.

Definition at line 118 of file FS_HomeHelper.C.

bool FS_HomeInfoHelper::getContents ( const char *  source,
UT_StringArray contents,
UT_StringArray dirs 
) [virtual]

Read the contents of a directory

Parameters:
source - The directory to read
contents - The list of files in the directory
dirs - The list of directories in the directory If dirs is NULL, then all directories should be included in the contents.

Implements FS_InfoHelper.

Examples:
FS/FS_HomeHelper.C, and FS/FS_HomeHelper.h.

Definition at line 184 of file FS_HomeHelper.C.

bool FS_HomeInfoHelper::getIsDirectory ( const char *  source  )  [virtual]

Return whether the filename is a directory.

Implements FS_InfoHelper.

Examples:
FS/FS_HomeHelper.C, and FS/FS_HomeHelper.h.

Definition at line 139 of file FS_HomeHelper.C.

int FS_HomeInfoHelper::getModTime ( const char *  source  )  [virtual]

Get the modification timestamp (returns time_t).

Implements FS_InfoHelper.

Examples:
FS/FS_HomeHelper.C, and FS/FS_HomeHelper.h.

Definition at line 154 of file FS_HomeHelper.C.

int64 FS_HomeInfoHelper::getSize ( const char *  source  )  [virtual]

Get the file size in bytes.

Implements FS_InfoHelper.

Examples:
FS/FS_HomeHelper.C, and FS/FS_HomeHelper.h.

Definition at line 169 of file FS_HomeHelper.C.

bool FS_HomeInfoHelper::hasAccess ( const char *  source,
int  mode 
) [virtual]

Parameters:
source Filename for access check
mode The read/write/execute status
See also:
FS_FileAccessMode

Implements FS_InfoHelper.

Examples:
FS/FS_HomeHelper.C, and FS/FS_HomeHelper.h.

Definition at line 124 of file FS_HomeHelper.C.


The documentation for this class was generated from the following files:

Generated on Mon Jan 28 00:30:25 2013 for HDK by  doxygen 1.5.9