#include <streambuf>
#include <mex.h>
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 |
a few helpful functions for logging in mex files
Definition in file mexLog.H.
void mexDebug | ( | const std::string & | msg | ) |
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 | ) |