HDK
 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 
23 {
27 };
28 
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 
46 {
47 public:
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,
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_ErrorType
#define FBX_API
Definition: FBX_API.h:10
GLboolean reset
Definition: glad.h:5138
Mismatch between types.
type
Definition: core.h:1059