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 
39 {
40 public:
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 
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 
vtkMPIEventLog::StartLogging
void StartLogging()
vtkMPIEventLog::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkMPIEventLog::SetDescription
int SetDescription(const char *name, const char *desc)
vtkMPIEventLog::FinalizeLogging
static void FinalizeLogging(const char *fileName)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkMPIEventLog::Active
int Active
Definition: vtkMPIEventLog.h:76
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkMPIEventLog
Class for logging and timing.
Definition: vtkMPIEventLog.h:39
vtkMPIEventLog::EndId
int EndId
Definition: vtkMPIEventLog.h:78
vtkMPIEventLog::New
static vtkMPIEventLog * New()
VTKPARALLELMPI_EXPORT
#define VTKPARALLELMPI_EXPORT
Definition: vtkParallelMPIModule.h:15
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMPIEventLog::StopLogging
void StopLogging()
vtkMPIEventLog::vtkMPIEventLog
vtkMPIEventLog()
vtkObject.h
vtkMPIEventLog::~vtkMPIEventLog
~vtkMPIEventLog()
vtkMPIEventLog::BeginId
int BeginId
Definition: vtkMPIEventLog.h:77
vtkMPIEventLog::InitializeLogging
static void InitializeLogging()
vtkParallelMPIModule.h
vtkMPIEventLog::LastEventId
static int LastEventId
Definition: vtkMPIEventLog.h:75