ConfigPageManager

Inheritance:

Methods of ConfigPageManager:

deleteExplicitPage
bool ConfigPageManager::delete_explicit_page(ConfigPage *page);

Undocumented function.

getExplicitPage
ConfigPage *ConfigPageManager::get_explicit_page(int n) const;

Description: Returns the nth explicit ConfigPage in the world. See get_num_explicit_pages().

getGlobalPtr
static ConfigPageManager *ConfigPageManager::get_global_ptr(void);

Undocumented function.

getImplicitPage
ConfigPage *ConfigPageManager::get_implicit_page(int n) const;

Description: Returns the nth implicit ConfigPage in the world. See get_num_implicit_pages().

getNumExplicitPages
int ConfigPageManager::get_num_explicit_pages(void) const;

Description: 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().

getNumImplicitPages
int ConfigPageManager::get_num_implicit_pages(void) const;

Description: Returns the current number of implicitly-loaded ConfigPages in the world. These represent files that were automatically discovered on the disk as .prc files.

getNumPrcExecutablePatterns
int ConfigPageManager::get_num_prc_executable_patterns(void) const;

Description: 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.

getNumPrcPatterns
int ConfigPageManager::get_num_prc_patterns(void) const;

Description: 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.

getPrcExecutablePattern
string ConfigPageManager::get_prc_executable_pattern(int n) const;

Description: Returns the nth filename pattern that will be considered a match as a valid executable-style config file. See get_num_prc_executable_patterns().

getPrcPattern
string ConfigPageManager::get_prc_pattern(int n) const;

Description: Returns the nth filename pattern that will be considered a match as a valid config file. See get_num_prc_patterns().

getSearchPath
DSearchPath &ConfigPageManager::get_search_path(void);

Description: 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.

loadImplicitPages
void ConfigPageManager::load_implicit_pages(void);

Description: 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().

loadedImplicitPages
bool ConfigPageManager::loaded_implicit_pages(void) const;

Filename: configPageManager.I Created by: drose (15Oct04)
PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ .
To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net .
Description: Returns true if the implicit *.prc files have already been loaded, false otherwise. Normally this will only be false briefly before startup.

makeExplicitPage
ConfigPage *ConfigPageManager::make_explicit_page(string const &name);

Undocumented function.

output
void ConfigPageManager::output(ostream &out) const;

Undocumented function.

reloadImplicitPages
void ConfigPageManager::reload_implicit_pages(void);

Undocumented function.

write
void ConfigPageManager::write(ostream &out) const;

Undocumented function.