Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <usModuleEvent.h>
Public Types | |
enum | Type { LOADED, UNLOADED, LOADING, UNLOADING } |
Public Member Functions | |
ModuleEvent () | |
~ModuleEvent () | |
bool | IsNull () const |
ModuleEvent (Type type, Module *module) | |
ModuleEvent (const ModuleEvent &other) | |
ModuleEvent & | operator= (const ModuleEvent &other) |
Module * | GetModule () const |
Type | GetType () const |
An event from the Micro Services framework describing a module lifecycle change.
ModuleEvent
objects are delivered to listeners connected via ModuleContext::AddModuleListener() when a change occurs in a modules's lifecycle. A type code is used to identify the event type for future extendability.
Definition at line 46 of file usModuleEvent.h.
Enumerator | |
---|---|
LOADED | The module has been loaded. The module's ModuleActivator Load method has been executed. |
UNLOADED | The module has been unloaded. The module's ModuleActivator Unload method has been executed. |
LOADING | The module is about to be loaded. The module's ModuleActivator Load method is about to be called. |
UNLOADING | The module is about to be unloaded. The module's ModuleActivator Unload method is about to be called. |
Definition at line 53 of file usModuleEvent.h.
us::ModuleEvent::ModuleEvent | ( | ) |
Creates an invalid instance.
us::ModuleEvent::~ModuleEvent | ( | ) |
Creates a module event of the specified type.
type | The event type. |
module | The module which had a lifecycle change. |
us::ModuleEvent::ModuleEvent | ( | const ModuleEvent & | other | ) |
Module* us::ModuleEvent::GetModule | ( | ) | const |
Returns the module which had a lifecycle change.
Type us::ModuleEvent::GetType | ( | ) | const |
bool us::ModuleEvent::IsNull | ( | ) | const |
Can be used to check if this ModuleEvent instance is valid, or if it has been constructed using the default constructor.
true
if this event object is valid, false
otherwise. ModuleEvent& us::ModuleEvent::operator= | ( | const ModuleEvent & | other | ) |