CASToR  3.0
Tomographic Reconstruction (PET/SPECT/CT)
Classes | Macros | 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...
 

Macros

#define OS_SEP   "/"
 
#define QUOTES(value)   #value
 
#define TOSTRING(macro)   QUOTES(macro)
 
#define Cout(MESSAGE)
 
#define Cerr(MESSAGE)
 
#define VERBOSE_LIGHT   1
 
#define VERBOSE_NORMAL   2
 
#define VERBOSE_DETAIL   3
 
#define VERBOSE_DEBUG_LIGHT   4
 
#define VERBOSE_DEBUG_NORMAL   5
 
#define VERBOSE_DEBUG_EVENT   6
 
#define VERBOSE_DEBUG_MAX   7
 
#define DEBUG_VERBOSE(IGNORED1, IGNORED2)   ;
 

Functions

void Exit (int code)
 

Detailed Description

Declaration of class sOutputManager.

Definition in file sOutputManager.hh.

Macro Definition Documentation

◆ Cerr

#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)
static sOutputManager * GetInstance()
Instanciate the singleton object and Initialize member variables if not already done, return a pointer to this object otherwise.

Definition at line 112 of file sOutputManager.hh.

◆ Cout

#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)
static sOutputManager * GetInstance()
Instanciate the singleton object and Initialize member variables if not already done, return a pointer to this object otherwise.

Definition at line 100 of file sOutputManager.hh.

◆ DEBUG_VERBOSE

#define DEBUG_VERBOSE (   IGNORED1,
  IGNORED2 
)    ;

Definition at line 144 of file sOutputManager.hh.

◆ OS_SEP

#define OS_SEP   "/"

Definition at line 44 of file sOutputManager.hh.

◆ QUOTES

#define QUOTES (   value)    #value

Definition at line 51 of file sOutputManager.hh.

◆ TOSTRING

#define TOSTRING (   macro)    QUOTES(macro)

Definition at line 52 of file sOutputManager.hh.

◆ VERBOSE_DEBUG_EVENT

#define VERBOSE_DEBUG_EVENT   6

Definition at line 134 of file sOutputManager.hh.

◆ VERBOSE_DEBUG_LIGHT

#define VERBOSE_DEBUG_LIGHT   4

Definition at line 132 of file sOutputManager.hh.

◆ VERBOSE_DEBUG_MAX

#define VERBOSE_DEBUG_MAX   7

Definition at line 135 of file sOutputManager.hh.

◆ VERBOSE_DEBUG_NORMAL

#define VERBOSE_DEBUG_NORMAL   5

Definition at line 133 of file sOutputManager.hh.

◆ VERBOSE_DETAIL

#define VERBOSE_DETAIL   3

Definition at line 131 of file sOutputManager.hh.

◆ VERBOSE_LIGHT

#define VERBOSE_LIGHT   1

Definition at line 129 of file sOutputManager.hh.

◆ VERBOSE_NORMAL

#define VERBOSE_NORMAL   2

Definition at line 130 of file sOutputManager.hh.

Function Documentation

◆ Exit()

void Exit ( int  code)

Definition at line 46 of file sOutputManager.cc.