#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__) |
Definition in file mexLog.h.
#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().
void mexDebug | ( | const char * | fmt, | |
... | ||||
) |
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.
MexBufInit mexbufInit__(mexbuf__) [static] |