Panda3D
|
00001 // Filename: omitReason.cxx 00002 // Created by: drose (02Dec00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "omitReason.h" 00016 00017 ostream & 00018 operator << (ostream &out, OmitReason omit) { 00019 switch (omit) { 00020 case OR_none: 00021 return out << "none"; 00022 00023 case OR_working: 00024 return out << "working"; 00025 00026 case OR_omitted: 00027 return out << "omitted"; 00028 00029 case OR_size: 00030 return out << "size"; 00031 00032 case OR_solitary: 00033 return out << "solitary"; 00034 00035 case OR_coverage: 00036 return out << "coverage"; 00037 00038 case OR_unknown: 00039 return out << "unknown"; 00040 00041 case OR_unused: 00042 return out << "unused"; 00043 00044 case OR_default_omit: 00045 return out << "default_omit"; 00046 } 00047 00048 return out << "**invalid**(" << (int)omit << ")"; 00049 }