HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP_DataBlockHelper.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: OP_DataBlockHelper.h ( OTL Library, C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __OP_DataBlockHelper__
13 #define __OP_DataBlockHelper__
14 
15 #include "OP_API.h"
16 #include <FS/FS_Info.h>
17 #include <FS/FS_Reader.h>
18 #include <FS/FS_Writer.h>
19 
21 {
22 public:
24  ~OP_DataBlockReadHelper() override;
25 
26  FS_ReaderStream *createStream(const char *source,
27  const UT_Options *options=NULL) override;
28 };
29 
31 {
32 public:
34  ~OP_DataBlockWriteHelper() override;
35 
36  FS_WriterStream *createStream(const char *source) override;
37 };
38 
40 {
41 public:
43  ~OP_DataBlockInfoHelper() override;
44 
45  bool canHandle(const char *source) override;
46  bool hasAccess(const char *source, int mode) override;
47  bool getIsDirectory(const char *source) override;
48  int getModTime(const char *source) override;
49  int64 getSize(const char *source) override;
50  bool getContents(const char *source,
51  UT_StringArray &contents,
52  UT_StringArray *dirs) override;
53 };
54 
55 #endif
56 
virtual int getModTime(const char *source)=0
Get the modification timestamp (returns time_t)
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:802
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:98
A map of string to various well defined value types.
Definition: UT_Options.h:84
virtual FS_WriterStream * createStream(const char *source)=0
#define OP_API
Definition: OP_API.h:10
virtual FS_ReaderStream * createStream(const char *source, const UT_Options *options=nullptr)=0
virtual int64 getSize(const char *source)=0
Get the file size in bytes.
virtual bool hasAccess(const char *source, int mode)=0