Helper class to handle deletion of singleton TDbiDatabaseManager. More...
#include <TDbiDatabaseManager.hxx>

Public Member Functions | |
| Cleaner () | |
| ~Cleaner () | |
| void | Increment () |
Static Public Attributes | |
| static int | fgCount |
Helper class to handle deletion of singleton TDbiDatabaseManager.
Definition at line 79 of file TDbiDatabaseManager.hxx.
| TDbiDatabaseManager::Cleaner::Cleaner | ( | ) | [inline] |
Definition at line 81 of file TDbiDatabaseManager.hxx.
References Increment().
00081 { this->Increment(); }

| TDbiDatabaseManager::Cleaner::~Cleaner | ( | ) | [inline] |
Definition at line 82 of file TDbiDatabaseManager.hxx.
References fgCount, and TDbiDatabaseManager::fgInstance.
00082 { 00083 if (--fgCount==0 && TDbiDatabaseManager::fgInstance!=0) { 00084 delete TDbiDatabaseManager::fgInstance; 00085 TDbiDatabaseManager::fgInstance = 0; 00086 } 00087 }
| void TDbiDatabaseManager::Cleaner::Increment | ( | ) | [inline] |
Definition at line 88 of file TDbiDatabaseManager.hxx.
References fgCount.
Referenced by Cleaner().
00088 { ++fgCount; };

int TDbiDatabaseManager::Cleaner::fgCount [static] |
Definition at line 80 of file TDbiDatabaseManager.hxx.
Referenced by Increment(), and ~Cleaner().
1.6.1