Marsyas  0.5.0-beta1
Public Types | Static Public Member Functions | Static Public Attributes
MrsLog Class Reference

Logging Class. More...

#include <MrsLog.h>

Public Types

typedef void(* log_function_t )(const std::string &msg)

Static Public Member Functions

static void getLogFile ()
static void mrsAssert (const char *strFile, unsigned uLine)
static void mrsDebug (const std::ostringstream &oss)
static void mrsDiagnostic (const std::ostringstream &oss)
static void mrsErr (const std::ostringstream &oss)
static void mrsMessage (const std::ostringstream &oss)
static void mrsWarning (const std::ostringstream &oss)
static void setAllFunctions (log_function_t function)
static void setDebugFunction (log_function_t function)
static void setDiagnosticFunction (log_function_t function)
static void setErrorFunction (log_function_t function)
static void setLogFile (std::string fname)
static void setMessageFunction (log_function_t function)
static void setWarningFunction (log_function_t function)

Static Public Attributes

static bool messages_off_ = false
static bool warnings_off_ = false

Detailed Description

Logging Class.

Logging class for diagnostic, warning, error, debug, etc messages. Can output messages to a log file or std output (i.e. screen).

Definition at line 40 of file MrsLog.h.


Member Typedef Documentation

typedef void(* log_function_t)(const std::string &msg)

Definition at line 43 of file MrsLog.h.


Member Function Documentation

static void getLogFile ( ) [static]
void mrsAssert ( const char *  strFile,
unsigned  uLine 
) [static]

Definition at line 261 of file MrsLog.cpp.

void mrsDebug ( const std::ostringstream &  oss) [static]

Definition at line 230 of file MrsLog.cpp.

void mrsDiagnostic ( const std::ostringstream &  oss) [static]

Definition at line 193 of file MrsLog.cpp.

void mrsErr ( const std::ostringstream &  oss) [static]

Definition at line 120 of file MrsLog.cpp.

void mrsMessage ( const std::ostringstream &  oss) [static]

Definition at line 79 of file MrsLog.cpp.

void mrsWarning ( const std::ostringstream &  oss) [static]

Definition at line 154 of file MrsLog.cpp.

void setAllFunctions ( log_function_t  function) [static]

Definition at line 69 of file MrsLog.cpp.

void setDebugFunction ( log_function_t  function) [static]

Definition at line 59 of file MrsLog.cpp.

void setDiagnosticFunction ( log_function_t  function) [static]

Definition at line 64 of file MrsLog.cpp.

void setErrorFunction ( log_function_t  function) [static]

Definition at line 54 of file MrsLog.cpp.

void setLogFile ( std::string  fname) [static]

Definition at line 39 of file MrsLog.cpp.

void setMessageFunction ( log_function_t  function) [static]

Definition at line 44 of file MrsLog.cpp.

void setWarningFunction ( log_function_t  function) [static]

Definition at line 49 of file MrsLog.cpp.


Field Documentation

bool messages_off_ = false [static]

Definition at line 56 of file MrsLog.h.

bool warnings_off_ = false [static]

Definition at line 55 of file MrsLog.h.


The documentation for this class was generated from the following files: