13 #ifndef USSERVICEEVENT_H
14 #define USSERVICEEVENT_H
18 #error The REGISTERED preprocessor define clashes with the ServiceEvent::REGISTERED\
19 enum type. Try to reorder your includes, compile with WIN32_LEAN_AND_MEAN, or undef\
20 the REGISTERED macro before including this header.
22 #error The REGISTERED preprocessor define clashes with the ServiceEvent::REGISTERED\
23 enum type. Try to reorder your includes or undef the REGISTERED macro before including\
34 class ServiceEventData;
63 REGISTERED = 0x00000001,
73 MODIFIED = 0x00000002,
91 UNREGISTERING = 0x00000004,
105 MODIFIED_ENDMATCH = 0x00000008
162 return GetServiceReference();
#define MITKCPPMICROSERVICES_EXPORT
bool IsNull() const
Can be used to check if this ServiceEvent instance is valid, or if it has been constructed using the ...
ServiceEvent(Type type, const ServiceReferenceBase &reference)
Creates a new service event object.
~ServiceEvent()
Destructor.
Type GetType() const
Returns the type of event.
ServiceReferenceU GetServiceReference() const
Returns a reference to the service that had a change occur in its lifecycle.
ServiceReference< S > GetServiceReference(InterfaceType< S >) const
Returns a typed reference to the service that had a change occur in its lifecycle.
ServiceEvent & operator=(const ServiceEvent &other)
Copy assignment operator.
ServiceEvent(const ServiceEvent &other)
Copy constructor.
ServiceEvent()
Creates an invalid instance.
MITKCPPMICROSERVICES_EXPORT std::ostream & operator<<(std::ostream &os, ModuleEvent::Type eventType)
Stream output operator for ModuleEvent::Type.
A helper type used in several methods to get proper method overload resolutions.