summaryrefslogtreecommitdiff
path: root/include/swgenbook.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/swgenbook.h')
-rw-r--r--include/swgenbook.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/swgenbook.h b/include/swgenbook.h
index 3cfa785..d4f3d8f 100644
--- a/include/swgenbook.h
+++ b/include/swgenbook.h
@@ -1,7 +1,7 @@
/******************************************************************************
* swgenbook.h
*
-* $Id: swgenbook.h 1864 2005-11-20 06:06:40Z scribe $
+* $Id: swgenbook.h 2303 2009-04-06 13:38:34Z scribe $
*
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -22,9 +22,11 @@
#ifndef SWGENBOOK_H
#define SWGENBOOK_H
+#include <defs.h>
+
#include <swmodule.h>
+#include <treekey.h>
-#include <defs.h>
SWORD_NAMESPACE_START
@@ -34,6 +36,8 @@ class SWDLLEXPORT SWGenBook : public SWModule {
protected:
char *entkeytxt;
+ mutable TreeKey *tmpTreeKey;
+ TreeKey &getTreeKey(const SWKey *k = 0) const;
public:
/** Initializes data for instance of SWGenBook
@@ -44,7 +48,7 @@ public:
SWTextMarkup markup = FMT_UNKNOWN, const char* ilang = 0);
virtual ~SWGenBook();
- virtual SWKey *CreateKey() = 0;
+ virtual SWKey *CreateKey() const = 0;
// OPERATORS -----------------------------------------------------------------