vtkPVSystemInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
25 #ifndef vtkPVSystemInformation_h
26 #define vtkPVSystemInformation_h
27 
28 #include "vtkPVInformation.h"
29 #include "vtkProcessModule.h" // needed for vtkProcessModule::ProcessTypes
30 #include "vtkRemotingCoreModule.h" //needed for exports
31 #include <vector> // needed for std::vector
32 
34 {
35 public:
36  static vtkPVSystemInformation* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  void CopyFromObject(vtkObject*) override;
44 
48  void AddInformation(vtkPVInformation*) override;
49 
51 
54  void CopyToStream(vtkClientServerStream*) override;
55  void CopyFromStream(const vtkClientServerStream*) override;
57 
59  {
61  int ProcessId; // for parallel processes, this indicates the process id.
63  std::string Hostname;
64  std::string OSName;
65  std::string OSRelease;
66  std::string OSVersion;
67  std::string OSPlatform;
68  bool Is64Bits;
69  unsigned int NumberOfPhyicalCPUs;
70  unsigned int NumberOfLogicalCPUs; // per physical cpu
75  };
76 
77  // Provides access to the vector of information.
78  const std::vector<SystemInformationType>& GetSystemInformations()
79  {
80  return this->SystemInformations;
81  }
82 
83 protected:
85  ~vtkPVSystemInformation() override;
86 
87  std::vector<SystemInformationType> SystemInformations;
88 
89 private:
91  void operator=(const vtkPVSystemInformation&) = delete;
92 };
93 
94 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
Information object used to collect miscellaneous system and memory information from all processes...
void PrintSelf(ostream &os, vtkIndent indent) override
Store messages for the interpreter.
std::vector< SystemInformationType > SystemInformations
const std::vector< SystemInformationType > & GetSystemInformations()
#define VTKREMOTINGCORE_EXPORT
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.