Download Source Code

CvErr Class Reference

Provides error logging interface. More...

#include <vErr.h>

Collaboration diagram for CvErr:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CvErr ()
 Constructor.
virtual ~CvErr ()
 Destructor.

Static Public Member Functions

static HRESULT Succeeded (HRESULT hr)
 Call to log success.
static HRESULT Failed (HRESULT hr)
 Call to log failure.
static LONG WINAPI ExceptionHandler (struct _EXCEPTION_POINTERS *ExceptionInfo)
 Windows Exception API callback function.
static BOOL CreateErrorLog (BOOL bCrash, BOOL bTest)
 Creates error logs.
static BOOL SetDefaultExceptionHandler ()
 Call to use the default error and crash reporting.

Static Public Attributes

static CErrLogm_errlog = NULL
 Static error log instance.

Detailed Description

Provides error logging interface.

Provides error logging


Member Function Documentation

BOOL CvErr::CreateErrorLog BOOL  bCrash,
BOOL  bTest
[static]
 

Creates error logs.

Parameters:
[in] bCrash - Non-zero if you want crash logs written
[in] bTest - Non-zero to flag as test
Returns:
Non-zero if success
See also:

LONG WINAPI CvErr::ExceptionHandler struct _EXCEPTION_POINTERS *  ExceptionInfo  )  [static]
 

Windows Exception API callback function.

Parameters:
[in] ExceptionInfo - Exception information structure

HRESULT CvErr::Failed HRESULT  hr  )  [static]
 

Call to log failure.

Parameters:
[in] hr - Error code
Returns:
See also:

BOOL CvErr::SetDefaultExceptionHandler  )  [static]
 

Call to use the default error and crash reporting.

Returns:
Non-zero if handler was installed
See also:

HRESULT CvErr::Succeeded HRESULT  hr  )  [static]
 

Call to log success.

Parameters:
[in] hr - Error code
Returns:
See also:


The documentation for this class was generated from the following files:
  • inc/vErr.h
  • vErr.cpp
Copyright Robert Umbehant
This documentation is covered by the LGPL