HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FS_SHFSHelper.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: FS_SHFSHelper.h (FS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __FS_SHFS_HELPER__
12 #define __FS_SHFS_HELPER__
13 
14 #include "FS_API.h"
15 #include "FS_Reader.h"
16 #include "FS_Info.h"
17 
19 {
20 public:
22 
24  const char *source,
25  const UT_Options *options = nullptr) override;
26 };
27 
29 {
30 public:
32 
33  bool canHandle(const char* source) override;
34  bool hasAccess(const char* source, int mode) override;
35  bool getIsDirectory(const char* source) override;
36  time_t getModTime(const char* source) override;
37  int64 getSize(const char* source) override;
38  bool getContents(
39  const char* source,
40  UT_StringArray& contents,
41  UT_StringArray* dirs) override;
42 };
43 
44 #endif
virtual bool getContents(const char *source, UT_StringArray &contents, UT_StringArray *dirs)=0
virtual bool canHandle(const char *source)=0
Determine whether this helper can process the filename.
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:803
virtual bool getIsDirectory(const char *source)=0
Return whether the filename is a directory.
long long int64
Definition: SYS_Types.h:116
GLenum mode
Definition: glcorearb.h:99
A map of string to various well defined value types.
Definition: UT_Options.h:84
virtual time_t getModTime(const char *source)=0
Get the modification timestamp (returns time_t)
virtual FS_ReaderStream * createStream(const char *source, const UT_Options *options=nullptr)=0
#define FS_API
Definition: FS_API.h:10
virtual int64 getSize(const char *source)=0
Get the file size in bytes.
virtual bool hasAccess(const char *source, int mode)=0