| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DbiExceptionLog Class Reference

Id
DbiExceptionLog.h,v 1.5 2007/04/26 14:19:57 west Exp
More...

#include <DbiExceptionLog.h>

Collaboration diagram for DbiExceptionLog:

[legend]
List of all members.

Public Member Functions

 DbiExceptionLog (const DbiException *e=0)
virtual ~DbiExceptionLog ()
Bool_t IsEmpty () const
const std::vector< DbiException > & GetEntries () const
void Print () const
UInt_t Size () const
void Copy (DbiExceptionLog &that, UInt_t start=0) const
void AddLog (const DbiExceptionLog &el)
void AddEntry (const DbiException &e)
void AddEntry (const char *errMsg, Int_t code=-1, Int_t dbType=-1)
void AddEntry (const std::string &errMsg, Int_t code=-1, Int_t dbType=-1)
void AddEntry (const TSQLServer &server, Int_t dbType=-1)
void AddEntry (const TSQLStatement &statement, Int_t dbType=-1)
void Clear ()

Static Public Member Functions

static DbiExceptionLogGetGELog ()

Private Attributes

std::vector< DbiExceptionfEntries
 The exception entries.

Static Private Attributes

static DbiExceptionLog fgGELog
 Global Exception Log.

Detailed Description

Id
DbiExceptionLog.h,v 1.5 2007/04/26 14:19:57 west Exp

Definition at line 44 of file DbiExceptionLog.h.


Constructor & Destructor Documentation

DbiExceptionLog::DbiExceptionLog ( const DbiException e = 0  ) 

virtual DbiExceptionLog::~DbiExceptionLog (  )  [virtual]


Member Function Documentation

Bool_t DbiExceptionLog::IsEmpty (  )  const [inline]

Definition at line 54 of file DbiExceptionLog.h.

00054 { return fEntries.size() == 0; }

const std::vector<DbiException>& DbiExceptionLog::GetEntries (  )  const [inline]

Definition at line 56 of file DbiExceptionLog.h.

00056 { return fEntries; }

void DbiExceptionLog::Print (  )  const

UInt_t DbiExceptionLog::Size (  )  const [inline]

Definition at line 58 of file DbiExceptionLog.h.

00058 { return fEntries.size(); }

void DbiExceptionLog::Copy ( DbiExceptionLog that,
UInt_t  start = 0 
) const

void DbiExceptionLog::AddLog ( const DbiExceptionLog el  ) 

void DbiExceptionLog::AddEntry ( const DbiException e  )  [inline]

Definition at line 64 of file DbiExceptionLog.h.

00064 { fEntries.push_back(e); }

void DbiExceptionLog::AddEntry ( const char *  errMsg,
Int_t  code = -1,
Int_t  dbType = -1 
) [inline]

Definition at line 65 of file DbiExceptionLog.h.

00065                                                                        {
00066    this->AddEntry(DbiException(errMsg,code,dbType));}

void DbiExceptionLog::AddEntry ( const std::string &  errMsg,
Int_t  code = -1,
Int_t  dbType = -1 
) [inline]

Definition at line 67 of file DbiExceptionLog.h.

00067                                                                             {
00068    this->AddEntry(DbiException(errMsg.c_str(),code,dbType));}

void DbiExceptionLog::AddEntry ( const TSQLServer &  server,
Int_t  dbType = -1 
) [inline]

Definition at line 69 of file DbiExceptionLog.h.

00069                                                             {
00070    this->AddEntry(DbiException(server,dbType));}

void DbiExceptionLog::AddEntry ( const TSQLStatement &  statement,
Int_t  dbType = -1 
) [inline]

Definition at line 71 of file DbiExceptionLog.h.

00071                                                                   {
00072    this->AddEntry(DbiException(statement,dbType));}

void DbiExceptionLog::Clear (  )  [inline]

Definition at line 73 of file DbiExceptionLog.h.

00073 { fEntries.clear(); }

static DbiExceptionLog& DbiExceptionLog::GetGELog (  )  [inline, static]

Definition at line 76 of file DbiExceptionLog.h.

00076 { return fgGELog;}


Member Data Documentation

std::vector<DbiException> DbiExceptionLog::fEntries [private]

The exception entries.

Definition at line 86 of file DbiExceptionLog.h.

DbiExceptionLog DbiExceptionLog::fgGELog [static, private]

Global Exception Log.

Definition at line 89 of file DbiExceptionLog.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:15:48 2011 for DatabaseInterface by doxygen 1.4.7