14 #ifndef CONFIGVARIABLEMANAGER_H 15 #define CONFIGVARIABLEMANAGER_H 39 ConfigFlags::ValueType type,
40 const std::string &default_value,
41 const std::string &description = std::string(),
45 INLINE
size_t get_num_variables()
const;
47 MAKE_SEQ(get_variables, get_num_variables, get_variable);
48 std::string get_variable_name(
size_t n)
const;
49 bool is_variable_used(
size_t n)
const;
51 MAKE_SEQ_PROPERTY(variables, get_num_variables, get_variable);
53 void output(std::ostream &out)
const;
54 void write(std::ostream &out)
const;
56 void write_prc_variables(std::ostream &out)
const;
58 void list_unused_variables()
const;
59 void list_variables()
const;
60 void list_dynamic_variables()
const;
66 bool include_descriptions)
const;
70 typedef std::vector<ConfigVariableCore *> Variables;
73 typedef std::map<std::string, ConfigVariableCore *> VariablesByName;
74 VariablesByName _variables_by_name;
76 typedef std::map<GlobPattern, ConfigVariableCore *> VariableTemplates;
77 VariableTemplates _variable_templates;
The internal definition of a ConfigVariable.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A global object that maintains the set of ConfigVariables (actually, ConfigVariableCores) everywhere ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.