CASToR  2.0
Tomographic Reconstruction (PET/SPECT/CT)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#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 113 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)
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 101 of file sOutputManager.hh.

#define DEBUG_VERBOSE (   IGNORED1,
  IGNORED2 
)    ;

Definition at line 145 of file sOutputManager.hh.

#define OS_SEP   "/"

Definition at line 45 of file sOutputManager.hh.

#define QUOTES (   value)    #value

Definition at line 52 of file sOutputManager.hh.

#define TOSTRING (   macro)    QUOTES(macro)

Definition at line 53 of file sOutputManager.hh.

#define VERBOSE_DEBUG_EVENT   6

Definition at line 135 of file sOutputManager.hh.

#define VERBOSE_DEBUG_LIGHT   4

Definition at line 133 of file sOutputManager.hh.

#define VERBOSE_DEBUG_MAX   7

Definition at line 136 of file sOutputManager.hh.

#define VERBOSE_DEBUG_NORMAL   5

Definition at line 134 of file sOutputManager.hh.

#define VERBOSE_DETAIL   3

Definition at line 132 of file sOutputManager.hh.

#define VERBOSE_LIGHT   1

Definition at line 130 of file sOutputManager.hh.

#define VERBOSE_NORMAL   2

Definition at line 131 of file sOutputManager.hh.

Function Documentation

void Exit ( int  code)

Definition at line 47 of file sOutputManager.cc.