Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
usServiceListenerHook.cpp
Go to the documentation of this file.
1
/*=============================================================================
2
3
Library: CppMicroServices
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics
7
8
Licensed under the Apache License, Version 2.0 (the "License");
9
you may not use this file except in compliance with the License.
10
You may obtain a copy of the License at
11
12
http://www.apache.org/licenses/LICENSE-2.0
13
14
Unless required by applicable law or agreed to in writing, software
15
distributed under the License is distributed on an "AS IS" BASIS,
16
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
See the License for the specific language governing permissions and
18
limitations under the License.
19
20
=============================================================================*/
21
22
#include "
usServiceListenerHook.h
"
23
#include "usServiceListenerHook_p.h"
24
25
US_BEGIN_NAMESPACE
26
27
ServiceListenerHook::~ServiceListenerHook()
28
{
29
}
30
31
ServiceListenerHook::ListenerInfoData::ListenerInfoData(
32
ModuleContext
* mc,
const
ServiceListenerEntry::ServiceListener
& l,
33
void
* data,
const
std::string& filter)
34
: mc(mc)
35
, listener(l)
36
, data(data)
37
, filter(filter)
38
, bRemoved(false)
39
{
40
}
41
42
ServiceListenerHook::ListenerInfoData::~ListenerInfoData()
43
{
44
}
45
46
ServiceListenerHook::ListenerInfo::ListenerInfo(ListenerInfoData* data)
47
: d(data)
48
{
49
}
50
51
ServiceListenerHook::ListenerInfo::ListenerInfo()
52
: d(NULL)
53
{
54
}
55
56
ServiceListenerHook::ListenerInfo::ListenerInfo(
const
ListenerInfo& other)
57
: d(other.d)
58
{
59
}
60
61
ServiceListenerHook::ListenerInfo::~ListenerInfo()
62
{
63
}
64
65
ServiceListenerHook::ListenerInfo& ServiceListenerHook::ListenerInfo::operator=(
const
ListenerInfo& other)
66
{
67
d = other.d;
68
return
*
this
;
69
}
70
71
bool
ServiceListenerHook::ListenerInfo::IsNull()
const
72
{
73
return
!d;
74
}
75
76
ModuleContext
*
ServiceListenerHook::ListenerInfo::GetModuleContext
()
const
77
{
78
return
d->mc;
79
}
80
81
std::string ServiceListenerHook::ListenerInfo::GetFilter()
const
82
{
83
return
d->filter;
84
}
85
86
bool
ServiceListenerHook::ListenerInfo::IsRemoved()
const
87
{
88
return
d->bRemoved;
89
}
90
91
bool
ServiceListenerHook::ListenerInfo::operator==
(
const
ListenerInfo& other)
const
92
{
93
return
d == other.d;
94
}
95
96
US_END_NAMESPACE
ModuleContext
Definition:
usModuleContext.h:91
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
Definition:
mitkInteractionEvent.cpp:77
usServiceListenerHook.h
ServiceListener
US_BEGIN_NAMESPACE typedef US_SERVICE_LISTENER_FUNCTOR ServiceListener
Definition:
usModuleContext.h:36
us::GetModuleContext
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Definition:
usGetModuleContext.h:50
git
MITK
Modules
CppMicroServices
core
src
service
usServiceListenerHook.cpp
Generated on Fri Feb 3 2017 20:52:17 for Medical Imaging Interaction Toolkit by
1.8.9.1