VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfSingleton.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
10 #include <vrfutil/vrfutilDefines.h>
11 #include <string>
12 
16 {
17 public:
19  virtual ~DtVrfSingleton();
20 
21  virtual std::string className() const = 0;
22 
25  virtual void cleanup()
26  {
27  }
28 };
29 
30 #define REGISTER_SINGLETON(cName) \
31 public: \
32  static std::string ClassName() { return cName; } \
33  virtual std::string className() const { return ClassName(); }
virtual void cleanup()
Called during destruction due to being removed from the singleton root will allow for cleanup that mi...
Definition: vrfSingleton.h:25
Definition: vrfSingletonRoot.h:17
DtVrfSingleton is a class that all singletons that can be registered with the DtVrfSingletonRoot are ...
Definition: vrfSingleton.h:15
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)