vtkPVLogInformation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef vtkPVLogInformation_h
6 #define vtkPVLogInformation_h
7 
8 #include "vtkPVInformation.h"
9 #include "vtkRemotingCoreModule.h" // needed for exports
10 
11 #include <string> // for std::string
12 
14 
20 {
21 public:
22  static vtkPVLogInformation* New();
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
29  void CopyFromObject(vtkObject*) override;
30 
34  void AddInformation(vtkPVInformation*) override;
35 
37 
40  void CopyToStream(vtkClientServerStream*) override;
41  void CopyFromStream(const vtkClientServerStream*) override;
43 
45 
54 
58  vtkGetMacro(Logs, const std::string&);
59 
63  vtkGetMacro(StartingLogs, const std::string&);
64 
68  vtkSetMacro(Rank, int);
69 
73  vtkGetMacro(Verbosity, int);
74 
75 protected:
76  vtkPVLogInformation() = default;
77  ~vtkPVLogInformation() override = default;
78 
79  int Rank = -1;
80  std::string Logs;
81  std::string StartingLogs;
82  int Verbosity = 20;
83 
85  void operator=(const vtkPVLogInformation&) = delete;
86 };
87 
88 #endif // vtkPVLogInformation_h
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
virtual void CopyParametersToStream(vtkMultiProcessStream &)
Serialize/Deserialize the parameters that control how/what information is gathered.
void PrintSelf(ostream &os, vtkIndent indent) override
Store messages for the interpreter.
Gets the log of a specific rank as well as the verbosity level.
void operator=(const vtkPVInformation &)=delete
#define VTKREMOTINGCORE_EXPORT
virtual void CopyParametersFromStream(vtkMultiProcessStream &)
Serialize/Deserialize the parameters that control how/what information is gathered.
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
virtual void CopyFromObject(vtkObject *)
Transfer information about a single object into this object.
static vtkObject * New()
Superclass for information objects.