Panda3D
|
A global object that maintains the set of ConfigPages everywhere in the world, and keeps them in sorted order. More...
Public Member Functions | |
bool | deleteExplicitPage (ConfigPage page) |
ConfigPage | getExplicitPage (int n) |
Returns the nth explicit ConfigPage in the world. See get_num_explicit_pages(). More... | |
ConfigPage | getImplicitPage (int n) |
Returns the nth implicit ConfigPage in the world. See get_num_implicit_pages(). More... | |
int | getNumExplicitPages () |
Returns the current number of explicitly-loaded ConfigPages in the world. These represent pages that were loaded dynamically at runtime by explicit calls to ConfigPageManager::make_explicit_page(). More... | |
int | getNumImplicitPages () |
Returns the current number of implicitly-loaded ConfigPages in the world. These represent files that were automatically discovered on the disk as .prc files. More... | |
int | getNumPrcEncryptedPatterns () |
Returns the number of patterns, like "*.pre", that are compiled in that will be searched for as special config files that are understood to be encrypted. More... | |
int | getNumPrcExecutablePatterns () |
Returns the number of patterns, like "*.exe", that are compiled in that will be searched for as special config files that are to be executed as a program, and their output taken to be input. This is normally empty. More... | |
int | getNumPrcPatterns () |
Returns the number of patterns, like "*.prc", that are compiled in that will be searched for as default config filenames. Normally there is only one pattern, and it is "*.prc", but others may be specified with the PRC_FILENAME variable in Config.pp. More... | |
str | getPrcEncryptedPattern (int n) |
Returns the nth filename pattern that will be considered a match as a valid encrypted config file. See get_num_prc_encrypted_patterns(). More... | |
str | getPrcExecutablePattern (int n) |
Returns the nth filename pattern that will be considered a match as a valid executable-style config file. See get_num_prc_executable_patterns(). More... | |
str | getPrcPattern (int n) |
Returns the nth filename pattern that will be considered a match as a valid config file. See get_num_prc_patterns(). More... | |
DSearchPath | getSearchPath () |
Returns the search path used to locate implicit .prc files. This is determined by the PRC_DIR and PRC_PATH environment variables. The object returned by this method may be modified to change the path at runtime, and then reload_implicit_pages() called. More... | |
bool | loadedImplicitPages () |
Returns true if the implicit *.prc files have already been loaded, false otherwise. Normally this will only be false briefly before startup. More... | |
loadImplicitPages () | |
Searches the PRC_DIR and/or PRC_PATH directories for *.prc files and loads them in as pages. This is normally called automatically at startup time, when the first variable's value is referenced. See also reload_implicit_pages(). More... | |
ConfigPage | makeExplicitPage (str name) |
output (Ostream out) | |
reloadImplicitPages () | |
write (Ostream out) | |
Static Public Member Functions | |
static ConfigPageManager | getGlobalPtr () |
Additional Inherited Members | |
![]() | |
enum | ValueType { VT_undefined = 0, VT_list = 1, VT_string = 2, VT_filename = 3, VT_bool = 4, VT_int = 5, VT_double = 6, VT_enum = 7, VT_search_path = 8, VT_int64 = 9, VT_color = 10 } |
enum | VariableFlags { F_trust_level_mask = 4095, F_open = 4096, F_closed = 8192, F_dynamic = 16384, F_dconfig = 32768 } |
A global object that maintains the set of ConfigPages everywhere in the world, and keeps them in sorted order.
bool deleteExplicitPage | ( | ConfigPage | page | ) |
ConfigPage getExplicitPage | ( | int | n | ) |
Returns the nth explicit ConfigPage in the world. See get_num_explicit_pages().
|
static |
ConfigPage getImplicitPage | ( | int | n | ) |
Returns the nth implicit ConfigPage in the world. See get_num_implicit_pages().
int getNumExplicitPages | ( | ) |
Returns the current number of explicitly-loaded ConfigPages in the world. These represent pages that were loaded dynamically at runtime by explicit calls to ConfigPageManager::make_explicit_page().
int getNumImplicitPages | ( | ) |
Returns the current number of implicitly-loaded ConfigPages in the world. These represent files that were automatically discovered on the disk as .prc files.
int getNumPrcEncryptedPatterns | ( | ) |
Returns the number of patterns, like "*.pre", that are compiled in that will be searched for as special config files that are understood to be encrypted.
int getNumPrcExecutablePatterns | ( | ) |
Returns the number of patterns, like "*.exe", that are compiled in that will be searched for as special config files that are to be executed as a program, and their output taken to be input. This is normally empty.
int getNumPrcPatterns | ( | ) |
Returns the number of patterns, like "*.prc", that are compiled in that will be searched for as default config filenames. Normally there is only one pattern, and it is "*.prc", but others may be specified with the PRC_FILENAME variable in Config.pp.
str getPrcEncryptedPattern | ( | int | n | ) |
Returns the nth filename pattern that will be considered a match as a valid encrypted config file. See get_num_prc_encrypted_patterns().
str getPrcExecutablePattern | ( | int | n | ) |
Returns the nth filename pattern that will be considered a match as a valid executable-style config file. See get_num_prc_executable_patterns().
str getPrcPattern | ( | int | n | ) |
Returns the nth filename pattern that will be considered a match as a valid config file. See get_num_prc_patterns().
DSearchPath getSearchPath | ( | ) |
Returns the search path used to locate implicit .prc files. This is determined by the PRC_DIR and PRC_PATH environment variables. The object returned by this method may be modified to change the path at runtime, and then reload_implicit_pages() called.
bool loadedImplicitPages | ( | ) |
Returns true if the implicit *.prc files have already been loaded, false otherwise. Normally this will only be false briefly before startup.
loadImplicitPages | ( | ) |
Searches the PRC_DIR and/or PRC_PATH directories for *.prc files and loads them in as pages. This is normally called automatically at startup time, when the first variable's value is referenced. See also reload_implicit_pages().
ConfigPage makeExplicitPage | ( | str | name | ) |
output | ( | Ostream | out | ) |
reloadImplicitPages | ( | ) |
write | ( | Ostream | out | ) |