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 #include <time.h>
20 
22 {
23 public:
25  ~OP_DataBlockReadHelper() override;
26 
27  FS_ReaderStream *createStream(const char *source,
28  const UT_Options *options=NULL) override;
29 };
30 
32 {
33 public:
35  ~OP_DataBlockWriteHelper() override;
36 
37  FS_WriterStream *createStream(const char *source) override;
38 };
39 
41 {
42 public:
44  ~OP_DataBlockInfoHelper() override;
45 
46  bool canHandle(const char *source) override;
47  bool hasAccess(const char *source, int mode) override;
48  bool getIsDirectory(const char *source) override;
49  time_t getModTime(const char *source) override;
50  int64 getSize(const char *source) override;
51  bool getContents(const char *source,
52  UT_StringArray &contents,
53  UT_StringArray *dirs) override;
54 };
55 
56 #endif
57 
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 FS_WriterStream * createStream(const char *source)=0
#define OP_API
Definition: OP_API.h:10
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
virtual int64 getSize(const char *source)=0
Get the file size in bytes.
virtual bool hasAccess(const char *source, int mode)=0