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) (const AssertEvent::Id actionEvent, const char_t *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 |
◆ fireAssert()
static void imt::base::core::diagnostics::AssertActionManager::fireAssert |
( |
const AssertEvent::Id |
actionEvent, |
|
|
const char_t *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 |
( |
void |
| ) |
|
|
static |
◆ registerActionHandler()
Register a new handler for a specific event.
- Parameters
-
handler | Handler to be registered. Must not be NULL |
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: