Evita  0.16
evErrorHandler.h
Go to the documentation of this file.
1 /*
2  *
3  * EVITA: Efficient Visualization of Terascale Datasets
4  * Copyright (C) 2000-2016 Team Evita
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
19  * MA 02139, USA.
20  *
21  */
22 
23 
24 #ifndef __evErrorHandler_h
25 #define __evErrorHandler_h
26 
27 
28 #include "evCommon.h"
29 
30 
32 {
33 public:
34  evErrorHandler(void);
35  virtual ~evErrorHandler(void);
36 
37  virtual const evString GetClassName(void) const
38  {
39  return(evString("evErrorHandler"));
40  }
41 
42  void ErrorMessage(const char *format, ...);
43 
44  void WarningMessage(const char *format, ...);
45 
46  void PrintMessages(void) const;
47 
48  void ClearMessages(void);
49 
50 protected:
51 
52 private:
53 
54 };
55 
56 
58 
59 
61 {
62  QccInit(0, NULL);
63 }
64 
65 
67 {
68 }
69 
70 
71 inline void evErrorHandler::PrintMessages(void) const
72 {
73  QccErrorPrintMessages();
74 }
75 
76 
78 {
79  QccErrorClearMessages();
80 }
81 
82 
83 #endif
Definition: evErrorHandler.h:31
virtual const evString GetClassName(void) const
Definition: evErrorHandler.h:37
void WarningMessage(const char *format,...)
evErrorHandler ErrorHandler
virtual ~evErrorHandler(void)
Definition: evErrorHandler.h:66
void ErrorMessage(const char *format,...)
void PrintMessages(void) const
Definition: evErrorHandler.h:71
Definition: evString.h:30
void ClearMessages(void)
Definition: evErrorHandler.h:77
evErrorHandler(void)
Definition: evErrorHandler.h:60