AGX Dynamics  2.37.2.0
agx::ConfigSingleton Class Reference

Class for holding a reference to the Config db for the core settings defined in the file "settings.cfg". More...

#include <ConfigSingleton.h>

+ Inheritance diagram for agx::ConfigSingleton:

Public Member Functions

 ConfigSingleton ()
 Constructor. More...
 
- Public Member Functions inherited from agx::Singleton
 Singleton (int priority=DEFAULT_PRIORITY)
 Default constructor. More...
 
virtual std::string getClassName () const =0
 
int getPriority () const
 Return the shutdown priority of the singleton instance. More...
 

Static Public Member Functions

static agxCFG::ConfigScript * cfg (void)
 
static void loadDefaultConfiguration ()
 
static agxCFG::ConfigScript * settings (void)
 A ConfigScript db used for various system settings of solver/Simulation/Space etc. More...
 

Protected Member Functions

agxCFG::ConfigScript * getDefaultCFG ()
 
agxCFG::ConfigScript * getSettingsCFG ()
 
void shutdown () override
 Implement this method to cleanup your Singleton class. More...
 
- Protected Member Functions inherited from agx::Singleton
virtual ~Singleton ()
 Destructor. More...
 
void _shutdown ()
 

Additional Inherited Members

- Public Types inherited from agx::Singleton
enum  Priority { HIGHEST_PRIORITY = 2147483647, LOWEST_PRIORITY = 10000, DEFAULT_PRIORITY = 1073741824 }
 Specifies the ranges of the priority which can be assigned to a singleton at the time of creation. More...
 

Detailed Description

Class for holding a reference to the Config db for the core settings defined in the file "settings.cfg".

Definition at line 34 of file ConfigSingleton.h.

Constructor & Destructor Documentation

◆ ConfigSingleton()

agx::ConfigSingleton::ConfigSingleton ( )

Constructor.

Member Function Documentation

◆ cfg()

static agxCFG::ConfigScript* agx::ConfigSingleton::cfg ( void  )
static
Returns
a pointer to the ConfigScript that contains various user settings found in the default.cfg

◆ getDefaultCFG()

agxCFG::ConfigScript* agx::ConfigSingleton::getDefaultCFG ( )
protected

◆ getSettingsCFG()

agxCFG::ConfigScript* agx::ConfigSingleton::getSettingsCFG ( )
protected

◆ loadDefaultConfiguration()

static void agx::ConfigSingleton::loadDefaultConfiguration ( )
static

◆ settings()

static agxCFG::ConfigScript* agx::ConfigSingleton::settings ( void  )
static

A ConfigScript db used for various system settings of solver/Simulation/Space etc.

Returns
a pointer to the ConfigScript that contains the settings

◆ shutdown()

void agx::ConfigSingleton::shutdown ( )
overrideprotectedvirtual

Implement this method to cleanup your Singleton class.

Reimplemented from agx::Singleton.


The documentation for this class was generated from the following file: