vtkMPIMToNSocketConnectionPortInformation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkMPIMToNSocketConnectionPortInformation_h
13 #define vtkMPIMToNSocketConnectionPortInformation_h
14 
15 #include "vtkPVInformation.h"
16 #include "vtkRemotingCoreModule.h" //needed for exports
17 
18 class vtkMPIMToNSocketConnectionPortInformationInternals;
19 
20 class VTKREMOTINGCORE_EXPORT vtkMPIMToNSocketConnectionPortInformation : public vtkPVInformation
21 {
22 public:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
30  void SetConnectionInformation(unsigned int processNumber, int portNumber, const char* hostname);
31 
35  int GetNumberOfConnections();
36 
38 
41  int GetProcessPort(unsigned int processNumber);
42  const char* GetProcessHostName(unsigned int processNumber);
44 
48  void CopyFromObject(vtkObject*) override;
49 
53  void AddInformation(vtkPVInformation*) override;
54 
56 
59  void CopyToStream(vtkClientServerStream*) override;
60  void CopyFromStream(const vtkClientServerStream*) override;
62 
63 protected:
66 
68  vtkMPIMToNSocketConnectionPortInformationInternals* Internals;
69 
70 private:
74 };
75 
76 #endif
vtkPVInformation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkMPIMToNSocketConnectionPortInformation
holds port and host name information.
Definition: vtkMPIMToNSocketConnectionPortInformation.h:20
vtkObject::New
static vtkObject * New()
vtkClientServerStream
Store messages for the interpreter.
Definition: vtkClientServerStream.h:23
vtkPVInformation.h
vtkObject
vtkPVInformation::operator=
void operator=(const vtkPVInformation &)=delete
vtkPVInformation::AddInformation
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
vtkIndent
vtkPVInformation::CopyFromObject
virtual void CopyFromObject(vtkObject *)
Transfer information about a single object into this object.
vtkPVInformation
Superclass for information objects.
Definition: vtkPVInformation.h:19
vtkMPIMToNSocketConnectionPortInformation::Internals
vtkMPIMToNSocketConnectionPortInformationInternals * Internals
Definition: vtkMPIMToNSocketConnectionPortInformation.h:68
vtkPVInformation::CopyToStream
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
vtkMPIMToNSocketConnectionPortInformation::NumberOfConnections
int NumberOfConnections
Definition: vtkMPIMToNSocketConnectionPortInformation.h:67
vtkPVInformation::CopyFromStream
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.