HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FS_IconHelper.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_IconHelper.h (FS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __FS_ICONHELPER_H_INCLUDED__
12 #define __FS_ICONHELPER_H_INCLUDED__
13 
14 #include "FS_API.h"
15 #include "FS_Reader.h"
16 #include "FS_Info.h"
17 #include <time.h>
18 
20 {
21 public:
23 
25  const char *source,
26  const UT_Options *options = nullptr) override;
27 };
28 
30 {
31 public:
33 
34  bool canHandle(const char* source) override;
35  bool hasAccess(const char* source, int mode) override;
36  bool getIsDirectory(const char* source) override;
37  time_t getModTime(const char* source) override;
38  int64 getSize(const char* source) override;
39  bool getContents(
40  const char* source,
41  UT_StringArray& contents,
42  UT_StringArray* dirs) override;
43  char getNextSepChar(const char *source) override;
44  char getPrevSepChar(const char *source) override;
45 };
46 
47 #endif // __FS_ICONHELPER_H_INCLUDED__
virtual char getPrevSepChar(const char *)
Previous separator character.
Definition: FS_Info.h:256
virtual char getNextSepChar(const char *)
Next separator character.
Definition: FS_Info.h:253
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