Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

dtool/src/dconfig/notifySeverity.cxx

Go to the documentation of this file.
00001 // Filename: notifySeverity.cxx
00002 // Created by:  drose (29Feb00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "notifySeverity.h"
00020 
00021 ostream &operator << (ostream &out, NotifySeverity severity) {
00022   switch (severity) {
00023   case NS_spam:
00024     return out << "spam";
00025 
00026   case NS_debug:
00027     return out << "debug";
00028 
00029   case NS_info:
00030     return out << "info";
00031 
00032   case NS_warning:
00033     return out << "warning";
00034 
00035   case NS_error:
00036     return out << "error";
00037 
00038   case NS_fatal:
00039     return out << "fatal";
00040 
00041   case NS_unspecified:
00042     return out << "unspecified";
00043   }
00044 
00045   return out << "**invalid severity**";
00046 }

Generated on Thu May 1 22:12:58 2003 for DTool by doxygen1.3