|
|
typedef void(* | DeathCallback) (const std::string &message) |
| | The type used for the callback function that is triggered after an assertion has failed.
|
| |
|
| std::string | getMessage () |
| |
|
void | flush () |
| | write the current message to the logger
|
| |
Definition at line 271 of file imstkLoggerSynchronous.h.
◆ AssertMessage() [1/3]
◆ AssertMessage() [2/3]
| imstk::AssertMessage::AssertMessage |
( |
const std::unique_ptr< LoggerSynchronous > & |
logger | ) |
|
|
inlineexplicit |
◆ AssertMessage() [3/3]
| imstk::AssertMessage::AssertMessage |
( |
const std::shared_ptr< LoggerSynchronous > & |
logger | ) |
|
|
inlineexplicit |
◆ getFailureCallback()
Get the callback that will currently be called after an assertion has failed. Thread-unsafe if called concurrently from multiple threads, or concurrently with a failing assertion.
- Returns
- The callback.
Definition at line 124 of file imstkLoggerSynchronous.cpp.
◆ setFailureBehaviorToDeath()
| static void imstk::AssertMessage::setFailureBehaviorToDeath |
( |
| ) |
|
|
inlinestatic |
After an assertion has failed, enter the debugger or kill the application in a system-dependent way. Thread-unsafe if called concurrently from multiple threads, or concurrently with a failing assertion.
Definition at line 321 of file imstkLoggerSynchronous.h.
◆ setFailureBehaviorToThrow()
| static void imstk::AssertMessage::setFailureBehaviorToThrow |
( |
| ) |
|
|
inlinestatic |
After an assertion has failed, throw a C++ exception. Thread-unsafe if called concurrently from multiple threads, or concurrently with a failing assertion.
Definition at line 314 of file imstkLoggerSynchronous.h.
◆ setFailureCallback()
After an assertion has failed, call some arbitrary function. The callback function should cause the application (or at least the current thread) to terminate.
Thread-unsafe if called concurrently from multiple threads, or concurrently with a failing assertion.
Definition at line 118 of file imstkLoggerSynchronous.cpp.
The documentation for this class was generated from the following files: