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
39class VTKPARALLELMPI_EXPORT vtkMPIEventLog : public vtkObject
40{
41public:
43
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
80
81 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
82
83protected:
84
87
88 static int LastEventId;
89 int Active;
91 int EndId;
92private:
93 vtkMPIEventLog(const vtkMPIEventLog&) VTK_DELETE_FUNCTION;
94 void operator=(const vtkMPIEventLog&) VTK_DELETE_FUNCTION;
95};
96
97#endif
98
99
100
101
a simple class to control print indentation
Definition: vtkIndent.h:40
Class for logging and timing.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static void InitializeLogging()
These methods have to be called once on all processors before and after invoking any logging events.
static vtkMPIEventLog * New()
Construct a vtkMPIEventLog with the following initial state: Processes = 0, MaximumNumberOfProcesses ...
void StartLogging()
Issue start and stop events for this log entry.
static void FinalizeLogging(const char *fileName)
void StopLogging()
int SetDescription(const char *name, const char *desc)
Used to initialize the underlying mpe event.
static int LastEventId
abstract base class for most VTK objects
Definition: vtkObject.h:60
@ name
Definition: vtkX3D.h:219