The AssertActionManager defines some events called AssertActionEvents for which functions can be registered.
More...
#include <Imt.Base.Core.Diagnostics/AssertActionManager.h>
The AssertActionManager defines some events called AssertActionEvents for which functions can be registered.
When the corresponding event occurs the registered function will be called. The AssertActionManager will be used from the assertion macros in Diagnostics.h and DiagnosticsConfigApp.h The later is application dependent.
◆ AssertActionHandler
typedef void(* imt::base::core::diagnostics::AssertActionManager::AssertActionHandler) (AssertEvent const actionEvent, char_t const *const pMessage) |
Define the prototype of a function which can handle an action event.
Such a function can be registered for a particular AssertActionEvent. When such a AssertActionEvent occurs the function will be called
- Parameters
-
actionEvent | The event that has occurred. A function may handles multiple events. |
pMessage | Optional message |
◆ AssertEvent
Defines different assert action events.
Enumerator |
---|
ASSERT_EX_EVENT | Something unexpected happened (it's not safe to continue program execution!)
|
ASSERT_DEBUG_EVENT | Inform developer that something happened (it's ok to continue, not included in release build)
|
◆ fireAssert()
static void imt::base::core::diagnostics::AssertActionManager::fireAssert |
( |
AssertEvent const |
actionEvent, |
|
|
char_t const *const |
pMessage |
|
) |
| |
|
static |
Fire the assertion.
- Parameters
-
actionEvent | AssertEvent |
pMessage | Optional message which contains further information for the event |
◆ initActionManager()
static void imt::base::core::diagnostics::AssertActionManager::initActionManager |
( |
| ) |
|
|
static |
◆ registerActionHandler()
Register a new handler for a specific event.
- Parameters
-
handler | Handler to be registered. Must not be nullptr |
actionEvent | Event for which the handler will be registered |
- Returns
- The former AssertActionHandler
- See also
- LogEvent
The documentation for this class was generated from the following file: