VersificationMgr Class Reference

#include <versificationmgr.h>

Inheritance diagram for VersificationMgr:
Inheritance graph
[legend]
Collaboration diagram for VersificationMgr:
Collaboration graph
[legend]

List of all members.

Classes

class  Book
class  Private
class  System

Public Member Functions

virtual void flush ()
const SystemgetVersificationSystem (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 ()
 VersificationMgr ()
 ~VersificationMgr ()

Static Public Member Functions

static VersificationMgrgetSystemVersificationMgr ()
static void setSystemVersificationMgr (VersificationMgr *newVersificationMgr)

Static Protected Attributes

static VersificationMgrsystemVersificationMgr = 0

Private Member Functions

void init ()

Private Attributes

Privatep

Friends

class __staticsystemVersificationMgr

Detailed Description

Definition at line 69 of file versificationmgr.h.


Constructor & Destructor Documentation

VersificationMgr::VersificationMgr (  )  [inline]

Definition at line 150 of file versificationmgr.h.

00150 { init(); }

VersificationMgr::~VersificationMgr (  ) 

Definition at line 345 of file versificationmgr.cpp.

00345                                     {
00346     delete p;
00347 }


Member Function Documentation

void SWCacher::flush (  )  [virtual, inherited]

Reimplemented in FileMgr, zCom, zLD, and zText.

Definition at line 36 of file swcacher.cpp.

00036                      {
00037 }

SWORD_NAMESPACE_START VersificationMgr * VersificationMgr::getSystemVersificationMgr (  )  [static]

Definition at line 54 of file versificationmgr.cpp.

00054                                                               {
00055     if (!systemVersificationMgr) {
00056         systemVersificationMgr = new VersificationMgr();
00057         systemVersificationMgr->registerVersificationSystem("KJV", otbooks, ntbooks, vm);
00058         systemVersificationMgr->registerVersificationSystem("Leningrad", otbooks_leningrad, ntbooks_null, vm_leningrad);
00059         systemVersificationMgr->registerVersificationSystem("MT", otbooks_mt, ntbooks_null, vm_mt);
00060         systemVersificationMgr->registerVersificationSystem("KJVA", otbooks_kjva, ntbooks, vm_kjva);
00061         systemVersificationMgr->registerVersificationSystem("NRSV", otbooks, ntbooks, vm_nrsv);
00062         systemVersificationMgr->registerVersificationSystem("NRSVA", otbooks_nrsva, ntbooks, vm_nrsva);
00063         systemVersificationMgr->registerVersificationSystem("Synodal", otbooks_synodal, ntbooks_synodal, vm_synodal);
00064         systemVersificationMgr->registerVersificationSystem("Vulg", otbooks_vulg, ntbooks_vulg, vm_vulg);
00065         systemVersificationMgr->registerVersificationSystem("German", otbooks_german, ntbooks, vm_german);
00066         systemVersificationMgr->registerVersificationSystem("Luther", otbooks_luther, ntbooks_luther, vm_luther);
00067         systemVersificationMgr->registerVersificationSystem("Catholic", otbooks_catholic, ntbooks, vm_catholic);
00068         systemVersificationMgr->registerVersificationSystem("Catholic2", otbooks_catholic2, ntbooks, vm_catholic2);
00069         systemVersificationMgr->registerVersificationSystem("Rahlfs", otbooks_rahlfs, ntbooks_null, vm_rahlfs);
00070     }
00071     return systemVersificationMgr;
00072 }

const VersificationMgr::System * VersificationMgr::getVersificationSystem ( const char *  name  )  const

Definition at line 357 of file versificationmgr.cpp.

00357                                                                                              {
00358     map<SWBuf, System>::const_iterator it = p->systems.find(name);
00359     return (it != p->systems.end()) ? &(it->second) : 0;
00360 }

const StringList VersificationMgr::getVersificationSystems (  )  const

Definition at line 374 of file versificationmgr.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 VersificationMgr::init (  )  [private]

Definition at line 340 of file versificationmgr.cpp.

00340                             {
00341     p = new Private();
00342 }

long SWCacher::lastAccess (  )  [virtual, inherited]

Definition at line 43 of file swcacher.cpp.

00043                           {
00044     return 0;
00045 }

void VersificationMgr::registerVersificationSystem ( const char *  name,
const TreeKey tk 
)

Definition at line 370 of file versificationmgr.cpp.

00370                                                                                       {
00371 }

void VersificationMgr::registerVersificationSystem ( const char *  name,
const sbook ot,
const sbook nt,
int *  chMax 
)

Definition at line 363 of file versificationmgr.cpp.

00363                                                                                                                  {
00364     p->systems[name] = name;
00365     System &s = p->systems[name];
00366     s.loadFromSBook(ot, nt, chMax);
00367 }

long SWCacher::resourceConsumption (  )  [virtual, inherited]

Reimplemented in FileMgr.

Definition at line 39 of file swcacher.cpp.

00039                                    {
00040     return 0;
00041 }

void VersificationMgr::setSystemVersificationMgr ( VersificationMgr newVersificationMgr  )  [static]

Definition at line 350 of file versificationmgr.cpp.

00350                                                                                       {
00351     if (systemVersificationMgr)
00352         delete systemVersificationMgr;
00353     systemVersificationMgr = newVersificationMgr;
00354 }


Friends And Related Function Documentation

friend class __staticsystemVersificationMgr [friend]

Definition at line 73 of file versificationmgr.h.


Member Data Documentation

Definition at line 78 of file versificationmgr.h.

Definition at line 84 of file versificationmgr.h.


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

Generated on 18 Mar 2013 for The SWORD Project by  doxygen 1.6.1