vtkSMSessionObject.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMSessionObject.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 vtkSMSessionObject_h
24 #define vtkSMSessionObject_h
25 
26 #include "vtkRemotingServerManagerModule.h" //needed for exports
27 #include "vtkSMObject.h"
28 #include <vtkWeakPointer.h> // Needed to keep track of the session
29 
30 class vtkSMSession;
32 
34 {
35 public:
36  static vtkSMSessionObject* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
45  virtual void SetSession(vtkSMSession*);
46  virtual vtkSMSession* GetSession();
48 
52  virtual vtkSMSessionProxyManager* GetSessionProxyManager();
53 
54 protected:
56  ~vtkSMSessionObject() override;
57 
62 
78  {
79  vtkSMSessionObject* Parent;
80 
81  public:
84  };
85 
86 private:
87  vtkSMSessionObject(const vtkSMSessionObject&) = delete;
88  void operator=(const vtkSMSessionObject&) = delete;
89 };
90 
91 #endif
superclass for any server manager classes that are related to a session
#define VTKREMOTINGSERVERMANAGER_EXPORT
vtkSMSession is the default ParaView session.
Definition: vtkSMSession.h:35
vtkWeakPointer< vtkSMSession > Session
Identifies the session id to which this object is related.
superclass for most server manager classes
Definition: vtkSMObject.h:29
Helper class designed to call session->PrepareProgress() in constructor and session->CleanupPendingPr...
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
static vtkSMObject * New()
void PrintSelf(ostream &os, vtkIndent indent) override