13 #ifndef USSERVICELISTENERHOOK_H
14 #define USSERVICELISTENERHOOK_H
25 class ServiceListenerEntry;
41 class ListenerInfoData;
128 friend class ServiceListenerEntry;
151 virtual void Added(const std::vector<ListenerInfo>& listeners) = 0;
162 virtual void Removed(const std::vector<ListenerInfo>& listeners) = 0;
170 return std::hash<const us::ServiceListenerHook::ListenerInfoData*>()(arg.d.
Data());
#define MITKCPPMICROSERVICES_EXPORT
A pointer to explicitly shared data requiring manual detach for copy-on-write.
std::size_t operator()(const us::ServiceListenerHook::ListenerInfo &arg) const
Information about a Service Listener. This class describes the module which added the Service Listene...
~ListenerInfo()
Destructor.
ListenerInfo()
Default constructor. Creates an invalid ListenerInfo instance.
std::string GetFilter() const
Return the filter string with which the listener was added.
ListenerInfo & operator=(const ListenerInfo &other)
Copy assignment operator.
bool IsRemoved() const
Return the state of the listener for this addition and removal life cycle. Initially this method will...
ModuleContext * GetModuleContext() const
Return the context of the module which added the listener.
bool operator==(const ListenerInfo &other) const
Compares this ListenerInfo to another ListenerInfo. Two.
ListenerInfo(const ListenerInfo &other)
Copy constructor.
bool IsNull() const
Can be used to check if this ListenerInfo instance is valid, or if it has been constructed using the ...
Service Listener Hook Service.