src
paraview-5.12
Remoting
ServerManager
vtkSMSessionObject.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-License-Identifier: BSD-3-Clause
11
#ifndef vtkSMSessionObject_h
12
#define vtkSMSessionObject_h
13
14
#include "vtkRemotingServerManagerModule.h"
//needed for exports
15
#include "
vtkSMObject.h
"
16
#include <
vtkWeakPointer.h
>
// Needed to keep track of the session
17
18
class
vtkSMSession
;
19
class
vtkSMSessionProxyManager
;
20
21
class
VTKREMOTINGSERVERMANAGER_EXPORT
vtkSMSessionObject
:
public
vtkSMObject
22
{
23
public
:
24
static
vtkSMSessionObject
*
New
();
25
vtkTypeMacro(
vtkSMSessionObject
,
vtkSMObject
);
26
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
27
29
33
virtual
void
SetSession(
vtkSMSession
*);
34
virtual
vtkSMSession
* GetSession();
36
40
virtual
vtkSMSessionProxyManager
* GetSessionProxyManager();
41
42
protected
:
43
vtkSMSessionObject
();
44
~
vtkSMSessionObject
()
override
;
45
49
vtkWeakPointer<vtkSMSession>
Session
;
50
65
class
VTKREMOTINGSERVERMANAGER_EXPORT
vtkScopedMonitorProgress
66
{
67
vtkSMSessionObject
* Parent;
68
69
public
:
70
vtkScopedMonitorProgress
(
vtkSMSessionObject
* parent);
71
~
vtkScopedMonitorProgress
();
72
};
73
74
private
:
75
vtkSMSessionObject
(
const
vtkSMSessionObject
&) =
delete
;
76
void
operator=(
const
vtkSMSessionObject
&) =
delete
;
77
};
78
79
#endif
vtkSMSessionProxyManager
Definition:
vtkSMSessionProxyManager.h:135
vtkSMObject
superclass for most server manager classes
Definition:
vtkSMObject.h:17
vtkSMObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSMSessionObject::Session
vtkWeakPointer< vtkSMSession > Session
Identifies the session id to which this object is related.
Definition:
vtkSMSessionObject.h:49
vtkSMObject.h
vtkSMSessionObject::vtkScopedMonitorProgress
Helper class designed to call session->PrepareProgress() in constructor and session->CleanupPendingPr...
Definition:
vtkSMSessionObject.h:65
vtkSMSession
Definition:
vtkSMSession.h:22
vtkIndent
vtkWeakPointer.h
vtkSMSessionObject
superclass for any server manager classes that are related to a session
Definition:
vtkSMSessionObject.h:21
vtkSMObject::New
static vtkSMObject * New()
vtkWeakPointer< vtkSMSession >
Generated by
1.8.17 on Wed Mar 27 2024