vtkPVMultiClientsInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVMultiClientsInformation.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 =========================================================================*/
23 #ifndef vtkPVMultiClientsInformation_h
24 #define vtkPVMultiClientsInformation_h
25 
26 #include "vtkPVInformation.h"
27 #include "vtkRemotingServerManagerModule.h" //needed for exports
28 
30 
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
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 
62  vtkGetMacro(ClientId, int);
64 
69  int GetClientId(int idx);
70 
72 
75  vtkGetMacro(NumberOfClients, int);
77 
79 
82  vtkGetMacro(MultiClientEnable, int);
84 
86 
89  vtkGetMacro(MasterId, int);
91 
92 protected:
94  ~vtkPVMultiClientsInformation() override;
95 
96  int ClientId;
97  int* ClientIds;
100  int MasterId;
101 
103  void operator=(const vtkPVMultiClientsInformation&) = delete;
104 };
105 
106 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
#define VTKREMOTINGSERVERMANAGER_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
Store messages for the interpreter.
Gets Multi-clients information from the server.
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.