Remoting
ClientServerStream
vtkClientServerID.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: ParaView
4
Module: vtkClientServerID.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
=========================================================================*/
25
#ifndef vtkClientServerID_h
26
#define vtkClientServerID_h
27
28
#include "
vtkIOStream.h
"
// Needed for operator <<
29
#include "
vtkRemotingClientServerStreamModule.h
"
// Top-level vtkClientServer header.
30
#include "
vtkSystemIncludes.h
"
// vtkTypeUInt32
31
32
struct
VTKREMOTINGCLIENTSERVERSTREAM_EXPORT
vtkClientServerID
33
{
34
vtkClientServerID
()
35
: ID(0)
36
{
37
}
38
explicit
vtkClientServerID
(vtkTypeUInt32
id
)
39
: ID(id)
40
{
41
}
42
43
bool
IsNull
() {
return
this->ID == 0; }
44
void
SetToNull
() { this->ID = 0; }
45
46
// Convenience operators.
47
bool
operator<
(
const
vtkClientServerID
& i)
const
{
return
this->ID < i.
ID
; }
48
bool
operator==
(
const
vtkClientServerID
& i)
const
{
return
this->ID == i.
ID
; }
49
bool
operator!=
(
const
vtkClientServerID
& i)
const
{
return
this->ID != i.
ID
; }
50
// The identifying integer.
51
vtkTypeUInt32
ID
;
52
};
53
54
VTKREMOTINGCLIENTSERVERSTREAM_EXPORT
ostream&
operator<<
(ostream& os,
const
vtkClientServerID
&
id
);
55
VTKREMOTINGCLIENTSERVERSTREAM_EXPORT
vtkOStreamWrapper
&
operator<<
(
56
vtkOStreamWrapper
& os,
const
vtkClientServerID
&
id
);
57
58
#endif
59
// VTK-HeaderTest-Exclude: vtkClientServerID.h
vtkSystemIncludes.h
vtkClientServerID::operator!=
bool operator!=(const vtkClientServerID &i) const
Definition:
vtkClientServerID.h:49
vtkClientServerID::SetToNull
void SetToNull()
Definition:
vtkClientServerID.h:44
operator<<
VTKREMOTINGCLIENTSERVERSTREAM_EXPORT ostream & operator<<(ostream &os, const vtkClientServerID &id)
vtkClientServerID::vtkClientServerID
vtkClientServerID()
Definition:
vtkClientServerID.h:34
vtkClientServerID::IsNull
bool IsNull()
Definition:
vtkClientServerID.h:43
vtkClientServerID::operator<
bool operator<(const vtkClientServerID &i) const
Definition:
vtkClientServerID.h:47
vtkOStreamWrapper
vtkClientServerID::ID
vtkTypeUInt32 ID
Definition:
vtkClientServerID.h:51
vtkRemotingClientServerStreamModule.h
VTKREMOTINGCLIENTSERVERSTREAM_EXPORT
#define VTKREMOTINGCLIENTSERVERSTREAM_EXPORT
Definition:
vtkRemotingClientServerStreamModule.h:15
vtkClientServerID
Identifier for a ClientServer object.
Definition:
vtkClientServerID.h:32
vtkIOStream.h
vtkClientServerID::vtkClientServerID
vtkClientServerID(vtkTypeUInt32 id)
Definition:
vtkClientServerID.h:38
vtkClientServerID::operator==
bool operator==(const vtkClientServerID &i) const
Definition:
vtkClientServerID.h:48
Generated by
1.8.13 on Sat Mar 25 2023