The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VersificationMgr Class Reference

#include <versificationmgr.h>

+ Inheritance diagram for VersificationMgr:
+ Collaboration diagram for VersificationMgr:

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 sbook *ot, const sbook *nt, int *chMax, const unsigned char *mappings=NULL)
 
void registerVersificationSystem (const char *name, const TreeKey *)
 
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 151 of file versificationmgr.h.

151 { init(); }
VersificationMgr::~VersificationMgr ( )

Definition at line 397 of file versificationmgr.cpp.

397  {
398  delete p;
399 }

Member Function Documentation

void SWCacher::flush ( )
virtualinherited

Reimplemented in FileMgr, zText, zText4, zCom, zCom4, and zLD.

Definition at line 39 of file swcacher.cpp.

39  {
40 }
SWORD_NAMESPACE_START VersificationMgr * VersificationMgr::getSystemVersificationMgr ( )
static

Definition at line 61 of file versificationmgr.cpp.

61  {
82  }
84 }
SWORD_NAMESPACE_START int vm_nrsv[]
Definition: canon_nrsv.h:43
int vm_synodal[]
SWORD_NAMESPACE_START struct sbook otbooks_german[]
Definition: canon_german.h:35
SWORD_NAMESPACE_START struct sbook otbooks_luther[]
Definition: canon_luther.h:35
unsigned char mappings_synodal[]
SWORD_NAMESPACE_START struct sbook otbooks_lxx[]
Definition: canon_lxx.h:48
unsigned char mappings_nrsv[]
Definition: canon_nrsv.h:267
SWORD_NAMESPACE_START int vm_segond[]
Definition: canon_segond.h:50
SWORD_NAMESPACE_START struct sbook otbooks_kjva[]
Definition: canon_kjva.h:35
SWORD_NAMESPACE_START struct sbook otbooks_catholic2[]
int vm_german[]
Definition: canon_german.h:82
unsigned char mappings_segond[]
Definition: canon_segond.h:275
unsigned char mappings_calvin[]
Definition: canon_calvin.h:292
SWORD_NAMESPACE_START struct sbook otbooks[]
Definition: canon.h:35
struct sbook ntbooks[]
Definition: canon.h:77
struct sbook ntbooks_synodal[]
Definition: canon_synodal.h:97
int vm_mt[]
Definition: canon_mt.h:84
void registerVersificationSystem(const char *name, const sbook *ot, const sbook *nt, int *chMax, const unsigned char *mappings=NULL)
SWORD_NAMESPACE_START struct sbook otbooks_nrsva[]
Definition: canon_nrsva.h:34
struct sbook ntbooks_luther[]
Definition: canon_luther.h:88
int vm_leningrad[]
SWORD_NAMESPACE_START struct sbook otbooks_vulg[]
Definition: canon_vulg.h:39
int vm_vulg[]
Definition: canon_vulg.h:129
SWORD_NAMESPACE_START struct sbook otbooks_orthodox[]
SWORD_NAMESPACE_START struct sbook otbooks_leningrad[]
SWORD_NAMESPACE_START int vm_calvin[]
Definition: canon_calvin.h:67
int vm_luther[]
Definition: canon_luther.h:123
int vm_lxx[]
Definition: canon_lxx.h:114
SWORD_NAMESPACE_START struct sbook otbooks_mt[]
Definition: canon_mt.h:35
int vm_nrsva[]
Definition: canon_nrsva.h:100
struct sbook ntbooks_vulg[]
Definition: canon_vulg.h:89
SWORD_NAMESPACE_START struct sbook otbooks_synodalProt[]
int vm_catholic2[]
int vm[]
Definition: canon.h:112
SWORD_NAMESPACE_START int vm_darbyfr[]
Definition: canon_darbyfr.h:49
static VersificationMgr * systemVersificationMgr
int vm_synodalProt[]
SWORD_NAMESPACE_START struct sbook otbooks_synodal[]
Definition: canon_synodal.h:42
unsigned char mappings_vulg[]
Definition: canon_vulg.h:389
int vm_kjva[]
Definition: canon_kjva.h:98
int vm_orthodox[]
struct sbook ntbooks_null[]
Definition: canon_null.h:40
int vm_catholic[]
unsigned char mappings_darbyfr[]
SWORD_NAMESPACE_START struct sbook otbooks_catholic[]
const VersificationMgr::System * VersificationMgr::getVersificationSystem ( const char *  name) const

Definition at line 409 of file versificationmgr.cpp.

409  {
410  map<SWBuf, System>::const_iterator it = p->systems.find(name);
411  return (it != p->systems.end()) ? &(it->second) : 0;
412 }
map< SWBuf, System > systems
const StringList VersificationMgr::getVersificationSystems ( ) const

Definition at line 426 of file versificationmgr.cpp.

426  {
427  StringList retVal;
428  for (map<SWBuf, System>::const_iterator it = p->systems.begin(); it != p->systems.end(); it++) {
429  retVal.push_back(it->first);
430  }
431  return retVal;
432 }
std::list< SWBuf > StringList
Definition: swmodule.cpp:91
map< SWBuf, System > systems
void VersificationMgr::init ( )
private

Definition at line 392 of file versificationmgr.cpp.

392  {
393  p = new Private();
394 }
long SWCacher::lastAccess ( )
virtualinherited

Definition at line 46 of file swcacher.cpp.

46  {
47  return 0;
48 }
void VersificationMgr::registerVersificationSystem ( const char *  name,
const sbook ot,
const sbook nt,
int *  chMax,
const unsigned char *  mappings = NULL 
)

Definition at line 415 of file versificationmgr.cpp.

415  {
416  p->systems[name] = name;
417  System &s = p->systems[name];
418  s.loadFromSBook(ot, nt, chMax, mappings);
419 }
map< SWBuf, System > systems
void VersificationMgr::registerVersificationSystem ( const char *  name,
const TreeKey tk 
)

Definition at line 422 of file versificationmgr.cpp.

422  {
423 }
long SWCacher::resourceConsumption ( )
virtualinherited

Reimplemented in FileMgr.

Definition at line 42 of file swcacher.cpp.

42  {
43  return 0;
44 }
void VersificationMgr::setSystemVersificationMgr ( VersificationMgr newVersificationMgr)
static

Definition at line 402 of file versificationmgr.cpp.

402  {
404  delete systemVersificationMgr;
405  systemVersificationMgr = newVersificationMgr;
406 }
static VersificationMgr * systemVersificationMgr

Friends And Related Function Documentation

friend class __staticsystemVersificationMgr
friend

Definition at line 72 of file versificationmgr.h.

Member Data Documentation

Private* VersificationMgr::p
private

Definition at line 74 of file versificationmgr.h.

VersificationMgr * VersificationMgr::systemVersificationMgr = 0
staticprotected

Definition at line 80 of file versificationmgr.h.


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