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

A global object that maintains the set of ConfigVariables (actually, ConfigVariableCores) everywhere in the world, and keeps them in sorted order. More...

Public Member Functions

int getNumVariables ()
 Returns the current number of active ConfigVariableCores in the world. More...
 
ConfigVariableCore getVariable (int n)
 Returns the nth active ConfigVariableCore in the world. More...
 
str getVariableName (int n)
 
list getVariables ()
 
bool isVariableUsed (int n)
 
 listDynamicVariables ()
 
 listUnusedVariables ()
 
 listVariables ()
 
ConfigVariableCore makeVariable (str name)
 
ConfigVariableCore makeVariableTemplate (str pattern, ConfigFlags::ValueType type, str default_value, str description, int flags)
 
 output (Ostream out)
 
 write (Ostream out)
 
 writePrcVariables (Ostream out)
 

Static Public Member Functions

static ConfigVariableManager getGlobalPtr ()
 

Detailed Description

A global object that maintains the set of ConfigVariables (actually, ConfigVariableCores) everywhere in the world, and keeps them in sorted order.

Member Function Documentation

◆ getGlobalPtr()

static ConfigVariableManager getGlobalPtr ( )
static

◆ getNumVariables()

int getNumVariables ( )

Returns the current number of active ConfigVariableCores in the world.

◆ getVariable()

ConfigVariableCore getVariable ( int  n)

Returns the nth active ConfigVariableCore in the world.

◆ getVariableName()

str getVariableName ( int  n)

◆ getVariables()

list getVariables ( )

◆ isVariableUsed()

bool isVariableUsed ( int  n)

◆ listDynamicVariables()

listDynamicVariables ( )

◆ listUnusedVariables()

listUnusedVariables ( )

◆ listVariables()

listVariables ( )

◆ makeVariable()

ConfigVariableCore makeVariable ( str  name)

◆ makeVariableTemplate()

ConfigVariableCore makeVariableTemplate ( str  pattern,
ConfigFlags::ValueType  type,
str  default_value,
str  description,
int  flags 
)

◆ output()

output ( Ostream  out)

◆ write()

write ( Ostream  out)

◆ writePrcVariables()

writePrcVariables ( Ostream  out)