VTK
vtkMPIEventLog.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMPIEventLog.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
32 #ifndef __vtkMPIEventLog_h
33 #define __vtkMPIEventLog_h
34 
35 #include "vtkObject.h"
36 
38 {
39 public:
40  vtkTypeMacro(vtkMPIEventLog,vtkObject);
41 
44  static vtkMPIEventLog* New();
45 
51  int SetDescription(const char* name, const char* desc);
52 
54 
57  static void InitializeLogging();
58  static void FinalizeLogging(const char* fileName);
60 
62 
63  void StartLogging();
64  void StopLogging();
66 
67  virtual void PrintSelf(ostream& os, vtkIndent indent);
68 
69 protected:
70 
72  ~vtkMPIEventLog();
73 
74  static int LastEventId;
75  int Active;
76  int BeginId;
77  int EndId;
78 private:
79  vtkMPIEventLog(const vtkMPIEventLog&); // Not implemented.
80  void operator=(const vtkMPIEventLog&); // Not implemented.
81 };
82 
83 #endif
84 
85 
86 
87 
abstract base class for most VTK objects
Definition: vtkObject.h:60
static int LastEventId
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_PARALLEL_EXPORT
static vtkObject * New()
Class for logging and timing.