Panda3D

configFlags.cxx

00001 // Filename: configFlags.cxx
00002 // Created by:  drose (21Oct04)
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 "configFlags.h"
00016 
00017 TVOLATILE AtomicAdjust::Integer ConfigFlags::_global_modified;
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //     Function: ConfigFlags::Type output operator
00021 //  Description: 
00022 ////////////////////////////////////////////////////////////////////
00023 ostream &
00024 operator << (ostream &out, ConfigFlags::ValueType type) {
00025   switch (type) {
00026   case ConfigFlags::VT_undefined:
00027     return out << "undefined";
00028 
00029   case ConfigFlags::VT_list:
00030     return out << "list";
00031 
00032   case ConfigFlags::VT_string:
00033     return out << "string";
00034 
00035   case ConfigFlags::VT_filename:
00036     return out << "filename";
00037 
00038   case ConfigFlags::VT_bool:
00039     return out << "bool";
00040 
00041   case ConfigFlags::VT_int:
00042     return out << "int";
00043 
00044   case ConfigFlags::VT_double:
00045     return out << "double";
00046 
00047   case ConfigFlags::VT_enum:
00048     return out << "enum";
00049 
00050   case ConfigFlags::VT_search_path:
00051     return out << "search-path";
00052 
00053   case ConfigFlags::VT_int64:
00054     return out << "int64";
00055   }
00056 
00057   return out << "**invalid(" << (int)type << ")**";
00058 }
 All Classes Functions Variables Enumerations