59 lines
1.5 KiB
C++
59 lines
1.5 KiB
C++
// Filename: configFlags.cxx
|
|
// Created by: drose (21Oct04)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#include "configFlags.h"
|
|
|
|
TVOLATILE AtomicAdjust::Integer ConfigFlags::_global_modified;
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: ConfigFlags::Type output operator
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
ostream &
|
|
operator << (ostream &out, ConfigFlags::ValueType type) {
|
|
switch (type) {
|
|
case ConfigFlags::VT_undefined:
|
|
return out << "undefined";
|
|
|
|
case ConfigFlags::VT_list:
|
|
return out << "list";
|
|
|
|
case ConfigFlags::VT_string:
|
|
return out << "string";
|
|
|
|
case ConfigFlags::VT_filename:
|
|
return out << "filename";
|
|
|
|
case ConfigFlags::VT_bool:
|
|
return out << "bool";
|
|
|
|
case ConfigFlags::VT_int:
|
|
return out << "int";
|
|
|
|
case ConfigFlags::VT_double:
|
|
return out << "double";
|
|
|
|
case ConfigFlags::VT_enum:
|
|
return out << "enum";
|
|
|
|
case ConfigFlags::VT_search_path:
|
|
return out << "search-path";
|
|
|
|
case ConfigFlags::VT_int64:
|
|
return out << "int64";
|
|
}
|
|
|
|
return out << "**invalid(" << (int)type << ")**";
|
|
}
|