VTK
dox/Parallel/MPI/vtkMPIEventLog.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMPIEventLog.h
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 "vtkParallelMPIModule.h" // For export macro
00036 #include "vtkObject.h"
00037 
00038 class VTKPARALLELMPI_EXPORT vtkMPIEventLog : public vtkObject
00039 {
00040 public:
00041   vtkTypeMacro(vtkMPIEventLog,vtkObject);
00042 
00045   static vtkMPIEventLog* New();
00046 
00052   int SetDescription(const char* name, const char* desc);
00053 
00055 
00058   static void InitializeLogging();
00059   static void FinalizeLogging(const char* fileName);
00061 
00063 
00064   void StartLogging();
00065   void StopLogging();
00067 
00068   virtual void PrintSelf(ostream& os, vtkIndent indent);
00069 
00070 protected:
00071 
00072   vtkMPIEventLog();
00073   ~vtkMPIEventLog();
00074 
00075   static int LastEventId;
00076   int Active;
00077   int BeginId;
00078   int EndId;
00079 private:
00080   vtkMPIEventLog(const vtkMPIEventLog&);  // Not implemented.
00081   void operator=(const vtkMPIEventLog&);  // Not implemented.
00082 };
00083 
00084 #endif
00085 
00086 
00087 
00088