13 #ifndef USMODULEEVENT_H
14 #define USMODULEEVENT_H
23 class ModuleEventData;
#define MITKCPPMICROSERVICES_EXPORT
An event from the Micro Services framework describing a module lifecycle change.
ModuleEvent(Type type, Module *module)
Creates a module event of the specified type.
ModuleEvent()
Creates an invalid instance.
ModuleEvent & operator=(const ModuleEvent &other)
Copy assignment operator.
ModuleEvent(const ModuleEvent &other)
Copy constructor.
@ UNLOADED
The module has been unloaded.
@ LOADING
The module is about to be loaded.
@ LOADED
The module has been loaded.
Module * GetModule() const
Returns the module which had a lifecycle change. If this is a null event (default-constructed),...
~ModuleEvent()
Destructor.
bool IsNull() const
Can be used to check if this ModuleEvent instance is valid, or if it has been constructed using the d...
Type GetType() const
Returns the type of lifecycle event.
Represents a CppMicroServices module.
MITKCPPMICROSERVICES_EXPORT std::ostream & operator<<(std::ostream &os, ModuleEvent::Type eventType)
Stream output operator for ModuleEvent::Type.