HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HUSD_FSUsdzHelper.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Side Effects Software Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #ifndef __HUSD_FSUSDZ_READER_HELPER_H__
19 #define __HUSD_FSUSDZ_READER_HELPER_H__
20 
21 #include <FS/FS_Reader.h>
22 #include <FS/FS_Info.h>
23 #include <HUSD/HUSD_Asset.h>
24 
26 {
27 public:
28  static void install();
29 
30  HUSD_FSUsdzReaderHelper() = default;
31  ~HUSD_FSUsdzReaderHelper() override = default;
32 
33  FS_ReaderStream *createStream(const char* source,
34  const UT_Options* options) override;
35 private:
36 };
37 
39 {
40 public:
41  HUSD_FSUsdzInfoHelper() = default;
42  ~HUSD_FSUsdzInfoHelper() override = default;
43 
44  bool canHandle(const char* source) override;
45  bool hasAccess(const char* source, int mode) override;
46  bool getIsDirectory(const char* source) override;
47  int getModTime(const char* source) override;
48  int64 getSize(const char* source) override;
49  bool getContents(const char* source,
50  UT_StringArray& contents,
51  UT_StringArray* dirs) override;
52 };
53 
54 #endif
FS_ReaderStream * createStream(const char *source, const UT_Options *options) override
HUSD_FSUsdzReaderHelper()=default
bool canHandle(const char *source) override
Determine whether this helper can process the filename.
int getModTime(const char *source) override
Get the modification timestamp (returns time_t)
HUSD_FSUsdzInfoHelper()=default
~HUSD_FSUsdzInfoHelper() override=default
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:802
bool getContents(const char *source, UT_StringArray &contents, UT_StringArray *dirs) override
long long int64
Definition: SYS_Types.h:116
GLenum mode
Definition: glcorearb.h:98
int64 getSize(const char *source) override
Get the file size in bytes.
A map of string to various well defined value types.
Definition: UT_Options.h:84
~HUSD_FSUsdzReaderHelper() override=default
bool getIsDirectory(const char *source) override
Return whether the filename is a directory.
bool hasAccess(const char *source, int mode) override