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 "vtkStdString.h" // needed for vtkStdString
32 #include <vector> // needed for std::vector
33 
34 class VTKREMOTINGCORE_EXPORT vtkPVSystemInformation : public vtkPVInformation
35 {
36 public:
37  static vtkPVSystemInformation* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  void CopyFromObject(vtkObject*) override;
45 
49  void AddInformation(vtkPVInformation*) override;
50 
52 
55  void CopyToStream(vtkClientServerStream*) override;
56  void CopyFromStream(const vtkClientServerStream*) override;
58 
60  {
62  int ProcessId; // for parallel processes, this indicates the process id.
69  bool Is64Bits;
70  unsigned int NumberOfPhyicalCPUs;
71  unsigned int NumberOfLogicalCPUs; // per physical cpu
76  };
77 
78  // Provides access to the vector of information.
79  const std::vector<SystemInformationType>& GetSystemInformations()
80  {
81  return this->SystemInformations;
82  }
83 
84 protected:
86  ~vtkPVSystemInformation() override;
87 
88  std::vector<SystemInformationType> SystemInformations;
89 
90 private:
92  void operator=(const vtkPVSystemInformation&) = delete;
93 };
94 
95 #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()
void operator=(const vtkPVInformation &)=delete
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.