pqServerResource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 
5 #ifndef pqServerResource_h
6 #define pqServerResource_h
7 
8 #include "pqCoreModule.h"
9 
10 #include "vtkParaViewDeprecation.h" // for PARAVIEW_DEPRECATED_IN_5_11_0
11 
12 #include <QString>
14 
73 class PQCORE_EXPORT pqServerResource
74 {
75 public:
78  pqServerResource& operator=(const pqServerResource&);
79 
83  pqServerResource(const QString& uri);
84 
89  pqServerResource(const QString& uri, const pqServerConfiguration& config);
90 
95 
99  const pqServerConfiguration& configuration() const;
100 
104  QString toURI() const;
105 
109  QString serializeString() const;
110 
114  QString scheme() const;
115 
119  void setScheme(const QString&);
120 
124  bool isReverse() const;
125 
129  QString host() const;
130 
134  void setHost(const QString&);
135 
139  int port() const;
140 
144  int port(int default_port) const;
145 
149  void setPort(int);
150 
154  QString dataServerHost() const;
155 
159  void setDataServerHost(const QString&);
160 
164  int dataServerPort() const;
165 
169  int dataServerPort(int default_port) const;
170 
174  void setDataServerPort(int);
175 
179  QString renderServerHost() const;
180 
184  void setRenderServerHost(const QString&);
185 
189  int renderServerPort() const;
190 
194  int renderServerPort(int default_port) const;
195 
199  void setRenderServerPort(int);
200 
204  QString path() const;
205 
209  void setPath(const QString&);
210 
214  QString serverName() const;
215 
219  void setServerName(const QString& name);
220 
224  void addData(const QString& key, const QString& value);
225 
229  QString data(const QString& key) const;
230 
235  QString data(const QString& key, const QString& default_value) const;
236 
240  bool hasData(const QString& key) const;
241 
246  pqServerResource schemeHostsPorts() const;
247 
252  pqServerResource schemeHosts() const;
253 
258  pqServerResource hostPath() const;
259 
264  pqServerResource pathServerName() const;
265 
269  PARAVIEW_DEPRECATED_IN_5_11_0("Use the resource directly instead")
270  pqServerResource sessionServer() const { return *this; };
271 
275  PARAVIEW_DEPRECATED_IN_5_11_0("Use the resource directly instead")
276  void setSessionServer(const pqServerResource&){};
277 
279 
282  bool operator==(const pqServerResource&) const;
283  bool operator!=(const pqServerResource&) const;
284  bool operator<(const pqServerResource&) const;
286 
287 private:
288  class pqImplementation;
289  pqImplementation* const Implementation;
290 };
291 
292 #endif
value
value
data
data
key
key
operator<
VTKCOMMONCORE_EXPORT bool operator<(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
port
port
pqServerResource
pqServerResource encapsulates a resource in ParaView.
Definition: pqServerResource.h:73
operator==
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
vtkParaViewDeprecation.h
name
name
PARAVIEW_DEPRECATED_IN_5_11_0
#define PARAVIEW_DEPRECATED_IN_5_11_0(reason)
Definition: vtkParaViewDeprecation.h:109
operator!=
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
pqServerConfiguration
pqServerConfiguration corresponds to a server connection configuration.
Definition: pqServerConfiguration.h:21