Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Parallel/vtkMPIEventLog.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMPIEventLog.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 =========================================================================*/ 00036 #ifndef __vtkMPIEventLog_h 00037 #define __vtkMPIEventLog_h 00038 00039 #include "vtkObject.h" 00040 00041 class VTK_PARALLEL_EXPORT vtkMPIEventLog : public vtkObject 00042 { 00043 public: 00044 vtkTypeRevisionMacro(vtkMPIEventLog,vtkObject); 00045 00048 static vtkMPIEventLog* New(); 00049 00055 int SetDescription(const char* name, const char* desc); 00056 00058 00061 static void InitializeLogging(); 00062 static void FinalizeLogging(const char* fileName); 00064 00066 00067 void StartLogging(); 00068 void StopLogging(); 00070 00071 virtual void PrintSelf(ostream& os, vtkIndent indent); 00072 00073 protected: 00074 00075 vtkMPIEventLog(); 00076 ~vtkMPIEventLog(); 00077 00078 static int LastEventId; 00079 int Active; 00080 int BeginId; 00081 int EndId; 00082 private: 00083 vtkMPIEventLog(const vtkMPIEventLog&); // Not implemented. 00084 void operator=(const vtkMPIEventLog&); // Not implemented. 00085 }; 00086 00087 #endif 00088 00089 00090 00091