vtkSMServerStateLocator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkSMServerStateLocator_h
12 #define vtkSMServerStateLocator_h
13 
14 #include "vtkRemotingServerManagerModule.h" //needed for exports
15 #include "vtkSMMessageMinimal.h" // needed for vtkSMMessage.
16 #include "vtkSMStateLocator.h"
17 #include "vtkWeakPointer.h" // needed for the session ref
18 
19 class vtkSMSession;
20 
22 {
23 public:
24  static vtkSMServerStateLocator* New();
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
29 
33  vtkSMSession* GetSession();
34  void SetSession(vtkSMSession* session);
36 
43  bool FindState(vtkTypeUInt32 globalID, vtkSMMessage* stateToFill, bool useParent) override;
44 
45 protected:
47  ~vtkSMServerStateLocator() override;
48 
50 
51 private:
53  void operator=(const vtkSMServerStateLocator&) = delete;
54 };
55 
56 #endif
static vtkSMStateLocator * New()
#define VTKREMOTINGSERVERMANAGER_EXPORT
vtkSMSession is the default ParaView session.
Definition: vtkSMSession.h:22
Class used to retrieve a given message state based on its GlobalID from the DataServer.
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
vtkWeakPointer< vtkSMSession > Session
void PrintSelf(ostream &os, vtkIndent indent) override
virtual bool FindState(vtkTypeUInt32 globalID, vtkSMMessage *stateToFill, bool useParent=true)
Fill the provided State message with the state found inside the current locator or one of its parent...
Class used to retrieve a given message state based on its GlobalID.