The SWORD Project
1.9.0.svnversion
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
swgenbook.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* swgenbook.h - class SWGenBook: representation of a General Book with
4
* a TreeKey table of contents for its keyset
5
*
6
* $Id: swgenbook.h 3808 2020-10-02 13:23:34Z scribe $
7
*
8
* Copyright 2002-2013 CrossWire Bible Society (http://www.crosswire.org)
9
* CrossWire Bible Society
10
* P. O. Box 2528
11
* Tempe, AZ 85280-2528
12
*
13
* This program is free software; you can redistribute it and/or modify it
14
* under the terms of the GNU General Public License as published by the
15
* Free Software Foundation version 2.
16
*
17
* This program is distributed in the hope that it will be useful, but
18
* WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* General Public License for more details.
21
*
22
*/
23
24
#ifndef SWGENBOOK_H
25
#define SWGENBOOK_H
26
27
#include <
defs.h
>
28
29
#include <
swmodule.h
>
30
#include <
treekey.h
>
31
32
33
SWORD_NAMESPACE_START
34
37
class
SWDLLEXPORT
SWGenBook
:
public
SWModule
{
38
39
protected
:
40
mutable
char
*
entkeytxt
;
41
mutable
TreeKey
*
tmpTreeKey
;
42
const
TreeKey
&getTreeKey(
const
SWKey
*k = 0)
const
;
43
44
public
:
47
SWGenBook
(
const
char
*imodname = 0,
const
char
*imoddesc = 0,
48
SWDisplay
* idisp = 0,
SWTextEncoding
encoding =
ENC_UNKNOWN
,
49
SWTextDirection
dir =
DIRECTION_LTR
,
50
SWTextMarkup
markup =
FMT_UNKNOWN
,
const
char
* ilang = 0);
51
52
virtual
~
SWGenBook
();
53
virtual
SWKey
*
createKey
()
const
= 0;
54
55
56
// OPERATORS -----------------------------------------------------------------
57
58
SWMODULE_OPERATORS
59
60
};
61
62
SWORD_NAMESPACE_END
63
#endif
SWTextEncoding
#define SWTextEncoding
Definition:
swmodule.h:78
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
SWGenBook
Definition:
swgenbook.h:37
SWGenBook::tmpTreeKey
TreeKey * tmpTreeKey
Definition:
swgenbook.h:41
SWDLLEXPORT
#define SWDLLEXPORT
Definition:
defs.h:171
swmodule.h
defs.h
ENC_UNKNOWN
Definition:
swmodule.h:46
FMT_UNKNOWN
Definition:
swmodule.h:45
SWGenBook::entkeytxt
char * entkeytxt
Definition:
swgenbook.h:40
treekey.h
SWModule
Definition:
swmodule.h:101
SWDisplay
Definition:
swdisp.h:37
SWMODULE_OPERATORS
#define SWMODULE_OPERATORS
Definition:
swmodule.h:54
DIRECTION_LTR
Definition:
swmodule.h:44
SWTextDirection
#define SWTextDirection
Definition:
swmodule.h:77
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
TreeKey
Definition:
treekey.h:38
SWModule::createKey
virtual SWKey * createKey() const
Definition:
swmodule.cpp:173
SWKey
Definition:
swkey.h:77
SWTextMarkup
#define SWTextMarkup
Definition:
swmodule.h:79
include
swgenbook.h
Generated by
1.8.5