ACT-CV - Machine Vision for Cognitive Modeling
Classes | Macros
mhexcptn.h File Reference

exceptions and debugging macros More...

#include <string.h>
#include <stdio.h>
Include dependency graph for mhexcptn.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LineException
 simple exception class holding the line in the file More...
 
class  FileLineException
 simple exception class holding the current line and the file name More...
 

Macros

#define MHDBGMSG(f, l, msg)   printf("(DEBUG) %s (%i): %s\n",f,l,msg)
 
#define MHDBGMSG_P(f, l, s, p)   printf("(DEBUG) %s (%i): %s %p\n",f,l,s,p)
 
#define MHDBGMSG_I(f, l, s, i)   printf("(DEBUG) %s (%i): %s %i\n",f,l,s,i)
 
#define MHDBGMSG_MEM(f, l, p, blocks)
 

Detailed Description

exceptions and debugging macros

the MHDEBUGMSG macro family is expanded to nothing when NDEBUG is set at compile time

Definition in file mhexcptn.h.

Macro Definition Documentation

#define MHDBGMSG (   f,
  l,
  msg 
)    printf("(DEBUG) %s (%i): %s\n",f,l,msg)

Definition at line 45 of file mhexcptn.h.

Referenced by ActCvInit(), AddRecognition(), JVM::AttachCurrentThread(), OpticalFlow::Calc(), JVM::CreateJVM(), ResultHolder< _t >::FindFinish(), ResultHolder< _t >::FindFirst(), FindFirstLine(), FindFirstMatch(), FindFirstText(), ResultHolder< _t >::FindNext(), FindNextLine(), FindNextMatch(), FindNextText(), FrameObsWindow::FrameNotify(), MatchObs::FrameNotify(), TextObs::FrameNotify(), AttendedLocObs::FrameNotify(), LineObs::FrameNotifyGray(), FrameObsWindow::FrameObsWindow(), OpenCVFrameSource::GetNextFrame(), RobotFrameSource::GetNextFrame(), TestFrameSource::GetNextFrame(), TestLineFrameSource::GetNextFrame(), TestLineFSStaticErr::GetNextFrame(), Robot::GetScreenCapture(), JVM::JVM(), LineFindFinish(), LineObs::LineObs(), JVM::LoadJvmLib(), FrameLoopImpl::Loop(), main(), MatchImage::Match(), MatchFindFinish(), OpenCVFrameSource::OpenCVFrameSource(), OpticalFlow::PrintInfo(), TextObs::RegionInfoNotify(), ReleaseSource(), ReleaseSourceInternal(), Robot::Robot(), OpticalFlow::SelectFeatures(), SelectFileBasedSource(), SelectSource(), SelectSourceInternal(), FrameLoopImpl::SingleFrame(), TestLines(), TestMatch(), TestText(), TextFindFinish(), TextObs::TextObs(), UpdateAttendedLoc(), AttendedLocObs::UpdateAttendedLoc(), AttendedLocObs::UpdateMousePos(), FrameLoopImpl::WaitForFirstFrame(), FrameLoopImpl::WaitForNextFrame(), WaitForNextFrame(), FrameObsWindow::~FrameObsWindow(), JVM::~JVM(), LineObs::~LineObs(), OpticalFlow::~OpticalFlow(), and Robot::~Robot().

#define MHDBGMSG_I (   f,
  l,
  s,
 
)    printf("(DEBUG) %s (%i): %s %i\n",f,l,s,i)

Definition at line 47 of file mhexcptn.h.

Referenced by OpticalFlow::PrintInfo(), and FrameLoopImpl::WaitForNextFrame().

#define MHDBGMSG_MEM (   f,
  l,
  p,
  blocks 
)
Value:
{printf("(DEBUG) %s %i: memdump %p\n",f,l,p); \
for (int i=0;i<blocks;i++) printf("%02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n", \
*(p+0+i*16), *(p+1+i*16), *(p+2+i*16), *(p+3+i*16), *(p+4+i*16), *(p+5+i*16), *(p+6+i*16), *(p+7+i*16), *(p+8+i*16), *(p+9+i*16), *(p+10+i*16), *(p+11+i*16), *(p+12+i*16), *(p+13+i*16), *(p+14+i*16), *(p+15+i*16));\
}

Definition at line 48 of file mhexcptn.h.

#define MHDBGMSG_P (   f,
  l,
  s,
 
)    printf("(DEBUG) %s (%i): %s %p\n",f,l,s,p)


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)