Panda3D
configFlags.cxx
1 // Filename: configFlags.cxx
2 // Created by: drose (21Oct04)
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 #include "configFlags.h"
16 
17 TVOLATILE AtomicAdjust::Integer ConfigFlags::_global_modified;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: ConfigFlags::Type output operator
21 // Description:
22 ////////////////////////////////////////////////////////////////////
23 ostream &
24 operator << (ostream &out, ConfigFlags::ValueType type) {
25  switch (type) {
26  case ConfigFlags::VT_undefined:
27  return out << "undefined";
28 
29  case ConfigFlags::VT_list:
30  return out << "list";
31 
32  case ConfigFlags::VT_string:
33  return out << "string";
34 
35  case ConfigFlags::VT_filename:
36  return out << "filename";
37 
38  case ConfigFlags::VT_bool:
39  return out << "bool";
40 
41  case ConfigFlags::VT_int:
42  return out << "int";
43 
44  case ConfigFlags::VT_double:
45  return out << "double";
46 
47  case ConfigFlags::VT_enum:
48  return out << "enum";
49 
50  case ConfigFlags::VT_search_path:
51  return out << "search-path";
52 
53  case ConfigFlags::VT_int64:
54  return out << "int64";
55 
56  case ConfigFlags::VT_color:
57  return out << "color";
58  }
59 
60  return out << "**invalid(" << (int)type << ")**";
61 }