00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkDebugLeaksManager.h,v $ 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 =========================================================================*/ 00035 #ifndef __vtkDebugLeaksManager_h 00036 #define __vtkDebugLeaksManager_h 00037 00038 #include "vtkSystemIncludes.h" 00039 00040 class VTK_COMMON_EXPORT vtkDebugLeaksManager 00041 { 00042 public: 00043 vtkDebugLeaksManager(); 00044 ~vtkDebugLeaksManager(); 00045 }; 00046 00047 // This instance will show up in any translation unit that uses 00048 // vtkDebugLeaks or that has a singleton. It will make sure 00049 // vtkDebugLeaks is initialized before it is used and is the last 00050 // static object destroyed. 00051 static vtkDebugLeaksManager vtkDebugLeaksManagerInstance; 00052 00053 #endif