blob: 07a101a7d2532dfb42580d45c9fbfc538f208551 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>rawverse.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.17 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> </center>
<hr><h1>rawverse.h</h1><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"> * rawverse.h - code for class 'RawVerse'- a module that reads raw text</span>
00003 <span class="comment"> * files: ot and nt using indexs ??.bks ??.cps ??.vss</span>
00004 <span class="comment"> * and provides lookup and parsing functions based on</span>
00005 <span class="comment"> * class VerseKey</span>
00006 <span class="comment"> */</span>
00007
00008 <span class="preprocessor">#ifndef RAWVERSE_H</span>
00009 <span class="preprocessor"></span><span class="preprocessor">#define RAWVERSE_H</span>
00010 <span class="preprocessor"></span>
00011 <span class="preprocessor">#include <filemgr.h></span>
00012 <span class="preprocessor">#include <fcntl.h></span>
00013
00014 <span class="preprocessor">#include <defs.h></span>
00015
00016 SWORD_NAMESPACE_START
00017
00018 <span class="keyword">class </span>SWDLLEXPORT RawVerse {
00019 <span class="keyword">static</span> <span class="keywordtype">int</span> instance; <span class="comment">// number of instantiated RawVerse objects or derivitives</span>
00020 <span class="keyword">protected</span>:
00021 FileDesc *idxfp[2];
00022 FileDesc *textfp[2];
00023
00024 <span class="keywordtype">char</span> *path;
00025 <span class="keywordtype">void</span> preptext(<span class="keywordtype">char</span> *buf);
00026 <span class="keywordtype">void</span> settext(<span class="keywordtype">char</span> testmt, <span class="keywordtype">long</span> idxoff, <span class="keyword">const</span> <span class="keywordtype">char</span> *buf, <span class="keywordtype">long</span> len = -1);
00027 <span class="keywordtype">void</span> linkentry(<span class="keywordtype">char</span> testmt, <span class="keywordtype">long</span> destidxoff, <span class="keywordtype">long</span> srcidxoff);
00028
00029 <span class="keyword">public</span>:
00030 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *nl;
00031 RawVerse(<span class="keyword">const</span> <span class="keywordtype">char</span> *ipath, <span class="keywordtype">int</span> fileMode = -1);
00032 <span class="keyword">virtual</span> ~ RawVerse();
00033 <span class="keywordtype">void</span> findoffset(<span class="keywordtype">char</span> testmt, <span class="keywordtype">long</span> idxoff, <span class="keywordtype">long</span> *start,
00034 <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> *end);
00035 <span class="keywordtype">void</span> readtext(<span class="keywordtype">char</span> testmt, <span class="keywordtype">long</span> start, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> size, <span class="keywordtype">char</span> *buf);
00036 <span class="keyword">static</span> <span class="keywordtype">char</span> createModule(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);
00037 };
00038
00039 SWORD_NAMESPACE_END
00040 <span class="preprocessor">#endif</span>
</pre></div><hr><address style="align: right;"><small>Generated on Thu Oct 31 12:11:28 2002 for The Sword Project by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.2.17 </small></address>
</body>
</html>
|