28 #ifndef __FS_HomeHelper__
29 #define __FS_HomeHelper__
40 namespace HDK_Sample {
79 const char *index_file_path,
80 const char *section_name)
override;
100 bool ignore_umask =
false)
override;
114 time_t
getModTime(
const char *source)
override;
bool canHandle(const char *source) override
Determine whether this helper can process the filename.
bool makeDirectory(const char *source, mode_t mode=0777, bool ignore_umask=false) override
Make a directory and all the parent directories needed.
UT_String getExtension(const char *source) override
~FS_HomeInfoHelper() override
bool splitIndexFileSectionPath(const char *source_section_path, UT_String &index_file_path, UT_String §ion_name) override
bool getIsDirectory(const char *source) override
Return whether the filename is a directory.
FS_ReaderStream * createStream(const char *source, const UT_Options *options) override
If the filename starts with "home:", open an FS_ReaderStream.
bool combineIndexFileSectionPath(UT_String &source_section_path, const char *index_file_path, const char *section_name) override
Class to open a file as a write stream. The class tests for a "home:" prefix and replaces it with $HO...
time_t getModTime(const char *source) override
Get the modification timestamp (returns time_t)
bool canMakeDirectory(const char *source) override
Whether this helper supports the given source path for makeDirectory().
~FS_HomeWriteHelper() override
~FS_HomeReadHelper() override
GLsizei GLsizei GLchar * source
Class to stat a file. The class tests for a "home:" prefix and replaces it with $HOME.
int64 getSize(const char *source) override
Get the file size in bytes.
bool hasAccess(const char *source, int mode) override
A map of string to various well defined value types.
Class to open a file as a read stream. The class tests for a "home:" prefix and replaces it with $HOM...
FS_WriterStream * createStream(const char *source) override
If the filename begins with "home:" return a new write stream.
bool getContents(const char *source, UT_StringArray &contents, UT_StringArray *dirs) override