HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_DigitalAssetHelper.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  *
7  * NAME: Utility Library (C++)
8  *
9  * COMMENTS: DigitalAssetHelper class
10  *
11  */
12 
13 #ifndef __UT_DigitalAssetHelper_h__
14 #define __UT_DigitalAssetHelper_h__
15 
16 #include "UT_API.h"
17 #include "UT_Array.h"
18 #include <SYS/SYS_Types.h>
19 
20 #define UT_AUTOCREATE_HDA_OPT "--autocreate-hda"
21 
30 };
31 
32 class UT_String;
33 class UT_StringArray;
34 
35 /*
36  * UT_DigitalAssetHelper is used to identify which digital asset
37  * filetypes are supported
38  */
39 
41 {
42 public:
43 
44  static const UT_String getDefaultFileExtension();
45 
46  static bool isSupportedFileExtension(UT_String file_extension);
47  static bool isSupportedNoDotFileExtension(UT_String no_dot_file_ext);
48  static bool isSupportedFile(UT_String file_name);
49 
50  static bool isCommercialExtension(UT_String ext);
51  static bool isCommercialExtension(UT_DigitalAssetExtensions ext);
52 
53  static const UT_String getFileExtension(UT_DigitalAssetExtensions ext);
54  static void getFileExtensions(UT_StringArray &file_extensions);
55  static void getFileExtensions(UT_Array<const char *> &list);
56 
57  static const UT_String getNoDotFileExtension(UT_DigitalAssetExtensions ext);
58  static void getNoDotFileExtensions(UT_StringArray &file_extensions);
59  static void getNoDotFileExtensions(UT_Array<const char *> &list);
60 
61  static const UT_String getFilePattern(UT_String ext);
62  static const UT_String getFilePattern(UT_DigitalAssetExtensions ext);
63  static void getFilePatternsArray(UT_StringArray &file_patterns);
64  static void getFilePatternsString(UT_String &file_patterns);
65 
66 protected:
67 
68 
69 private:
70 
71 };
72 
73 #endif
#define UT_API
Definition: UT_API.h:14
UT_DigitalAssetExtensions