CASToR  3.2
Tomographic Reconstruction (PET/SPECT/CT)
Classes | Macros | Functions
code/include/management/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 code/include/management/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 90 of file code/include/management/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 78 of file code/include/management/sOutputManager.hh.

◆ DEBUG_VERBOSE

#define DEBUG_VERBOSE (   IGNORED1,
  IGNORED2 
)    ;

Definition at line 122 of file code/include/management/sOutputManager.hh.

◆ OS_SEP

#define OS_SEP   "/"

Definition at line 22 of file code/include/management/sOutputManager.hh.

◆ QUOTES

#define QUOTES (   value)    #value

Definition at line 29 of file code/include/management/sOutputManager.hh.

◆ TOSTRING

#define TOSTRING (   macro)    QUOTES(macro)

Definition at line 30 of file code/include/management/sOutputManager.hh.

◆ VERBOSE_DEBUG_EVENT

#define VERBOSE_DEBUG_EVENT   6

Definition at line 112 of file code/include/management/sOutputManager.hh.

◆ VERBOSE_DEBUG_LIGHT

#define VERBOSE_DEBUG_LIGHT   4

Definition at line 110 of file code/include/management/sOutputManager.hh.

◆ VERBOSE_DEBUG_MAX

#define VERBOSE_DEBUG_MAX   7

Definition at line 113 of file code/include/management/sOutputManager.hh.

◆ VERBOSE_DEBUG_NORMAL

#define VERBOSE_DEBUG_NORMAL   5

Definition at line 111 of file code/include/management/sOutputManager.hh.

◆ VERBOSE_DETAIL

#define VERBOSE_DETAIL   3

Definition at line 109 of file code/include/management/sOutputManager.hh.

◆ VERBOSE_LIGHT

#define VERBOSE_LIGHT   1

Definition at line 107 of file code/include/management/sOutputManager.hh.

◆ VERBOSE_NORMAL

#define VERBOSE_NORMAL   2

Definition at line 108 of file code/include/management/sOutputManager.hh.

Function Documentation

◆ Exit()

void Exit ( int  code)

Definition at line 24 of file code/src/management/sOutputManager.cc.