#include "config_express.h"
#include <executionEnvironment.h>
#include "get_config_path.h"
Go to the source code of this file.
Functions | |
DSearchPath & | get_config_path (const string &config_var_name, DSearchPath *&static_ptr) |
A generic function for reading path strings (e.g. |
Definition in file get_config_path.cxx.
|
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(). |