Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HImErrorHandler.h
1 //
2 // Copyright (c) 2000 by Tech Soft 3D, LLC.
3 // The information contained herein is confidential and proprietary to
4 // Tech Soft 3D, LLC., and considered a trade secret as defined under
5 // civil and criminal statutes. Tech Soft 3D shall pursue its civil
6 // and criminal remedies in the event of unauthorized use or misappropriation
7 // of its trade secrets. Use of this information by anyone other than
8 // authorized employees of Tech Soft 3D, LLC. is granted only under a
9 // written non-disclosure agreement, expressly prescribing the scope and
10 // manner of such use.
11 //
12 // $Id: 8144cc8dbf5b7e7874e82204a0141cc09ad9bdd7 $
13 //
14 
15 #ifndef _HIM_ERROR_HANDLER_H
16 #define _HIM_ERROR_HANDLER_H
17 
18 #ifdef H_PACK_8
19 #pragma pack(push)
20 #pragma pack(8)
21 #endif
22 
23 #include "HTools.h"
24 
25 /* forward declaration.
26  * private helper class */
27 class HErrorDescriptorNode;
28 
29 
31 
49 class MVO_API HImErrorHandler
50 {
51 private:
52  static bool IsBlocked( int category, int specific, int severity );
53  static bool IsPassed( int category, int specific, int severity );
54 
55  static HErrorDescriptorNode *m_Block;
56  static HErrorDescriptorNode *m_Pass;
57  static bool m_BlockByDefault;
58 
59 public:
63  HImErrorHandler( bool BlockByDefault = false );
64  ~HImErrorHandler();
67  static void RegisterCallbacks();
68 
75  static void Block( int cat, int spec, int sev );
76 
82  static void Pass( int cat, int spec, int sev );
83 
87  void SetBlockByDefault( bool bbd ) { m_BlockByDefault = bbd; }
88 
90  static bool BlockByDefault() { return m_BlockByDefault; }
91 
95  static void CallbackEntryPoint(
96  int category, int specific, int severity,
97  int msgc, char **msgv, int stackc, char **stackv
98  );
99 };
100 
101 
102 
103 #ifdef H_PACK_8
104 #pragma pack(pop)
105 #endif
106 
107 #endif
108 
109 
110 
void SetBlockByDefault(bool bbd)
Definition: HImErrorHandler.h:87
static bool BlockByDefault()
Definition: HImErrorHandler.h:90
The HImErrorHandler class implements a set of rules for when info/warnings/errors should be passed to...
Definition: HImErrorHandler.h:49