HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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_Common.h"
16 #include <UT/UT_String.h>
17 
18 
19 /********************************************************************************************************/
21 {
25 };
26 /********************************************************************************************************/
28 {
29 public:
30  FBX_Error(const char* pMessage, bool bIsCritical, FBX_ErrorType eType);
31  virtual ~FBX_Error();
32 
33  bool getIsCritical(void) const;
34  const char* getMessage(void) const;
35  FBX_ErrorType getType(void) const;
36 
37 private:
38  std::string myMessage;
39  bool myIsCritical;
40  FBX_ErrorType myType;
41 };
42 typedef std::vector<FBX_Error*> TErrorVector;
43 /********************************************************************************************************/
45 {
46 public:
48  virtual ~FBX_ErrorManager();
49 
50  void addError(const char* pcsError, bool bIsCritical = true, FBX_ErrorType eType = FBX_ErrorGeneric);
51  void addError(const char* pcsErrorPart1, const char* pcsErrorPart2, const char* pcsErrorPart3, bool bIsCritical = true, FBX_ErrorType eType = FBX_ErrorGeneric);
52 
53  int getNumItems(void) const;
54 
55  bool getDidReportCriticalErrors(void) const;
56 
57  void reset(void);
58 
59  void appendAllErrors(UT_String& string_out) const;
60  void appendAllWarnings(UT_String& string_out) const;
61 
62 private:
63 
64  TErrorVector myErrors;
65  bool myDidReportCricialErrors;
66 };
67 /********************************************************************************************************/
68 
69 #endif // __FBX_ErrorManager_h__
70 
FBX_ErrorType
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define FBX_API
Definition: FBX_API.h:10
std::vector< FBX_Error * > TErrorVector