src
paraview-5.12
Remoting
ServerManager
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
21
class
VTKREMOTINGSERVERMANAGER_EXPORT
vtkSMServerStateLocator
:
public
vtkSMStateLocator
22
{
23
public
:
24
static
vtkSMServerStateLocator
*
New
();
25
vtkTypeMacro(
vtkSMServerStateLocator
,
vtkSMStateLocator
);
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
:
46
vtkSMServerStateLocator
();
47
~
vtkSMServerStateLocator
()
override
;
48
49
vtkWeakPointer<vtkSMSession>
Session
;
50
51
private
:
52
vtkSMServerStateLocator
(
const
vtkSMServerStateLocator
&) =
delete
;
53
void
operator=(
const
vtkSMServerStateLocator
&) =
delete
;
54
};
55
56
#endif
vtkSMStateLocator::New
static vtkSMStateLocator * New()
vtkSMServerStateLocator
Class used to retrieve a given message state based on its GlobalID from the DataServer.
Definition:
vtkSMServerStateLocator.h:21
vtkSMServerStateLocator::Session
vtkWeakPointer< vtkSMSession > Session
Definition:
vtkSMServerStateLocator.h:49
vtkSMSession
Definition:
vtkSMSession.h:22
vtkSMStateLocator.h
vtkIndent
vtkSMMessage
vtkWeakPointer.h
vtkSMStateLocator::FindState
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.
vtkSMStateLocator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSMStateLocator
Class used to retrieve a given message state based on its GlobalID.
Definition:
vtkSMStateLocator.h:23
vtkWeakPointer< vtkSMSession >
vtkSMMessageMinimal.h
Generated by
1.8.17 on Wed Mar 27 2024