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

Parallel/vtkMPIEventLog.h

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