Panda3D
Static Public Member Functions | List of all members
DConfig Class Reference

This class emulates the old dconfig-style interface to our Panda config system. It exists only to provide backward-compatible support, and it is used primarily by Python code. For modern code, use the new ConfigVariable* interface instead of this deprecated interface. More...

Static Public Member Functions

static bool GetBool (str sym, bool def)
 
static double GetDouble (str sym, double def)
 
static float GetFloat (str sym, float def)
 
static int GetInt (str sym, int def)
 
static str GetString (str sym, str def)
 

Detailed Description

This class emulates the old dconfig-style interface to our Panda config system. It exists only to provide backward-compatible support, and it is used primarily by Python code. For modern code, use the new ConfigVariable* interface instead of this deprecated interface.

Member Function Documentation

◆ GetBool()

static bool GetBool ( str  sym,
bool  def 
)
static

◆ GetDouble()

static double GetDouble ( str  sym,
double  def 
)
static

◆ GetFloat()

static float GetFloat ( str  sym,
float  def 
)
static

◆ GetInt()

static int GetInt ( str  sym,
int  def 
)
static

◆ GetString()

static str GetString ( str  sym,
str  def 
)
static