summaryrefslogtreecommitdiff
path: root/include/rawstr.h
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:52 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:52 -0400
commit148bd343f3e7e32d141f66b5b5c9b98b2975b0b3 (patch)
tree31078963b85110d57310759016e60e8d26ccb1e6 /include/rawstr.h
parent8c8aa6b07e595cfac56838b5964ab3e96051f1b2 (diff)
Imported Upstream version 1.5.8
Diffstat (limited to 'include/rawstr.h')
-rw-r--r--include/rawstr.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/include/rawstr.h b/include/rawstr.h
deleted file mode 100644
index 38cde9b..0000000
--- a/include/rawstr.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*****************************************************************************
- * rawstr.h - code for class 'RawStr'- a module that reads raw text
- * files: ot and nt using indexs ??.bks ??.cps ??.vss
- * and provides lookup and parsing functions based on
- * class StrKey
- *
- * $Id: rawstr.h,v 1.16 2003/02/26 03:23:44 scribe Exp $
- *
- * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
- * CrossWire Bible Society
- * P. O. Box 2528
- * Tempe, AZ 85280-2528
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation version 2.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- */
-
-#ifndef RAWSTR_H
-#define RAWSTR_H
-
-#include <defs.h>
-#include <filemgr.h>
-#include <swbuf.h>
-
-SWORD_NAMESPACE_START
-
-class SWDLLEXPORT RawStr {
- static int instance; // number of instantiated RawStr objects or derivitives
- char *path;
- long lastoff;
-
-protected:
- FileDesc *idxfd;
- FileDesc *datfd;
- void doSetText(const char *key, const char *buf, long len = -1);
- void doLinkEntry(const char *destkey, const char *srckey);
-public:
- static void prepText(SWBuf &buf);
- static char nl;
- RawStr(const char *ipath, int fileMode = -1);
- virtual ~RawStr();
- void getIDXBuf(long ioffset, char **buf);
- void getIDXBufDat(long ioffset, char **buf);
- signed char findOffset(const char *key, long *start, unsigned short *size, long away = 0, long *idxoff = 0);
- void readText(long start, unsigned short *size, char **idxbuf, SWBuf &buf);
- static signed char createModule(const char *path);
-};
-
-SWORD_NAMESPACE_END
-#endif