#include <versemgr.h>


Classes | |
| class | Book |
| class | Private |
| class | System |
Public Member Functions | |
| virtual void | flush () |
| const System * | getVersificationSystem (const char *name) const |
| const StringList | getVersificationSystems () const |
| virtual long | lastAccess () |
| void | registerVersificationSystem (const char *name, const TreeKey *) |
| void | registerVersificationSystem (const char *name, const sbook *ot, const sbook *nt, int *chMax) |
| virtual long | resourceConsumption () |
| VerseMgr () | |
| ~VerseMgr () | |
Static Public Member Functions | |
| static VerseMgr * | getSystemVerseMgr () |
| static void | setSystemVerseMgr (VerseMgr *newVerseMgr) |
Static Protected Attributes | |
| static VerseMgr * | systemVerseMgr = 0 |
Private Member Functions | |
| void | init () |
Private Attributes | |
| Private * | p |
Friends | |
| class | __staticsystemVerseMgr |
Definition at line 69 of file versemgr.h.
| VerseMgr::VerseMgr | ( | ) | [inline] |
Definition at line 150 of file versemgr.h.
00150 { init(); }
| VerseMgr::~VerseMgr | ( | ) |
Definition at line 345 of file versemgr.cpp.
00345 { 00346 delete p; 00347 }
| void SWCacher::flush | ( | ) | [virtual, inherited] |
| SWORD_NAMESPACE_START VerseMgr * VerseMgr::getSystemVerseMgr | ( | ) | [static] |
Definition at line 54 of file versemgr.cpp.
00054 { 00055 if (!systemVerseMgr) { 00056 systemVerseMgr = new VerseMgr(); 00057 systemVerseMgr->registerVersificationSystem("KJV", otbooks, ntbooks, vm); 00058 systemVerseMgr->registerVersificationSystem("Leningrad", otbooks_leningrad, ntbooks_null, vm_leningrad); 00059 systemVerseMgr->registerVersificationSystem("MT", otbooks_mt, ntbooks_null, vm_mt); 00060 systemVerseMgr->registerVersificationSystem("KJVA", otbooks_kjva, ntbooks, vm_kjva); 00061 systemVerseMgr->registerVersificationSystem("NRSV", otbooks, ntbooks, vm_nrsv); 00062 systemVerseMgr->registerVersificationSystem("NRSVA", otbooks_nrsva, ntbooks, vm_nrsva); 00063 systemVerseMgr->registerVersificationSystem("Synodal", otbooks_synodal, ntbooks_synodal, vm_synodal); 00064 systemVerseMgr->registerVersificationSystem("Vulg", otbooks_vulg, ntbooks_vulg, vm_vulg); 00065 systemVerseMgr->registerVersificationSystem("German", otbooks_german, ntbooks, vm_german); 00066 systemVerseMgr->registerVersificationSystem("Luther", otbooks_luther, ntbooks_luther, vm_luther); 00067 systemVerseMgr->registerVersificationSystem("Catholic", otbooks_catholic, ntbooks, vm_catholic); 00068 systemVerseMgr->registerVersificationSystem("Catholic2", otbooks_catholic2, ntbooks, vm_catholic2); 00069 systemVerseMgr->registerVersificationSystem("Rahlfs", otbooks_rahlfs, ntbooks_null, vm_rahlfs); 00070 } 00071 return systemVerseMgr; 00072 }
| const VerseMgr::System * VerseMgr::getVersificationSystem | ( | const char * | name | ) | const |
| const StringList VerseMgr::getVersificationSystems | ( | ) | const |
Definition at line 374 of file versemgr.cpp.
00374 { 00375 StringList retVal; 00376 for (map<SWBuf, System>::const_iterator it = p->systems.begin(); it != p->systems.end(); it++) { 00377 retVal.push_back(it->first); 00378 } 00379 return retVal; 00380 }
| void VerseMgr::init | ( | ) | [private] |
Definition at line 340 of file versemgr.cpp.
00340 { 00341 p = new Private(); 00342 }
| long SWCacher::lastAccess | ( | ) | [virtual, inherited] |
Definition at line 43 of file swcacher.cpp.
| void VerseMgr::registerVersificationSystem | ( | const char * | name, | |
| const TreeKey * | tk | |||
| ) |
Definition at line 370 of file versemgr.cpp.
| long SWCacher::resourceConsumption | ( | ) | [virtual, inherited] |
Reimplemented in FileMgr.
Definition at line 39 of file swcacher.cpp.
| void VerseMgr::setSystemVerseMgr | ( | VerseMgr * | newVerseMgr | ) | [static] |
Definition at line 350 of file versemgr.cpp.
00350 { 00351 if (systemVerseMgr) 00352 delete systemVerseMgr; 00353 systemVerseMgr = newVerseMgr; 00354 }
friend class __staticsystemVerseMgr [friend] |
Definition at line 73 of file versemgr.h.
Private* VerseMgr::p [private] |
Definition at line 78 of file versemgr.h.
VerseMgr * VerseMgr::systemVerseMgr = 0 [static, protected] |
Definition at line 84 of file versemgr.h.
1.6.1