OpenWalnut  1.5.0dev
Public Member Functions | Protected Attributes | List of all members
WModuleCrashEvent Class Reference

Event signalling a new module has been associated with the root container in the kernel. More...

#include <WModuleCrashEvent.h>

+ Inheritance diagram for WModuleCrashEvent:
+ Collaboration diagram for WModuleCrashEvent:

Public Member Functions

 WModuleCrashEvent (std::shared_ptr< WModule > module, std::string message)
 Creates a new event instance denoting that the specified module got associated in the root container. More...
 
virtual ~WModuleCrashEvent ()
 Destructor. More...
 
std::shared_ptr< WModulegetModule ()
 Getter for the module that got associated. More...
 
std::string getMessage ()
 The crash message. More...
 

Protected Attributes

std::shared_ptr< WModulem_module
 The module that got associated. More...
 
std::string m_message
 The crash message. More...
 

Detailed Description

Event signalling a new module has been associated with the root container in the kernel.

Please note that it is possible that the module is already marked as "ready" while processing this event due to the multithreading.

Definition at line 39 of file WModuleCrashEvent.h.

Constructor & Destructor Documentation

◆ WModuleCrashEvent()

WModuleCrashEvent::WModuleCrashEvent ( std::shared_ptr< WModule module,
std::string  message 
)

Creates a new event instance denoting that the specified module got associated in the root container.

Parameters
modulethe module that switched its state.
messagethe crash message.

Definition at line 31 of file WModuleCrashEvent.cpp.

◆ ~WModuleCrashEvent()

WModuleCrashEvent::~WModuleCrashEvent ( )
virtual

Destructor.

Definition at line 39 of file WModuleCrashEvent.cpp.

Member Function Documentation

◆ getMessage()

std::string WModuleCrashEvent::getMessage ( )

The crash message.

Returns
the crash message.

Definition at line 49 of file WModuleCrashEvent.cpp.

References m_message.

Referenced by WMainWindow::event().

+ Here is the caller graph for this function:

◆ getModule()

std::shared_ptr< WModule > WModuleCrashEvent::getModule ( )

Getter for the module that got associated.

Returns
the module.

Definition at line 44 of file WModuleCrashEvent.cpp.

References m_module.

Referenced by WQtNetworkEditor::event(), and WMainWindow::event().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_message

std::string WModuleCrashEvent::m_message
protected

The crash message.

Definition at line 78 of file WModuleCrashEvent.h.

Referenced by getMessage().

◆ m_module

std::shared_ptr< WModule > WModuleCrashEvent::m_module
protected

The module that got associated.

Definition at line 73 of file WModuleCrashEvent.h.

Referenced by getModule().


The documentation for this class was generated from the following files: