14#ifndef CONFIGPAGEMANAGER_H
15#define CONFIGPAGEMANAGER_H
61 void output(std::ostream &out)
const;
62 void write(std::ostream &out)
const;
64 static ConfigPageManager *get_global_ptr();
80 INLINE
void check_sort_pages()
const;
83 bool scan_auto_prc_dir(
Filename &prc_dir)
const;
87 void config_initialized();
89 typedef std::vector<ConfigPage *> Pages;
90 Pages _implicit_pages;
91 Pages _explicit_pages;
95 bool _loaded_implicit;
96 bool _currently_loading;
100 typedef std::vector<GlobPattern> Globs;
102 Globs _prc_encrypted_patterns;
103 Globs _prc_executable_patterns;
118 typedef std::vector<ConfigFile> ConfigFiles;
120 static ConfigPageManager *_global_ptr;
123INLINE std::ostream &operator << (std::ostream &out,
const ConfigPageManager &pageMgr);
This class is the base class of both ConfigVariable and ConfigVariableCore.
A global object that maintains the set of ConfigPages everywhere in the world, and keeps them in sort...
void mark_unsorted()
This method is meant to be used internally to this module; there is no need to call it directly.
bool delete_explicit_page(ConfigPage *page)
Removes a previously-constructed ConfigPage from the set of active pages, and deletes it.
get_num_implicit_pages
Returns the current number of implicitly-loaded ConfigPages in the world.
get_num_explicit_pages
Returns the current number of explicitly-loaded ConfigPages in the world.
get_implicit_page
Returns the nth implicit ConfigPage in the world.
get_search_path
Returns the search path used to locate implicit .prc files.
get_prc_pattern
Returns the nth filename pattern that will be considered a match as a valid config file.
get_explicit_page
Returns the nth explicit ConfigPage in the world.
get_num_prc_executable_patterns
Returns the number of patterns, like `*.exe`, that are compiled in that will be searched for as speci...
void load_implicit_pages()
Searches the PRC_DIR and/or PRC_PATH directories for `*.prc` files and loads them in as pages.
ConfigPage * make_explicit_page(const std::string &name)
Creates and returns a new, empty ConfigPage.
get_prc_executable_pattern
Returns the nth filename pattern that will be considered a match as a valid executable-style config f...
bool loaded_implicit_pages() const
Returns true if the implicit `*.prc` files have already been loaded, false otherwise.
get_num_prc_encrypted_patterns
Returns the number of patterns, like `*.pre`, that are compiled in that will be searched for as speci...
get_prc_encrypted_pattern
Returns the nth filename pattern that will be considered a match as a valid encrypted config file.
void reload_implicit_pages()
Searches the PRC_DIR and/or PRC_PATH directories for *.prc files and loads them in as pages.
get_num_prc_patterns
Returns the number of patterns, like `*.prc`, that are compiled in that will be searched for as defau...
A page of ConfigDeclarations that may be loaded or unloaded.
This class stores a list of directories that can be searched, in order, to locate a particular file.
The name of a file, such as a texture file or an Egg file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.