vtkSMServerStateLocator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMServerStateLocator.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 vtkSMServerStateLocator_h
24 #define vtkSMServerStateLocator_h
25 
26 #include "vtkRemotingServerManagerModule.h" //needed for exports
27 #include "vtkSMMessageMinimal.h" // needed for vtkSMMessage.
28 #include "vtkSMStateLocator.h"
29 #include "vtkWeakPointer.h" // needed for the session ref
30 
31 class vtkSMSession;
32 
34 {
35 public:
36  static vtkSMServerStateLocator* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
45  vtkSMSession* GetSession();
46  void SetSession(vtkSMSession* session);
48 
55  bool FindState(vtkTypeUInt32 globalID, vtkSMMessage* stateToFill, bool useParent) override;
56 
57 protected:
59  ~vtkSMServerStateLocator() override;
60 
62 
63 private:
65  void operator=(const vtkSMServerStateLocator&) = delete;
66 };
67 
68 #endif
static vtkSMStateLocator * New()
#define VTKREMOTINGSERVERMANAGER_EXPORT
vtkSMSession is the default ParaView session.
Definition: vtkSMSession.h:35
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.