AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
ConfigSingleton.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGX_CONFIGSINGLETON_H
18#define AGX_CONFIGSINGLETON_H
19
20
22#include <agx/Singleton.h>
23#include <agxCFG/ConfigScript.h>
24
25#ifdef _MSC_VER
26# pragma warning(push)
27# pragma warning( disable : 4251 ) // class X needs to have dll-interface to be used by clients of class Y
28#endif
29
30namespace agx
31{
32
35 {
36 public:
38
39 public:
40
43
48 static agxCFG::ConfigScript* settings( void );
49
51 static agxCFG::ConfigScript* cfg( void );
52
53 SINGLETON_CLASSNAME_METHOD();
54
55 protected:
56 void shutdown() override;
57
58 agxCFG::ConfigScript* getSettingsCFG();
59
60 agxCFG::ConfigScript* getDefaultCFG();
61
62 private:
65
66 virtual ~ConfigSingleton();
67 static ConfigSingleton* s_instance;
68
69 };
70}
71
72#ifdef _MSC_VER
73# pragma warning(pop)
74#endif
75
76#endif
#define AGXPHYSICS_EXPORT
Class for holding a reference to the Config db for the core settings defined in the file "settings....
static void loadDefaultConfiguration()
agxCFG::ConfigScript * getSettingsCFG()
static agxCFG::ConfigScript * settings(void)
A ConfigScript db used for various system settings of solver/Simulation/Space etc.
ConfigSingleton()
Constructor.
agxCFG::ConfigScript * getDefaultCFG()
static agxCFG::ConfigScript * cfg(void)
void shutdown() override
Implement this method to cleanup your Singleton class.
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
Definition Singleton.h:31
Smart pointer for handling referenced counted objects.
Definition ref_ptr.h:30
The agx namespace contains the dynamics/math part of the AGX Dynamics API.