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 "vtkParallelMPIModule.h" // For export macro
36 #include "vtkObject.h"
37 
38 class VTKPARALLELMPI_EXPORT vtkMPIEventLog : public vtkObject
39 {
40 public:
41  vtkTypeMacro(vtkMPIEventLog,vtkObject);
42 
45  static vtkMPIEventLog* New();
46 
52  int SetDescription(const char* name, const char* desc);
53 
55 
58  static void InitializeLogging();
59  static void FinalizeLogging(const char* fileName);
61 
63 
64  void StartLogging();
65  void StopLogging();
67 
68  virtual void PrintSelf(ostream& os, vtkIndent indent);
69 
70 protected:
71 
73  ~vtkMPIEventLog();
74 
75  static int LastEventId;
76  int Active;
77  int BeginId;
78  int EndId;
79 private:
80  vtkMPIEventLog(const vtkMPIEventLog&); // Not implemented.
81  void operator=(const vtkMPIEventLog&); // Not implemented.
82 };
83 
84 #endif
85 
86 
87 
88 
abstract base class for most VTK objects
Definition: vtkObject.h:61
static int LastEventId
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()
Class for logging and timing.