Panda3D
configFlags.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file configFlags.cxx
10  * @author drose
11  * @date 2004-10-21
12  */
13 
14 #include "configFlags.h"
15 
16 TVOLATILE AtomicAdjust::Integer ConfigFlags::_global_modified;
17 
18 /**
19  *
20  */
21 std::ostream &
22 operator << (std::ostream &out, ConfigFlags::ValueType type) {
23  switch (type) {
24  case ConfigFlags::VT_undefined:
25  return out << "undefined";
26 
27  case ConfigFlags::VT_list:
28  return out << "list";
29 
30  case ConfigFlags::VT_string:
31  return out << "string";
32 
33  case ConfigFlags::VT_filename:
34  return out << "filename";
35 
36  case ConfigFlags::VT_bool:
37  return out << "bool";
38 
39  case ConfigFlags::VT_int:
40  return out << "int";
41 
42  case ConfigFlags::VT_double:
43  return out << "double";
44 
45  case ConfigFlags::VT_enum:
46  return out << "enum";
47 
48  case ConfigFlags::VT_search_path:
49  return out << "search-path";
50 
51  case ConfigFlags::VT_int64:
52  return out << "int64";
53 
54  case ConfigFlags::VT_color:
55  return out << "color";
56  }
57 
58  return out << "**invalid(" << (int)type << ")**";
59 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.