HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
22
enum
UT_DigitalAssetExtensions
{
23
UT_OTL_FILE_EXTENSION
= 0,
24
UT_OTLNC_FILE_EXTENSION
,
25
UT_OTLLC_FILE_EXTENSION
,
26
UT_HDA_FILE_EXTENSION
,
27
UT_HDANC_FILE_EXTENSION
,
28
UT_HDALC_FILE_EXTENSION
,
29
UT_NUMBER_OF_HDA_EXTENSIONS
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
40
class
UT_API
UT_DigitalAssetHelper
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
UT_NUMBER_OF_HDA_EXTENSIONS
Definition:
UT_DigitalAssetHelper.h:29
UT_API.h
UT_API
#define UT_API
Definition:
UT_API.h:14
UT_Array.h
UT_Array< const char * >
UT_HDALC_FILE_EXTENSION
Definition:
UT_DigitalAssetHelper.h:28
UT_HDA_FILE_EXTENSION
Definition:
UT_DigitalAssetHelper.h:26
UT_StringArray
Definition:
UT_StringArray.h:24
SYS_Types.h
UT_DigitalAssetHelper
Definition:
UT_DigitalAssetHelper.h:40
UT_OTLNC_FILE_EXTENSION
Definition:
UT_DigitalAssetHelper.h:24
UT_OTLLC_FILE_EXTENSION
Definition:
UT_DigitalAssetHelper.h:25
UT_HDANC_FILE_EXTENSION
Definition:
UT_DigitalAssetHelper.h:27
UT_OTL_FILE_EXTENSION
Definition:
UT_DigitalAssetHelper.h:23
UT_String
Definition:
UT_String.h:73
UT_DigitalAssetExtensions
UT_DigitalAssetExtensions
Definition:
UT_DigitalAssetHelper.h:22
UT
UT_DigitalAssetHelper.h
Generated on Sun Nov 17 2024 03:03:41 for HDK by
1.8.6