Panda3D
notifySeverity.h
1 // Filename: notifySeverity.h
2 // Created by: drose (29Feb00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef NOTIFYSEVERITY_H
16 #define NOTIFYSEVERITY_H
17 
18 #include "dtoolbase.h"
19 
20 BEGIN_PUBLISH
21 enum NotifySeverity {
22  NS_unspecified, // Never used, a special case internally.
23  NS_spam,
24  NS_debug,
25  NS_info,
26  NS_warning,
27  NS_error, // Specifically, a recoverable error.
28  NS_fatal // A nonrecoverable error--expect abort() or core dump.
29 };
30 END_PUBLISH
31 
32 EXPCL_DTOOLCONFIG ostream &operator << (ostream &out, NotifySeverity severity);
33 EXPCL_DTOOLCONFIG istream &operator >> (istream &in, NotifySeverity &severity);
34 
35 
36 #endif