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
static MexBufInit mexbufInit__ (mexbuf__)

Variables

static MexBuf mexbuf__


Detailed Description

a few helpful functions for logging in mex files.

Definition in file mexLog.h.


Define Documentation

#define ASSERT ( exp   ) 


Function Documentation

static MexBufInit @9::mexbufInit__ ( mexbuf__   )  [static]

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.


Generated on Mon Aug 4 21:50:54 2008 for SaliencyToolbox by  doxygen 1.5.6