MboDebugTrace.h File Reference

Debug trace generator. More...

#include "Mbo.h"
#include "arg_info.h"
#include <stdexcept>

Include dependency graph for MboDebugTrace.h:

Mbo.harg_info.hMboTString.h

This graph shows which files directly or indirectly include this file:

MboTString.hMboSynch.henumset.hMbo.hMboStrMap.hMboStrHelper.hdeque2.hmap2.hMboStrList.hMboIniData.hMboDrawWin.hlist2.hvector2.hMboThread.hMboLockedVar.hMboRefCntPtr.hreallocator.hTDynamicArray.hTStaticArray.henumset.hpp

Go to the source code of this file.

Namespaces

namespace  mbo

Classes

class  mbo::mbo_stack_trace
 Stack Trace storage. More...
class  mbo::mbo_exception< base_exception, _str_type >
 Stack Trace logging exception adapter. More...

Defines

#define FilterExceptionAndTraceInfo0(szFormat)   FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat)
#define FilterExceptionAndTraceInfo1(szFormat, arg1)   FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat, arg1)
#define FilterExceptionAndTraceInfo2(szFormat, arg1, arg2)   FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat, arg1, arg2)
#define FilterExceptionAndTraceInfo3(szFormat, arg1, arg2, arg3)   FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat, arg1, arg2, arg3)
#define FilterExceptionAndTraceInfo4(szFormat, arg1, arg2, arg3, arg4)   FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat, arg1, arg2, arg3, arg4)
#define FilterExceptionAndTrace()   FilterExceptionAndTraceEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__)

Typedefs

typedef void(* mbo::OutputDebugFunc )(const std::string &, void *)
typedef mbo_exception
< std::exception, char * > 
mbo::exception
typedef mbo_exception
< std::bad_alloc, char * > 
mbo::bad_alloc
typedef mbo_exception
< std::domain_error > 
mbo::domain_error
typedef mbo_exception
< std::invalid_argument > 
mbo::invalid_argument
typedef mbo_exception
< std::length_error > 
mbo::length_error
typedef mbo_exception
< std::logic_error > 
mbo::logic_error
typedef mbo_exception
< std::out_of_range > 
mbo::out_of_range
typedef mbo_exception
< std::overflow_error > 
mbo::overflow_error
typedef mbo_exception
< std::range_error > 
mbo::range_error
typedef mbo_exception
< std::runtime_error > 
mbo::runtime_error
typedef mbo_exception
< std::underflow_error > 
mbo::underflow_error

Functions

std::string mbo::MboGetErrorText (DWORD dwLastError)
std::string mbo::vstrprintf (const char *szFormat, va_list vargs)
std::string mbo::strprintf (const char *szFormat,...)
void mbo::OutputDebugTrace (int nSkip=2)
 Output a debug trace using OutputDebugString().
std::string mbo::CreateDebugTrace (int nSkip=2)
 
Returns:
a debug trace

int mbo::FilterExceptionAndTraceInfoEx (unsigned int code, const struct _EXCEPTION_POINTERS *ep, const char *szFile, int nLine, const char *szFormat,...)
 Filter function for __try {} __except() {}.
int mbo::FilterExceptionAndTraceEx (unsigned int code, const struct _EXCEPTION_POINTERS *ep, const char *szFile, int nLine)
 Filter function for __try {} __except() {}.


Detailed Description

Debug trace generator.

Author:
Marcus Boerger (http://marcus-boerger.de/)
Note:
This file is distributed under the LGPL license GNU Lesser General Public License, version 2.1.

Definition in file MboDebugTrace.h.


Define Documentation

 
#define FilterExceptionAndTrace (  )     FilterExceptionAndTraceEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__)

Definition at line 104 of file MboDebugTrace.h.

#define FilterExceptionAndTraceInfo0 ( szFormat   )     FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat)

Definition at line 84 of file MboDebugTrace.h.

#define FilterExceptionAndTraceInfo1 ( szFormat,
arg1   )     FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat, arg1)

Definition at line 85 of file MboDebugTrace.h.

#define FilterExceptionAndTraceInfo2 ( szFormat,
arg1,
arg2   )     FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat, arg1, arg2)

Definition at line 86 of file MboDebugTrace.h.

#define FilterExceptionAndTraceInfo3 ( szFormat,
arg1,
arg2,
arg3   )     FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat, arg1, arg2, arg3)

Definition at line 87 of file MboDebugTrace.h.

#define FilterExceptionAndTraceInfo4 ( szFormat,
arg1,
arg2,
arg3,
arg4   )     FilterExceptionAndTraceInfoEx(GetExceptionCode(), GetExceptionInformation(), __FILE__, __LINE__, szFormat, arg1, arg2, arg3, arg4)

Definition at line 88 of file MboDebugTrace.h.


  Hosted on code.google.com  
© Marcus Börger
Generated on Fri Jan 18 21:21:08 2008 for MBO-lib by doxygen 1.5.4