mexLog.H File Reference

#include <streambuf>
#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.

Classes

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

Functions

void mexInfo (const std::string &msg)
 writes an info message to mexPrintf
void mexError (const std::string &msg)
 writes an error message
void mexFatal (const std::string &msg)
 writes an error message and leaved the mex file
void mexDebug (const std::string &msg)
 writes a debug message

Detailed Description

a few helpful functions for logging in mex files

Definition in file mexLog.H.


Function Documentation

void mexDebug ( const std::string msg  ) 

writes a debug message

to get printf-style formatting, use sformat() from "Util/sformat.H"

Definition at line 63 of file mexLog.C.

void mexError ( const std::string msg  ) 

writes an error message

to get printf-style formatting, use sformat() from "Util/sformat.H"

Definition at line 51 of file mexLog.C.

Referenced by MexModelManager::parseMexCommandLine(), and MexReturn::~MexReturn().

void mexFatal ( const std::string msg  ) 

writes an error message and leaved the mex file

to get printf-style formatting, use sformat() from "Util/sformat.H"

Definition at line 57 of file mexLog.C.

Referenced by cellArr2ImageSet(), cellArr2ImageSetVec(), MexModelManager::exitMexFunction(), MexModelManager::getExtraMexArg(), ImgVec2mexArr(), mexArr2ImgVec(), mexArr2Point2DVec(), mexArray2Image(), mexArray2RGBImage(), Vector2mexArr(), and MexReturn::~MexReturn().

void mexInfo ( const std::string msg  ) 

writes an info message to mexPrintf

to get printf-style formatting, use sformat() from "Util/sformat.H"

Definition at line 45 of file mexLog.C.

Generated on Sun May 8 08:42:42 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3