HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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_ValArray.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 public:
44 
45  static const UT_String getDefaultFileExtension();
46 
47  static bool isSupportedFileExtension(UT_String file_extension);
48  static bool isSupportedNoDotFileExtension(UT_String no_dot_file_ext);
49  static bool isSupportedFile(UT_String file_name);
50 
51  static bool isCommercialExtension(UT_String ext);
52  static bool isCommercialExtension(UT_DigitalAssetExtensions ext);
53 
54  static const UT_String getFileExtension(UT_DigitalAssetExtensions ext);
55  static void getFileExtensions(UT_StringArray &file_extensions);
56  static void getFileExtensions(UT_ValArray<const char *> &list);
57 
58  static const UT_String getNoDotFileExtension(UT_DigitalAssetExtensions ext);
59  static void getNoDotFileExtensions(UT_StringArray &file_extensions);
60  static void getNoDotFileExtensions(UT_ValArray<const char *> &list);
61 
62  static const UT_String getFilePattern(UT_String ext);
63  static const UT_String getFilePattern(UT_DigitalAssetExtensions ext);
64  static void getFilePatternsArray(UT_StringArray &file_patterns);
65  static void getFilePatternsString(UT_String &file_patterns);
66 
67 protected:
68 
69 
70 private:
71 
72 };
73 
74 #endif
#define UT_API
Definition: UT_API.h:12
UT_DigitalAssetExtensions