CASToR  1.0
Tomographic Reconstruction (PET/SPECT)
Classes | Defines | Functions
sOutputManager.hh File Reference

Declaration of class sOutputManager. More...

#include "gVariables.hh"

Go to the source code of this file.

Classes

class  sOutputManager
 Singleton class that manages output writing on disk (images, sinograms, etc).
It also manages logging and printing on screen. More...

Defines

#define OS_SEP   "/"
#define QUOTES(value)   #value
#define TOSTRING(macro)   QUOTES(macro)
#define Cout(MESSAGE)
#define Cerr(MESSAGE)

Functions

void Exit (int code)

Detailed Description

Declaration of class sOutputManager.

Definition in file sOutputManager.hh.


Define Documentation

#define Cerr (   MESSAGE)
Value:
do                                                          \
  {                                                           \
    std::cerr << MESSAGE;                                     \
    sOutputManager* instance = sOutputManager::GetInstance(); \
    if (instance!=NULL)                                       \
    {                                                         \
      ofstream& logMac = instance->GetLogFile();              \
      if (logMac) logMac << MESSAGE;                          \
    }                                                         \
  } while(0)

Definition at line 79 of file sOutputManager.hh.

#define Cout (   MESSAGE)
Value:
do                                                          \
  {                                                           \
    std::cout << MESSAGE;                                     \
    sOutputManager* instance = sOutputManager::GetInstance(); \
    if (instance!=NULL)                                       \
    {                                                         \
      ofstream& logMac = instance->GetLogFile();              \
      if (logMac) logMac << MESSAGE;                          \
    }                                                         \
  } while(0)

Definition at line 67 of file sOutputManager.hh.

#define OS_SEP   "/"

Definition at line 16 of file sOutputManager.hh.

#define QUOTES (   value)    #value

Definition at line 20 of file sOutputManager.hh.

#define TOSTRING (   macro)    QUOTES(macro)

Definition at line 21 of file sOutputManager.hh.


Function Documentation

void Exit ( int  code)

Definition at line 34 of file sOutputManager.cc.

Here is the caller graph for this function:

 All Classes Files Functions Variables Typedefs Defines