FairRoot/PandaRoot
Classes | Static Public Member Functions | Static Protected Attributes | List of all members
Photospp::Log Class Reference

#include <Log.h>

Classes

struct  Pointer
 

Static Public Member Functions

static void Summary ()
 
static void SummaryAtExit ()
 
static void AddDecay (int type)
 
static ostream & Debug (unsigned short int code=0, bool count=true)
 
static ostream & Info (bool count=true)
 
static ostream & Warning (bool count=true)
 
static ostream & Error (bool count=true)
 
static void LogInfo (bool flag=true)
 
static void LogWarning (bool flag=true)
 
static void LogError (bool flag=true)
 
static void LogAll (bool flag=true)
 
static void LogPhlupa (int from, int to)
 
static void LogDebug (unsigned short s=0, unsigned short e=65535)
 
static void Assert (bool check, char *text=NULL)
 
static void Fatal (string text, unsigned short int code=0)
 
static void Fatal (unsigned short int code=0)
 
static void RedirectOutput (void(*func)(), ostream &where=*out)
 
static void RedirectOutput (ostream &where=*out)
 
static void RevertOutput ()
 
static void IgnoreFailedAssert (bool flag=true)
 
static void IgnoreRedirection (bool flag=true)
 
static void IgnoreFatal (unsigned short s=0, unsigned short e=65535)
 
static void SetOutput (ostream *newOut)
 
static void SetOutput (ostream &newOut)
 
static void SetWarningLimit (int x)
 
static void Summary ()
 
static void SummaryAtExit ()
 
static void AddDecay (int type)
 
static ostream & Debug (unsigned short int code=0, bool count=true)
 
static ostream & Info (bool count=true)
 
static ostream & Warning (bool count=true)
 
static ostream & Error (bool count=true)
 
static void LogInfo (bool flag=true)
 
static void LogWarning (bool flag=true)
 
static void LogError (bool flag=true)
 
static void LogAll (bool flag=true)
 
static void LogPhlupa (int from, int to)
 
static void LogDebug (unsigned short s=0, unsigned short e=65535)
 
static void Assert (bool check, char *text=NULL)
 
static void Fatal (string text, unsigned short int code=0)
 
static void Fatal (unsigned short int code=0)
 
static void RedirectOutput (void(*func)(), ostream &where=*out)
 
static void RedirectOutput (ostream &where=*out)
 
static void RevertOutput ()
 
static void IgnoreFailedAssert (bool flag=true)
 
static void IgnoreRedirection (bool flag=true)
 
static void IgnoreFatal (unsigned short s=0, unsigned short e=65535)
 
static void SetOutput (ostream *newOut)
 
static void SetOutput (ostream &newOut)
 
static void SetWarningLimit (int x)
 

Static Protected Attributes

static streambuf * bCout =cout.rdbuf()
 
static streambuf * bCerr =cerr.rdbuf()
 
static ostream * out =&cout
 
static stringstream buf
 
static int warnLimit =100
 
static int decays [4] = {0}
 
static int dCount =0
 
static int dRangeS =65535
 
static int dRangeE =65534
 
static int faCount =0
 
static int faRangeS =65535
 
static int faRangeE =65534
 
static int iCount =0
 
static int wCount =0
 
static int eCount =0
 
static int asCount =0
 
static int asFailedCount =0
 
static bool iAction =1
 
static bool wAction =1
 
static bool eAction =1
 
static bool asAction =1
 
static bool rAction =1
 
static list< Pointer * > * PointerList = NULL
 

Detailed Description

Definition at line 33 of file Log.h.

Member Function Documentation

void Photospp::Log::AddDecay ( int  type)
static

Adds the decay to the counter. The type is: 0 - gun, 1 - no mothers & grandmothers, 2 - no mothers, 3 - ok.

Definition at line 25 of file Log.cxx.

References decays.

26 {
27  decays[type]++;
28 }
static int decays[4]
Definition: Log.h:118
static void Photospp::Log::AddDecay ( int  type)
static

Adds the decay to the counter. The type is: 0 - gun, 1 - no mothers & grandmothers, 2 - no mothers, 3 - ok.

static void Photospp::Log::Assert ( bool  check,
char *  text = NULL 
)
static

Asserts logical value. If the assertion fails, the default message or 'text' will be printed and the program will terminate. Program termination can be suppressed by Log::IgnoreFailedAsserts();

void Photospp::Log::Assert ( bool  check,
char *  text = NULL 
)
static

Asserts logical value. If the assertion fails, the default message or 'text' will be printed and the program will terminate. Program termination can be suppressed by Log::IgnoreFailedAsserts();

Definition at line 72 of file Log.cxx.

References asAction, asCount, asFailedCount, exit(), and out.

73 {
74  ++asCount;
75  if(check) return;
76  ++asFailedCount;
77  if(text==NULL) *out<<"ASSERT from PHOTOS:"<<endl<<"Assertion failed. "<<endl;
78  else *out<<"ASSERT from PHOTOS:"<<endl<<"Assertion failed: "<<text<<endl;
79  if(asAction) exit(-1);
80 }
exit(0)
static ostream * out
Definition: Log.h:115
static int asFailedCount
Definition: Log.h:120
static bool asAction
Definition: Log.h:121
static int asCount
Definition: Log.h:120
ostream & Photospp::Log::Debug ( unsigned short int  code = 0,
bool  count = true 
)
static

Four logging entries. Usage: Log::Info()<<"Logging some info: "<<8<<" > "<<7.9<<endl; Use Log::Info(false) if You don't want the message to be counted.

Definition at line 30 of file Log.cxx.

References buf, dCount, dRangeE, dRangeS, and out.

Referenced by Photospp::PhotosBranch::createBranches(), Photospp::PhotosEvent::filterParticles(), Photospp::PhotosRandom::initialize(), Photospp::PhotosBranch::PhotosBranch(), and Photospp::PhotosBranch::process().

31 {
32  if(count) ++dCount;
33  if(code>=dRangeS && code<=dRangeE ) return *out<<"DEBUG("<<code<<") from PHOTOS:"<<endl;
34  return buf.seekp(0);
35 }
static ostream * out
Definition: Log.h:115
static int dRangeE
Definition: Log.h:119
static stringstream buf
Definition: Log.h:116
static int dRangeS
Definition: Log.h:119
int count
static int dCount
Definition: Log.h:119
static ostream& Photospp::Log::Debug ( unsigned short int  code = 0,
bool  count = true 
)
static

Four logging entries. Usage: Log::Info()<<"Logging some info: "<<8<<" > "<<7.9<<endl; Use Log::Info(false) if You don't want the message to be counted.

static ostream& Photospp::Log::Error ( bool  count = true)
static
ostream & Photospp::Log::Error ( bool  count = true)
static

Definition at line 64 of file Log.cxx.

References buf, eAction, eCount, and out.

Referenced by Photospp::PhotosHepMCParticle::createSelfDecayVertex().

65 {
66  if(count) ++eCount;
67  if(eAction) return *out<<"ERROR from PHOTOS:"<<endl;
68  buf.seekp(0);
69  return buf;
70 }
static ostream * out
Definition: Log.h:115
static stringstream buf
Definition: Log.h:116
static bool eAction
Definition: Log.h:121
int count
static int eCount
Definition: Log.h:120
static void Photospp::Log::Fatal ( string  text,
unsigned short int  code = 0 
)
static

Terminates the program with added default message or 'text'. It can be suppressed by Log::IgnoreFatal();

static void Photospp::Log::Fatal ( string  text,
unsigned short int  code = 0 
)
static
static void Photospp::Log::Fatal ( unsigned short int  code = 0)
inlinestatic

Definition at line 77 of file Log.h.

References Fatal().

Referenced by Fatal().

77 { Fatal(NULL,code); }
static void Fatal(string text, unsigned short int code=0)
static void Photospp::Log::Fatal ( unsigned short int  code = 0)
inlinestatic

Definition at line 77 of file 3.52/src/utilities/Log.h.

References Fatal().

Referenced by Fatal().

77 { Fatal(NULL,code); }
static void Fatal(string text, unsigned short int code=0)
static void Photospp::Log::IgnoreFailedAssert ( bool  flag = true)
inlinestatic

Do not exit when Log::Assert() check is false. The number of failed asserts will be listed in the summary.

Definition at line 94 of file Log.h.

References asAction.

94 { asAction=!flag; }
static bool asAction
Definition: Log.h:121
static void Photospp::Log::IgnoreFailedAssert ( bool  flag = true)
inlinestatic

Do not exit when Log::Assert() check is false. The number of failed asserts will be listed in the summary.

Definition at line 94 of file 3.52/src/utilities/Log.h.

References asAction.

94 { asAction=!flag; }
static bool asAction
Definition: Log.h:121
static void Photospp::Log::IgnoreFatal ( unsigned short  s = 0,
unsigned short  e = 65535 
)
inlinestatic

Do not exit when Log::Fatal() with the code within the provided range is called. The number of ignored fatal errors will be listed in the summary.

Definition at line 102 of file Log.h.

References faRangeE, faRangeS, and s.

102 { faRangeS=s; faRangeE=e; }
static int faRangeS
Definition: Log.h:119
TLorentzVector s
Definition: Pnd2DStar.C:50
static int faRangeE
Definition: Log.h:119
static void Photospp::Log::IgnoreFatal ( unsigned short  s = 0,
unsigned short  e = 65535 
)
inlinestatic

Do not exit when Log::Fatal() with the code within the provided range is called. The number of ignored fatal errors will be listed in the summary.

Definition at line 102 of file 3.52/src/utilities/Log.h.

References faRangeE, faRangeS, and s.

102 { faRangeS=s; faRangeE=e; }
static int faRangeS
Definition: Log.h:119
TLorentzVector s
Definition: Pnd2DStar.C:50
static int faRangeE
Definition: Log.h:119
static void Photospp::Log::IgnoreRedirection ( bool  flag = true)
inlinestatic

Ignores redirections of functions' output. The function will still be called in a normal way.

Definition at line 98 of file 3.52/src/utilities/Log.h.

References rAction.

98 { rAction=!flag; }
static bool rAction
Definition: Log.h:121
static void Photospp::Log::IgnoreRedirection ( bool  flag = true)
inlinestatic

Ignores redirections of functions' output. The function will still be called in a normal way.

Definition at line 98 of file Log.h.

References rAction.

98 { rAction=!flag; }
static bool rAction
Definition: Log.h:121
ostream & Photospp::Log::Info ( bool  count = true)
static

Definition at line 38 of file Log.cxx.

References buf, iAction, iCount, and out.

Referenced by Photospp::PhotosDebugRandom::print(), Photospp::PhotosHEPEVTEvent::print(), and Photospp::Photos::setStopAtCriticalError().

39 {
40  if(count) ++iCount;
41  if(iAction) return *out<<"INFO from PHOTOS:"<<endl;
42  return buf.seekp(0);
43 }
static ostream * out
Definition: Log.h:115
static int iCount
Definition: Log.h:120
static stringstream buf
Definition: Log.h:116
static bool iAction
Definition: Log.h:121
int count
static ostream& Photospp::Log::Info ( bool  count = true)
static
static void Photospp::Log::LogAll ( bool  flag = true)
inlinestatic

Definition at line 60 of file 3.52/src/utilities/Log.h.

References dRangeE, dRangeS, eAction, iAction, and wAction.

60 { iAction=wAction=eAction=flag; dRangeS=0; dRangeE=65535; }
static int dRangeE
Definition: Log.h:119
static bool wAction
Definition: Log.h:121
static bool iAction
Definition: Log.h:121
static int dRangeS
Definition: Log.h:119
static bool eAction
Definition: Log.h:121
static void Photospp::Log::LogAll ( bool  flag = true)
inlinestatic

Definition at line 60 of file Log.h.

References dRangeE, dRangeS, eAction, iAction, and wAction.

60 { iAction=wAction=eAction=flag; dRangeS=0; dRangeE=65535; }
static int dRangeE
Definition: Log.h:119
static bool wAction
Definition: Log.h:121
static bool iAction
Definition: Log.h:121
static int dRangeS
Definition: Log.h:119
static bool eAction
Definition: Log.h:121
static void Photospp::Log::LogDebug ( unsigned short  s = 0,
unsigned short  e = 65535 
)
inlinestatic

Sets the range of debug codes that will be printed. By default, the debug messages are turned off.

Definition at line 67 of file 3.52/src/utilities/Log.h.

References dRangeE, dRangeS, and s.

67 { dRangeS=s; dRangeE=e; }
TLorentzVector s
Definition: Pnd2DStar.C:50
static int dRangeE
Definition: Log.h:119
static int dRangeS
Definition: Log.h:119
static void Photospp::Log::LogDebug ( unsigned short  s = 0,
unsigned short  e = 65535 
)
inlinestatic

Sets the range of debug codes that will be printed. By default, the debug messages are turned off.

Definition at line 67 of file Log.h.

References dRangeE, dRangeS, and s.

67 { dRangeS=s; dRangeE=e; }
TLorentzVector s
Definition: Pnd2DStar.C:50
static int dRangeE
Definition: Log.h:119
static int dRangeS
Definition: Log.h:119
static void Photospp::Log::LogError ( bool  flag = true)
inlinestatic

Definition at line 58 of file 3.52/src/utilities/Log.h.

References eAction.

58 { eAction=flag; }
static bool eAction
Definition: Log.h:121
static void Photospp::Log::LogError ( bool  flag = true)
inlinestatic

Definition at line 58 of file Log.h.

References eAction.

58 { eAction=flag; }
static bool eAction
Definition: Log.h:121
static void Photospp::Log::LogInfo ( bool  flag = true)
inlinestatic

Turns off or on particular types of messages By default, only debugging messages are turned off.

Definition at line 56 of file Log.h.

References iAction.

56 { iAction=flag; }
static bool iAction
Definition: Log.h:121
static void Photospp::Log::LogInfo ( bool  flag = true)
inlinestatic

Turns off or on particular types of messages By default, only debugging messages are turned off.

Definition at line 56 of file 3.52/src/utilities/Log.h.

References iAction.

56 { iAction=flag; }
static bool iAction
Definition: Log.h:121
static void Photospp::Log::LogPhlupa ( int  from,
int  to 
)
inlinestatic

Definition at line 63 of file 3.52/src/utilities/Log.h.

References phlupy_.

63 { phlupy_.ipoinm=from; phlupy_.ipoin=to; }
struct @25 phlupy_
static void Photospp::Log::LogPhlupa ( int  from,
int  to 
)
inlinestatic

Definition at line 63 of file Log.h.

References phlupy_.

63 { phlupy_.ipoinm=from; phlupy_.ipoin=to; }
struct @25 phlupy_
static void Photospp::Log::LogWarning ( bool  flag = true)
inlinestatic

Definition at line 57 of file 3.52/src/utilities/Log.h.

References wAction.

57 { wAction=flag; }
static bool wAction
Definition: Log.h:121
static void Photospp::Log::LogWarning ( bool  flag = true)
inlinestatic

Definition at line 57 of file Log.h.

References wAction.

57 { wAction=flag; }
static bool wAction
Definition: Log.h:121
void Photospp::Log::RedirectOutput ( void(*)()  func,
ostream &  where = *out 
)
static

Redirects output to log. Redirection can be done for a block of code or for one function only. Redirection can be turned off by using Log::IgnoreRedirection(); If the target is one of the log streams (for example): Log::RedirectOutput( someFunction, Log::Info() ); You can turn the function's messages off by turning the apropriate log entries off. The redirected code will still be executed, only messages are redirected.

Definition at line 90 of file Log.cxx.

References bCerr, bCout, func, and rAction.

Referenced by Photospp::PhotosHEPEVTParticle::checkMomentumConservation(), Photospp::PhotosHepMCParticle::checkMomentumConservation(), and Photospp::PhotosDebugRandom::print().

91 {
92 
93  if(!rAction) { func(); return; }
94  cout.rdbuf(where.rdbuf());
95  cerr.rdbuf(where.rdbuf());
96  where<<endl;
97  func();
98  cout.rdbuf(bCout);
99  cerr.rdbuf(bCerr);
100 }
TF1 * func
static streambuf * bCout
Definition: Log.h:114
static bool rAction
Definition: Log.h:121
static streambuf * bCerr
Definition: Log.h:114
static void Photospp::Log::RedirectOutput ( void(*)()  func,
ostream &  where = *out 
)
static

Redirects output to log. Redirection can be done for a block of code or for one function only. Redirection can be turned off by using Log::IgnoreRedirection(); If the target is one of the log streams (for example): Log::RedirectOutput( someFunction, Log::Info() ); You can turn the function's messages off by turning the apropriate log entries off. The redirected code will still be executed, only messages are redirected.

void Photospp::Log::RedirectOutput ( ostream &  where = *out)
static

Definition at line 102 of file Log.cxx.

References rAction.

103 {
104  if(!rAction) return;
105  cout.rdbuf(where.rdbuf());
106  cerr.rdbuf(where.rdbuf());
107  where<<endl;
108 }
static bool rAction
Definition: Log.h:121
static void Photospp::Log::RedirectOutput ( ostream &  where = *out)
static
static void Photospp::Log::RevertOutput ( )
inlinestatic

WARNING! If You're redirecting more than one function, do not forget to use RevertOutput() afterwards.

Definition at line 90 of file Log.h.

References bCerr, and bCout.

Referenced by Photospp::PhotosHEPEVTParticle::checkMomentumConservation(), Photospp::PhotosHepMCParticle::checkMomentumConservation(), and Photospp::PhotosDebugRandom::print().

90 { std::cout.rdbuf(bCout); std::cerr.rdbuf(bCerr); }
static streambuf * bCout
Definition: Log.h:114
static streambuf * bCerr
Definition: Log.h:114
static void Photospp::Log::RevertOutput ( )
inlinestatic

WARNING! If You're redirecting more than one function, do not forget to use RevertOutput() afterwards.

Definition at line 90 of file 3.52/src/utilities/Log.h.

References bCerr, and bCout.

90 { std::cout.rdbuf(bCout); std::cerr.rdbuf(bCerr); }
static streambuf * bCout
Definition: Log.h:114
static streambuf * bCerr
Definition: Log.h:114
static void Photospp::Log::SetOutput ( ostream *  newOut)
inlinestatic

Change the output of the logged messages. Log::SetOutput(cerr); //changes the output to cerr Log::SetOutput(new ofstream("log.txt")); //changes the output to a file "log.txt"

Definition at line 107 of file Log.h.

References out.

107 { out=newOut; }
static ostream * out
Definition: Log.h:115
static void Photospp::Log::SetOutput ( ostream *  newOut)
inlinestatic

Change the output of the logged messages. Log::SetOutput(cerr); //changes the output to cerr Log::SetOutput(new ofstream("log.txt")); //changes the output to a file "log.txt"

Definition at line 107 of file 3.52/src/utilities/Log.h.

References out.

107 { out=newOut; }
static ostream * out
Definition: Log.h:115
static void Photospp::Log::SetOutput ( ostream &  newOut)
inlinestatic

Definition at line 108 of file 3.52/src/utilities/Log.h.

References out.

108 { out=&newOut; }
static ostream * out
Definition: Log.h:115
static void Photospp::Log::SetOutput ( ostream &  newOut)
inlinestatic

Definition at line 108 of file Log.h.

References out.

108 { out=&newOut; }
static ostream * out
Definition: Log.h:115
static void Photospp::Log::SetWarningLimit ( int  x)
inlinestatic

Change the limit of warnings that will be displayed. Set to 0 for no limit.

Definition at line 111 of file Log.h.

References warnLimit, and x.

111 { warnLimit=x; }
static int warnLimit
Definition: Log.h:117
Double_t x
static void Photospp::Log::SetWarningLimit ( int  x)
inlinestatic

Change the limit of warnings that will be displayed. Set to 0 for no limit.

Definition at line 111 of file 3.52/src/utilities/Log.h.

References warnLimit, and x.

111 { warnLimit=x; }
static int warnLimit
Definition: Log.h:117
Double_t x
static void Photospp::Log::Summary ( )
static

Shows the summary of all messages.

void Photospp::Log::Summary ( )
static

Shows the summary of all messages.

Definition at line 110 of file Log.cxx.

References asAction, asCount, asFailedCount, dCount, decays, dRangeE, dRangeS, eAction, eCount, faCount, faRangeE, faRangeS, iAction, iCount, out, wAction, warnLimit, and wCount.

Referenced by SummaryAtExit().

111 {
112  *out<<"---------------------------- Photos Log Summary ------------------------------"<<endl;
113  *out<<" Debug: \t";
114  if(dRangeS>dRangeE) *out<<"(OFF)";
115  *out<<"\t\t"<<dCount<<"\t";
116  if(dRangeS<=dRangeE) *out<<"Debug range: "<<dRangeS<<" - "<<dRangeE;
117  *out<<endl;
118  *out<<" Info: \t";
119  if(!iAction) *out<<"(OFF)";
120  *out<<"\t\t"<<iCount<<"\t"<<endl;
121  *out<<" Warnings:\t";
122  if(!wAction) {if(warnLimit>0 && wCount>warnLimit) *out<<"(SUPP.)"; else *out<<"(OFF)";}
123  *out<<"\t\t"<<wCount<<"\t"<<endl;
124  *out<<" Errors: \t";
125  if(!eAction) *out<<"(OFF)";
126  *out<<"\t\t"<<eCount<<"\t"<<endl;
127  if(asCount || !asAction || faRangeS<faRangeE) cout<<"-----------------------------------"<<endl;
128  if(asCount>0) *out<<" Asserts:\t\t\t"<<asCount<<endl;
129  if(!asAction) *out<<" Failed asserts ignored:\t"<<asFailedCount<<endl;
130  if(faRangeS<=faRangeE) *out<<" Fatal errors ignored: \t"<<faCount<<endl;
131  cout<<"-----------------------------------"<<endl;
132  if(decays[3]) cout<<" Normal decays: "<<decays[3]<<endl;
133  if(decays[2]) cout<<" Decays without mother: "<<decays[2]<<endl;
134  if(decays[1]) cout<<" Decays without mother & grandmothers: "<<decays[1]<<endl;
135  if(decays[0]) cout<<" Decayed using Tauola gun: "<<decays[0]<<endl;
136  *out<<"------------------------------------------------------------------------------"<<endl;
137 }
static int faRangeS
Definition: Log.h:119
static int wCount
Definition: Log.h:120
static int warnLimit
Definition: Log.h:117
static ostream * out
Definition: Log.h:115
static int decays[4]
Definition: Log.h:118
static int asFailedCount
Definition: Log.h:120
static int dRangeE
Definition: Log.h:119
static int iCount
Definition: Log.h:120
static bool wAction
Definition: Log.h:121
static bool iAction
Definition: Log.h:121
static int dRangeS
Definition: Log.h:119
static bool eAction
Definition: Log.h:121
static int faCount
Definition: Log.h:119
static bool asAction
Definition: Log.h:121
static int faRangeE
Definition: Log.h:119
static int eCount
Definition: Log.h:120
static int asCount
Definition: Log.h:120
static int dCount
Definition: Log.h:119
static void Photospp::Log::SummaryAtExit ( )
inlinestatic

Shows the summary at the end of the program.

Definition at line 40 of file 3.52/src/utilities/Log.h.

References Summary().

40 { atexit(Summary); }
static void Summary()
Definition: Log.cxx:110
static void Photospp::Log::SummaryAtExit ( )
inlinestatic

Shows the summary at the end of the program.

Definition at line 40 of file Log.h.

40 { atexit(Summary); }
static void Summary()
Definition: Log.cxx:110
static ostream& Photospp::Log::Warning ( bool  count = true)
static
ostream & Photospp::Log::Warning ( bool  count = true)
static

Definition at line 46 of file Log.cxx.

References buf, out, wAction, warnLimit, and wCount.

Referenced by Photospp::PhotosHEPEVTParticle::checkMomentumConservation(), Photospp::PhotosHepMCParticle::checkMomentumConservation(), Photospp::Photos::createHistoryEntries(), Photospp::PhotosHEPEVTParticle::createHistoryEntry(), Photospp::PhotosHepMCParticle::createHistoryEntry(), Photospp::PhotosHEPEVTParticle::createSelfDecayVertex(), Photospp::Photos::forceMass(), Photospp::PhotosHEPEVTParticle::getDaughters(), Photospp::Photos::ignoreParticlesOfStatus(), and Photospp::PhotosBranch::PhotosBranch().

47 {
48  if(count) ++wCount;
49  if(warnLimit>0 && wCount>=warnLimit)
50  {
51  if(wAction)
52  {
53  *out<<"WARNING from PHOTOS:"<<endl<<"Limit reached ("<<warnLimit<<"). Warnings suppressed."<<endl;
54  wAction=false;
55  }
56  return buf.seekp(0);
57  }
58  if(wAction && count) return *out<<"WARNING from PHOTOS:"<<endl;
59  if(wAction) return *out;
60  return buf.seekp(0);
61 }
static int wCount
Definition: Log.h:120
static int warnLimit
Definition: Log.h:117
static ostream * out
Definition: Log.h:115
static bool wAction
Definition: Log.h:121
static stringstream buf
Definition: Log.h:116
int count

Member Data Documentation

static bool Photospp::Log::asAction =1
staticprotected

Definition at line 121 of file Log.h.

Referenced by Assert(), IgnoreFailedAssert(), and Summary().

static int Photospp::Log::asCount =0
staticprotected

Definition at line 120 of file Log.h.

Referenced by Assert(), and Summary().

static int Photospp::Log::asFailedCount =0
staticprotected

Definition at line 120 of file Log.h.

Referenced by Assert(), and Summary().

static streambuf * Photospp::Log::bCerr =cerr.rdbuf()
staticprotected

Definition at line 114 of file Log.h.

Referenced by RedirectOutput(), and RevertOutput().

static streambuf * Photospp::Log::bCout =cout.rdbuf()
staticprotected

Definition at line 114 of file Log.h.

Referenced by RedirectOutput(), and RevertOutput().

static stringstream Photospp::Log::buf
staticprotected

Definition at line 116 of file Log.h.

Referenced by Debug(), Error(), Info(), and Warning().

static int Photospp::Log::dCount =0
staticprotected

Definition at line 119 of file Log.h.

Referenced by Debug(), and Summary().

static int Photospp::Log::decays = {0}
staticprotected

Definition at line 118 of file Log.h.

Referenced by AddDecay(), and Summary().

static int Photospp::Log::dRangeE =65534
staticprotected

Definition at line 119 of file Log.h.

Referenced by Debug(), LogAll(), LogDebug(), and Summary().

static int Photospp::Log::dRangeS =65535
staticprotected

Definition at line 119 of file Log.h.

Referenced by Debug(), LogAll(), LogDebug(), and Summary().

static bool Photospp::Log::eAction =1
staticprotected

Definition at line 121 of file Log.h.

Referenced by Error(), LogAll(), LogError(), and Summary().

static int Photospp::Log::eCount =0
staticprotected

Definition at line 120 of file Log.h.

Referenced by Error(), and Summary().

static int Photospp::Log::faCount =0
staticprotected

Definition at line 119 of file Log.h.

Referenced by Summary().

static int Photospp::Log::faRangeE =65534
staticprotected

Definition at line 119 of file Log.h.

Referenced by IgnoreFatal(), and Summary().

static int Photospp::Log::faRangeS =65535
staticprotected

Definition at line 119 of file Log.h.

Referenced by IgnoreFatal(), and Summary().

static bool Photospp::Log::iAction =1
staticprotected

Definition at line 121 of file Log.h.

Referenced by Info(), LogAll(), LogInfo(), and Summary().

static int Photospp::Log::iCount =0
staticprotected

Definition at line 120 of file Log.h.

Referenced by Info(), and Summary().

static ostream * Photospp::Log::out =&cout
staticprotected

Definition at line 115 of file Log.h.

Referenced by Assert(), Debug(), Error(), Info(), SetOutput(), Summary(), and Warning().

static list< Pointer * > * Photospp::Log::PointerList = NULL
staticprotected

Definition at line 134 of file Log.h.

static bool Photospp::Log::rAction =1
staticprotected

Definition at line 121 of file Log.h.

Referenced by IgnoreRedirection(), and RedirectOutput().

static bool Photospp::Log::wAction =1
staticprotected

Definition at line 121 of file Log.h.

Referenced by LogAll(), LogWarning(), Summary(), and Warning().

static int Photospp::Log::warnLimit =100
staticprotected

Definition at line 117 of file Log.h.

Referenced by SetWarningLimit(), Summary(), and Warning().

static int Photospp::Log::wCount =0
staticprotected

Definition at line 120 of file Log.h.

Referenced by Summary(), and Warning().


The documentation for this class was generated from the following files: