VerseMgr Class Reference

#include <versemgr.h>

Inheritance diagram for VerseMgr:
Inheritance graph
[legend]
Collaboration diagram for VerseMgr:
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 ()
 VerseMgr ()
 ~VerseMgr ()

Static Public Member Functions

static VerseMgrgetSystemVerseMgr ()
static void setSystemVerseMgr (VerseMgr *newVerseMgr)

Static Protected Attributes

static VerseMgrsystemVerseMgr = 0

Private Member Functions

void init ()

Private Attributes

Privatep

Friends

class __staticsystemVerseMgr

Detailed Description

Definition at line 69 of file versemgr.h.


Constructor & Destructor Documentation

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 }


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 VerseMgr * VerseMgr::getSystemVerseMgr (  )  [static]
const VerseMgr::System * VerseMgr::getVersificationSystem ( const char *  name  )  const

Definition at line 357 of file versemgr.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 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.

00043                           {
00044     return 0;
00045 }

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

Definition at line 370 of file versemgr.cpp.

00370                                                                               {
00371 }

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

Definition at line 363 of file versemgr.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 VerseMgr::setSystemVerseMgr ( VerseMgr newVerseMgr  )  [static]

Definition at line 350 of file versemgr.cpp.

00350                                                       {
00351     if (systemVerseMgr)
00352         delete systemVerseMgr;
00353     systemVerseMgr = newVerseMgr;
00354 }


Friends And Related Function Documentation

friend class __staticsystemVerseMgr [friend]

Definition at line 73 of file versemgr.h.


Member Data Documentation

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.


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

Generated on 25 Jan 2013 for The SWORD Project by  doxygen 1.6.1