VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkDebugLeaksManager.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00024 #ifndef __vtkDebugLeaksManager_h 00025 #define __vtkDebugLeaksManager_h 00026 00027 #include "vtkCommonCoreModule.h" // For export macro 00028 #include "vtkSystemIncludes.h" 00029 00030 class VTKCOMMONCORE_EXPORT vtkDebugLeaksManager 00031 { 00032 public: 00033 vtkDebugLeaksManager(); 00034 ~vtkDebugLeaksManager(); 00035 }; 00036 00037 // This instance will show up in any translation unit that uses 00038 // vtkDebugLeaks or that has a singleton. It will make sure 00039 // vtkDebugLeaks is initialized before it is used and is the last 00040 // static object destroyed. 00041 static vtkDebugLeaksManager vtkDebugLeaksManagerInstance; 00042 00043 #endif 00044 // VTK-HeaderTest-Exclude: vtkDebugLeaksManager.h