00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMultiProcessLog.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 =========================================================================*/ 00021 #ifndef __vtkMultiProcessLog_h 00022 #define __vtkMultiProcessLog_h 00023 00024 00025 #include "vtkObject.h" 00026 00027 class vtkThreadSafeLog; 00028 00029 #define VTK_MULTI_PROCESS_LOG_MAX 1000 00030 00031 class VTK_PARALLEL_EXPORT vtkMultiProcessLog : public vtkObject 00032 { 00033 public: 00034 static vtkMultiProcessLog *New(); 00035 vtkTypeRevisionMacro(vtkMultiProcessLog,vtkObject); 00036 virtual void PrintSelf(ostream& os, vtkIndent indent); 00037 00039 00042 static void SetTimerLog(vtkThreadSafeLog *log); 00043 static vtkThreadSafeLog *GetTimerLog(); 00045 00047 static void DumpLog(char *filename); 00048 00049 protected: 00050 00051 vtkMultiProcessLog() {}; //insure constructur/destructor protected 00052 ~vtkMultiProcessLog() {}; 00053 00054 private: 00055 vtkMultiProcessLog(const vtkMultiProcessLog&); // Not implemented. 00056 void operator=(const vtkMultiProcessLog&); // Not implemented. 00057 }; 00058 00059 00060 00061 #endif