AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AssimpLoggerSingleton.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
20 #if AGX_USE_ASSIMP()
21 
22 #include <agx/Singleton.h>
23 namespace agxIO
24 {
25 
32  {
33 
34  public:
35 
38 
39  static AssimpLoggerSingleton* instance();
40 
41  SINGLETON_CLASSNAME_METHOD();
42 
43  protected:
44  void shutdown() override;
45 
46  private:
47 
48  virtual ~AssimpLoggerSingleton();
49 
50  static AssimpLoggerSingleton* s_instance;
51  agx::Vector<void*> m_logStreams;
52 
53  };
54 }
55 
56 // AGX_USE_ASSIMP()
57 #endif
void AGXPHYSICS_EXPORT shutdown()
Shutdown agx.
#define AGXPHYSICS_EXPORT
This class will initialize the logging for the Assimp library as a singleton.
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
Definition: Singleton.h:30