CASToR  1.1
Tomographic Reconstruction (PET/SPECT)
 All Classes Files Functions Variables Typedefs 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 90 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 78 of file sOutputManager.hh.

#define DEBUG_VERBOSE (   IGNORED1,
  IGNORED2 
)    ;

Definition at line 122 of file sOutputManager.hh.

#define OS_SEP   "/"

Definition at line 22 of file sOutputManager.hh.

#define QUOTES (   value)    #value

Definition at line 29 of file sOutputManager.hh.

#define TOSTRING (   macro)    QUOTES(macro)

Definition at line 30 of file sOutputManager.hh.

#define VERBOSE_DEBUG_EVENT   6

Definition at line 112 of file sOutputManager.hh.

#define VERBOSE_DEBUG_LIGHT   4

Definition at line 110 of file sOutputManager.hh.

#define VERBOSE_DEBUG_MAX   7

Definition at line 113 of file sOutputManager.hh.

#define VERBOSE_DEBUG_NORMAL   5

Definition at line 111 of file sOutputManager.hh.

#define VERBOSE_DETAIL   3

Definition at line 109 of file sOutputManager.hh.

#define VERBOSE_LIGHT   1

Definition at line 107 of file sOutputManager.hh.

#define VERBOSE_NORMAL   2

Definition at line 108 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: