ParaView
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 "vtkPVServerManagerCoreModule.h" //needed for exports
27 #include "vtkSMObject.h"
28 #include <vtkWeakPointer.h> // Needed to keep track of the session
29 
30 class vtkSMSession;
32 
33 class VTKPVSERVERMANAGERCORE_EXPORT vtkSMSessionObject : public vtkSMObject
34 {
35 public:
36  static vtkSMSessionObject* New();
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
45  virtual void SetSession(vtkSMSession*);
46  virtual vtkSMSession* GetSession();
48 
52  virtual vtkSMSessionProxyManager* GetSessionProxyManager();
53 
54 protected:
57 
58  // Identifies the session id to which this object is related.
59  vtkWeakPointer<vtkSMSession> Session;
60 
61 private:
62  vtkSMSessionObject(const vtkSMSessionObject&) VTK_DELETE_FUNCTION;
63  void operator=(const vtkSMSessionObject&) VTK_DELETE_FUNCTION;
64 };
65 
66 #endif
superclass for any server manager classes that are related to a session
void PrintSelf(ostream &os, vtkIndent indent)
vtkSMSession is the default ParaView session.
Definition: vtkSMSession.h:35
vtkWeakPointer< vtkSMSession > Session
superclass for most server manager classes
Definition: vtkSMObject.h:31
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
static vtkSMObject * New()