AGXDynamics  2.31.1.0
agx::ConfigSingleton Class Referenceabstract

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 Types

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...
 

Public Member Functions

 ConfigSingleton ()
 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

void _shutdown ()
 
agxCFG::ConfigScript * getDefaultCFG ()
 
agxCFG::ConfigScript * getSettingsCFG ()
 
void shutdown () override
 Implement this method to cleanup your Singleton class. 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.

Member Enumeration Documentation

◆ Priority

enum agx::Singleton::Priority
inherited

Specifies the ranges of the priority which can be assigned to a singleton at the time of creation.

Enumerator
HIGHEST_PRIORITY 

The highest priority that can be given to a singleton.

LOWEST_PRIORITY 

The lowest priority that can be given to a singleton.

DEFAULT_PRIORITY 

The default priority given to a singleton.

Definition at line 35 of file Singleton.h.

Constructor & Destructor Documentation

◆ ConfigSingleton()

agx::ConfigSingleton::ConfigSingleton ( )

Constructor.

Member Function Documentation

◆ _shutdown()

void agx::Singleton::_shutdown ( )
protectedinherited

◆ 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

◆ getClassName()

virtual std::string agx::Singleton::getClassName ( ) const
pure virtualinherited

◆ getDefaultCFG()

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

◆ getPriority()

int agx::Singleton::getPriority ( ) const
inherited

Return the shutdown priority of the singleton instance.

◆ 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: