Last change
on this file was
8896,
checked in by westram, 12 years ago
|
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
717 bytes
|
Line | |
---|
1 | #ifndef _AP_ERROR_INC |
---|
2 | #define _AP_ERROR_INC |
---|
3 | |
---|
4 | #ifndef ATTRIBUTES_H |
---|
5 | #include <attributes.h> |
---|
6 | #endif |
---|
7 | #ifndef ARBTOOLS_H |
---|
8 | #include <arbtools.h> |
---|
9 | #endif |
---|
10 | |
---|
11 | |
---|
12 | class AP_ERR : virtual Noncopyable { |
---|
13 | static int mode; // output mode 0 = no warnings, 1 = warnings |
---|
14 | const char *text; // pointer to errortext |
---|
15 | |
---|
16 | public: |
---|
17 | AP_ERR(const char *errorstring); // sets error |
---|
18 | AP_ERR(const char *, const int core) __ATTR__NORETURN; |
---|
19 | AP_ERR(const char *, const char *, const int core) __ATTR__NORETURN; |
---|
20 | AP_ERR(const char *, const char *); |
---|
21 | ~AP_ERR(); |
---|
22 | |
---|
23 | const char *show(); // shows error messages |
---|
24 | void set_mode(int i); // set error mode |
---|
25 | }; |
---|
26 | |
---|
27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.