C3D Toolkit  Kernel - 118060, Vision - 2.15.0.1825

Handler of fatal errors. More...

#include <tool_err_handling.h>

Static Public Member Functions

static MbResultType GetError ()
 Get the last error.
 
static bool HasError ()
 Is there a fatal error.
 
static MbResultType SetError (MbResultType)
 Register a fatal error. Return this error.
 
static bool IsEnoughMemory (double memRatio=-1)
 Whether is enough memory to work. More...
 
static void Reset ()
 Reset all accumulated data.
 
static bool IsEnabled ()
 Whether the handler of fatal errors is enabled (by default, enabled).
 
static bool Enable (bool enabled=true)
 Enable / disable the handler of fatal errors. Return the previous state.
 

Detailed Description

Handler of fatal errors.

Handler of fatal errors. Before starting error monitoring the Init() function should be called. On exit a faulty region, the Recover() function should be called.

Member Function Documentation

◆ IsEnoughMemory()

static bool FatalErrorHandler::IsEnoughMemory ( double  memRatio = -1)
static

Whether is enough memory to work.

Parameters
[in]memRatio- The maximum percentage of memory usage (with memRatio == -1, the default values are used).

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