Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/get_config_path.cxx File Reference

#include "config_express.h"
#include <executionEnvironment.h>
#include "get_config_path.h"

Go to the source code of this file.

Functions

DSearchPathget_config_path (const string &config_var_name, DSearchPath *&static_ptr)
 A generic function for reading path strings (e.g.


Detailed Description

Definition in file get_config_path.cxx.


Function Documentation

DSearchPath& get_config_path const string &  config_var_name,
DSearchPath *&  static_ptr
 

A generic function for reading path strings (e.g.

model-path, texture-path, etc.) from the Config database. It automatically handles concatenating together multiple appearances of the indicated variable name as a single long path string.

static_ptr must be a statically-defined string pointer, unique to each different config_var_name. It should be initialized to NULL. This will automatically be allocated and filled with the string path the first time this function is called; thereafter, the same string value will be returned. This allows the function to work during static init time when we can't be sure what has or hasn't been already initialized.

Definition at line 66 of file get_config_path.cxx.

Referenced by ConfigureFn().


Generated on Fri May 2 00:45:32 2003 for Panda by doxygen1.3