00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMultiProcessLog.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00037 #ifndef __vtkMultiProcessLog_h 00038 #define __vtkMultiProcessLog_h 00039 00040 00041 #include "vtkObject.h" 00042 00043 class vtkThreadSafeLog; 00044 00045 #define VTK_MULTI_PROCESS_LOG_MAX 1000 00046 00047 class VTK_PARALLEL_EXPORT vtkMultiProcessLog : public vtkObject 00048 { 00049 public: 00050 static vtkMultiProcessLog *New(); 00051 vtkTypeRevisionMacro(vtkMultiProcessLog,vtkObject); 00052 virtual void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 00058 static void SetTimerLog(vtkThreadSafeLog *log); 00059 static vtkThreadSafeLog *GetTimerLog(); 00061 00063 static void DumpLog(char *filename); 00064 00065 protected: 00066 00067 vtkMultiProcessLog() {}; //insure constructur/destructor protected 00068 ~vtkMultiProcessLog() {}; 00069 00070 private: 00071 vtkMultiProcessLog(const vtkMultiProcessLog&); // Not implemented. 00072 void operator=(const vtkMultiProcessLog&); // Not implemented. 00073 }; 00074 00075 00076 00077 #endif