vtkMPIMToNSocketConnectionPortInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkMPIMToNSocketConnectionPortInformation.h
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 =========================================================================*/
24 #ifndef vtkMPIMToNSocketConnectionPortInformation_h
25 #define vtkMPIMToNSocketConnectionPortInformation_h
26 
27 #include "vtkPVInformation.h"
28 #include "vtkRemotingCoreModule.h" //needed for exports
29 
30 class vtkMPIMToNSocketConnectionPortInformationInternals;
31 
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
42  void SetConnectionInformation(unsigned int processNumber, int portNumber, const char* hostname);
43 
47  int GetNumberOfConnections();
48 
50 
53  int GetProcessPort(unsigned int processNumber);
54  const char* GetProcessHostName(unsigned int processNumber);
56 
60  void CopyFromObject(vtkObject*) override;
61 
65  void AddInformation(vtkPVInformation*) override;
66 
68 
71  void CopyToStream(vtkClientServerStream*) override;
72  void CopyFromStream(const vtkClientServerStream*) override;
74 
75 protected:
78 
80  vtkMPIMToNSocketConnectionPortInformationInternals* Internals;
81 
82 private:
86 };
87 
88 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
void PrintSelf(ostream &os, vtkIndent indent) override
Store messages for the interpreter.
vtkMPIMToNSocketConnectionPortInformationInternals * Internals
void operator=(const vtkPVInformation &)=delete
#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.