The SWORD Project  1.9.0.svnversion
 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 
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,
50  SWTextMarkup markup = FMT_UNKNOWN, const char* ilang = 0);
51 
52  virtual ~SWGenBook();
53  virtual SWKey *createKey() const = 0;
54 
55 
56  // OPERATORS -----------------------------------------------------------------
57 
59 
60 };
61 
63 #endif
#define SWTextEncoding
Definition: swmodule.h:78
#define SWORD_NAMESPACE_START
Definition: defs.h:39
TreeKey * tmpTreeKey
Definition: swgenbook.h:41
#define SWDLLEXPORT
Definition: defs.h:171
char * entkeytxt
Definition: swgenbook.h:40
#define SWMODULE_OPERATORS
Definition: swmodule.h:54
#define SWTextDirection
Definition: swmodule.h:77
#define SWORD_NAMESPACE_END
Definition: defs.h:40
virtual SWKey * createKey() const
Definition: swmodule.cpp:173
Definition: swkey.h:77
#define SWTextMarkup
Definition: swmodule.h:79