25 return _loaded_implicit;
39 if (!_loaded_implicit) {
71 return _prc_patterns.size();
83 nassertr(n >= 0 && n < (
int)_prc_patterns.size(), string());
84 return _prc_patterns[n].get_pattern();
96 return _prc_encrypted_patterns.size();
108 nassertr(n >= 0 && n < (
int)_prc_patterns.size(), string());
109 return _prc_encrypted_patterns[n].get_pattern();
123 return _prc_executable_patterns.size();
135 nassertr(n >= 0 && n < (
int)_prc_patterns.size(), string());
136 return _prc_executable_patterns[n].get_pattern();
149 return _implicit_pages.size();
161 nassertr(n >= 0 && n < (
int)_implicit_pages.size(), (
ConfigPage *)NULL);
162 return _implicit_pages[n];
175 return _explicit_pages.size();
187 nassertr(n >= 0 && n < (
int)_explicit_pages.size(), (
ConfigPage *)NULL);
188 return _explicit_pages[n];
202 _pages_sorted =
false;
211 INLINE
void ConfigPageManager::
212 check_sort_pages()
const {
213 if (!_pages_sorted) {
int get_num_explicit_pages() const
Returns the current number of explicitly-loaded ConfigPages in the world.
string get_prc_executable_pattern(int n) const
Returns the nth filename pattern that will be considered a match as a valid executable-style config f...
int get_num_prc_encrypted_patterns() const
Returns the number of patterns, like "*.pre", that are compiled in that will be searched for as speci...
string get_prc_pattern(int n) const
Returns the nth filename pattern that will be considered a match as a valid config file...
ConfigPage * get_explicit_page(int n) const
Returns the nth explicit ConfigPage in the world.
void load_implicit_pages()
Searches the PRC_DIR and/or PRC_PATH directories for .prc files and loads them in as pages...
A global object that maintains the set of ConfigPages everywhere in the world, and keeps them in sort...
bool loaded_implicit_pages() const
Returns true if the implicit *.prc files have already been loaded, false otherwise.
ConfigPage * get_implicit_page(int n) const
Returns the nth implicit ConfigPage in the world.
void reload_implicit_pages()
Searches the PRC_DIR and/or PRC_PATH directories for .prc files and loads them in as pages...
string get_prc_encrypted_pattern(int n) const
Returns the nth filename pattern that will be considered a match as a valid encrypted config file...
void mark_unsorted()
This method is meant to be used internally to this module; there is no need to call it directly...
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...
DSearchPath & get_search_path()
Returns the search path used to locate implicit .prc files.
int get_num_prc_executable_patterns() const
Returns the number of patterns, like "*.exe", that are compiled in that will be searched for as speci...
int get_num_prc_patterns() const
Returns the number of patterns, like "*.prc", that are compiled in that will be searched for as defau...
int get_num_implicit_pages() const
Returns the current number of implicitly-loaded ConfigPages in the world.