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
FBX_ErrorManager.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: FBX_ErrorManager.h (FBX Library, C++)
7
*
8
* COMMENTS:
9
*
10
*/
11
12
#ifndef __FBX_ErrorManager_h__
13
#define __FBX_ErrorManager_h__
14
15
#include "
FBX_API.h
"
16
17
#include <
UT/UT_Array.h
>
18
#include <
UT/UT_StringHolder.h
>
19
20
class
UT_WorkBuffer
;
21
22
enum
FBX_ErrorType
23
{
24
FBX_ErrorGeneric
= 0,
25
FBX_ErrorIncorrectPassword
,
26
FBX_ErrorLights
27
};
28
29
class
FBX_API
FBX_Error
30
{
31
public
:
32
FBX_Error
(
const
UT_StringHolder
&pMessage,
bool
bIsCritical,
FBX_ErrorType
eType
);
33
virtual
~
FBX_Error
();
34
35
bool
getIsCritical()
const
;
36
const
UT_StringHolder
&getMessage()
const
;
37
FBX_ErrorType
getType()
const
;
38
39
private
:
40
UT_StringHolder
myMessage;
41
bool
myIsCritical;
42
FBX_ErrorType
myType;
43
};
44
45
class
FBX_API
FBX_ErrorManager
46
{
47
public
:
48
FBX_ErrorManager
();
49
virtual
~
FBX_ErrorManager
();
50
51
void
addError(
const
UT_StringHolder
&pcsError,
bool
bIsCritical =
true
,
FBX_ErrorType
eType
=
FBX_ErrorGeneric
);
52
void
addWarning(
const
UT_StringRef
&msg,
53
FBX_ErrorType
type
=
FBX_ErrorGeneric
);
54
void
addError(
const
char
* pcsErrorPart1,
const
char
* pcsErrorPart2,
const
char
* pcsErrorPart3,
bool
bIsCritical =
true
,
FBX_ErrorType
eType
=
FBX_ErrorGeneric
);
55
56
int
getNumItems()
const
;
57
58
bool
getDidReportCriticalErrors()
const
;
59
60
void
reset
();
61
62
void
appendAllErrors(
UT_WorkBuffer
&string_out)
const
;
63
void
appendAllWarnings(
UT_WorkBuffer
&string_out)
const
;
64
65
private
:
66
UT_Array<FBX_Error>
myErrors;
67
bool
myDidReportCricialErrors;
68
};
69
70
#endif // __FBX_ErrorManager_h__
FBX_ErrorGeneric
Definition:
FBX_ErrorManager.h:24
UT_WorkBuffer
Definition:
UT_WorkBuffer.h:74
FBX_API.h
FBX_ErrorType
FBX_ErrorType
Definition:
FBX_ErrorManager.h:22
UT_StringRef
Definition:
UT_StringHolder.h:188
FBX_ErrorManager
Definition:
FBX_ErrorManager.h:45
UT_Array.h
UT_Array< FBX_Error >
UT_StringHolder
Definition:
UT_StringHolder.h:999
FBX_API
#define FBX_API
Definition:
FBX_API.h:10
reset
GLboolean reset
Definition:
glad.h:5138
FBX_ErrorIncorrectPassword
Definition:
FBX_ErrorManager.h:25
FBX_Error
Definition:
FBX_ErrorManager.h:29
PDG_AttributeMergeError::eType
Mismatch between types.
UT_StringHolder.h
type
type
Definition:
core.h:1059
FBX_ErrorLights
Definition:
FBX_ErrorManager.h:26
FBX
FBX_ErrorManager.h
Generated on Tue Dec 10 2024 02:41:41 for HDK by
1.8.6