mexLog.h File Reference

#include <streambuf>
#include <iostream>
#include <mex.h>

Include dependency graph for mexLog.h:

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

Go to the source code of this file.

Data Structures

class  MexBuf
 This streambuf is used to re-direct cout and cerr. More...
class  MexBufInit
 This class triggers the redirection of the standard streams at construction. More...

Defines

#define ASSERT(exp)

Functions

void mexInfo (const char *fmt,...)
 writes an info message to mexPrintf
void mexError (const char *fmt,...)
 writes an error message
void mexFatal (const char *fmt,...)
 writes an error message and leaved the mex file
void mexDebug (const char *fmt,...)
 writes a debug message

Variables

static MexBuf mexbuf__
static MexBufInit mexbufInit__ (mexbuf__)


Detailed Description

a few helpful functions for logging in mex files.

Definition in file mexLog.h.


Define Documentation

#define ASSERT ( exp   ) 

Value:

if (!(exp)) mexFatal("ASSERT failed in %s at line %d: " \
                                         #exp,__FILE__,__LINE__);

Definition at line 17 of file mexLog.h.

Referenced by Image::clamp(), Image::clampBottom(), Image::clampTop(), conv2PreserveEnergy(), Image::getHeight(), MexParams::getInput(), Image::getLocalMaxima(), MexParams::getOutput(), Image::getSize(), Image::getVal(), Image::getWidth(), lowPass6xDecX(), lowPass6yDecY(), MexParams::MexParams(), Image::operator *=(), MexParams::setOutput(), and Image::setVal().


Function Documentation

void mexDebug ( const char *  fmt,
  ... 
)

writes a debug message

Definition at line 50 of file mexLog.cpp.

References BUFMAXSIZE.

void mexError ( const char *  fmt,
  ... 
)

writes an error message

Definition at line 28 of file mexLog.cpp.

References BUFMAXSIZE.

Referenced by MexParams::~MexParams().

void mexFatal ( const char *  fmt,
  ... 
)

writes an error message and leaved the mex file

Definition at line 39 of file mexLog.cpp.

References BUFMAXSIZE.

Referenced by MexParams::~MexParams().

void mexInfo ( const char *  fmt,
  ... 
)

writes an info message to mexPrintf

Definition at line 17 of file mexLog.cpp.

References BUFMAXSIZE.


Variable Documentation

MexBuf mexbuf__ [static]

Definition at line 78 of file mexLog.h.

MexBufInit mexbufInit__(mexbuf__) [static]


Generated on Fri Sep 7 13:09:50 2007 for SaliencyToolbox by  doxygen 1.5.2