1
/******************************************************************************
2
* rawtext.h - code for class 'RawText'- a module that reads raw text files:
3
* ot and nt using indexs ??.bks ??.cps ??.vss
5
* $Id: rawgenbook.h 2303 2009-04-06 13:38:34Z scribe $
7
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
8
* CrossWire Bible Society
10
* Tempe, AZ 85280-2528
12
* This program is free software; you can redistribute it and/or modify it
13
* under the terms of the GNU General Public License as published by the
14
* Free Software Foundation version 2.
16
* This program is distributed in the hope that it will be useful, but
17
* WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* General Public License for more details.
26
#include <swgenbook.h>
34
class SWDLLEXPORT RawGenBook : public SWGenBook {
42
RawGenBook(const char *ipath, const char *iname = 0, const char *idesc = 0,
43
SWDisplay * idisp = 0, SWTextEncoding encoding = ENC_UNKNOWN,
44
SWTextDirection dir = DIRECTION_LTR,
45
SWTextMarkup markup = FMT_UNKNOWN, const char* ilang = 0, const char *keyType = "TreeKey");
46
virtual ~RawGenBook();
47
virtual SWBuf &getRawEntryBuf();
48
// write interface ----------------------------
49
virtual bool isWritable();
50
static char createModule(const char *ipath);
51
virtual void setEntry(const char *inbuf, long len = -1); // Modify current module entry
52
virtual void linkEntry(const SWKey * linkKey); // Link current module entry to other module entry
53
virtual void deleteEntry(); // Delete current module entry
54
virtual SWKey *CreateKey() const;
55
// end write interface ------------------------
57
virtual bool hasEntry(const SWKey *k) const;
59
// OPERATORS -----------------------------------------------------------------