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 =========================================================================*/
33 #ifndef vtkMPIEventLog_h
34 #define vtkMPIEventLog_h
35 
36 #include "vtkParallelMPIModule.h" // For export macro
37 #include "vtkObject.h"
38 
39 class VTKPARALLELMPI_EXPORT vtkMPIEventLog : public vtkObject
40 {
41 public:
42  vtkTypeMacro(vtkMPIEventLog,vtkObject);
43 
48  static vtkMPIEventLog* New();
49 
60  int SetDescription(const char* name, const char* desc);
61 
63 
69  static void InitializeLogging();
70  static void FinalizeLogging(const char* fileName);
72 
74 
77  void StartLogging();
78  void StopLogging();
80 
81  void PrintSelf(ostream& os, vtkIndent indent) override;
82 
83 protected:
84 
86  ~vtkMPIEventLog();
87 
88  static int LastEventId;
89  int Active;
90  int BeginId;
91  int EndId;
92 private:
93  vtkMPIEventLog(const vtkMPIEventLog&) = delete;
94  void operator=(const vtkMPIEventLog&) = delete;
95 };
96 
97 #endif
98 
99 
100 
101 
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static int LastEventId
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Class for logging and timing.