File: zverse_h-source.html

package info (click to toggle)
sword 1.5.3-3woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 20,484 kB
  • ctags: 11,105
  • sloc: cpp: 49,665; ansic: 13,335; sh: 8,730; pascal: 3,433; tcl: 1,602; makefile: 988; perl: 565; sed: 93
file content (76 lines) | stat: -rw-r--r-- 5,522 bytes parent folder | download
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>zverse.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.6 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>zverse.h</h1><div class="fragment"><pre>00001 <font class="comment">/******************************************************************************</font>
00002 <font class="comment"> *  rawverse.h   - code for class 'RawVerse'- a module that reads raw text</font>
00003 <font class="comment"> *                      files:  ot and nt using indexs ??.bks ??.cps ??.vss</font>
00004 <font class="comment"> *                      and provides lookup and parsing functions based on</font>
00005 <font class="comment"> *                      class VerseKey</font>
00006 <font class="comment"> */</font>
00007 
00008 <font class="preprocessor">#ifndef ZVERSE_H</font>
00009 <font class="preprocessor"></font><font class="preprocessor">#define ZVERSE_H</font>
00010 <font class="preprocessor"></font>
00011 <font class="preprocessor">#include &lt;filemgr.h&gt;</font>
00012 <font class="preprocessor">#include &lt;fcntl.h&gt;</font>
00013 <font class="preprocessor">#include &lt;rawverse.h&gt;</font>
00014 <font class="preprocessor">#include &lt;swcomprs.h&gt;</font>
00015 
00016 <font class="preprocessor">#include &lt;defs.h&gt;</font>
00017 
00018 <font class="keyword">class </font>SWDLLEXPORT zVerse <font class="comment">/*: public RawVerse */</font>
00019 {
00020   SWCompress *compressor;
00021 
00022 <font class="keyword">protected</font>:
00023   <font class="keyword">static</font> <font class="keywordtype">int</font> instance;          <font class="comment">// number of instantiated RawVerse objects or derivitives</font>
00024 
00025   FileDesc *idxfp[2];
00026   FileDesc *textfp[2];
00027   FileDesc *compfp[2];
00028   <font class="keywordtype">char</font> *path;
00029   <font class="keywordtype">void</font> preptext (<font class="keywordtype">char</font> *buf);
00030   <font class="keywordtype">void</font> settext (<font class="keywordtype">char</font> testmt, <font class="keywordtype">long</font> idxoff, <font class="keyword">const</font> <font class="keywordtype">char</font> *buf);
00031   <font class="keywordtype">void</font> linkentry (<font class="keywordtype">char</font> testmt, <font class="keywordtype">long</font> destidxoff, <font class="keywordtype">long</font> srcidxoff);
00032   <font class="keywordtype">void</font> flushCache ();
00033   <font class="comment">//RawVerse();</font>
00034   <font class="keywordtype">char</font> *cacheBuf;
00035   <font class="keywordtype">char</font> cacheTestament;
00036   <font class="keywordtype">long</font> cacheBufIdx;
00037   <font class="keywordtype">bool</font> dirtyCache;
00038 
00039 <font class="keyword">public</font>:
00040 
00041 <font class="preprocessor">#define VERSEBLOCKS 2</font>
00042 <font class="preprocessor"></font><font class="preprocessor">#define CHAPTERBLOCKS 3</font>
00043 <font class="preprocessor"></font><font class="preprocessor">#define BOOKBLOCKS 4</font>
00044 <font class="preprocessor"></font>
00045   <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> uniqueIndexID[];
00046   <font class="keywordtype">char</font> nl;
00047   
00048     
00049     zVerse (<font class="keyword">const</font> <font class="keywordtype">char</font> *ipath, <font class="keywordtype">int</font> fileMode = O_RDONLY, <font class="keywordtype">int</font> blockType =
00050             CHAPTERBLOCKS, SWCompress * icomp = 0);
00051     <font class="keyword">virtual</font> ~ zVerse ();
00052   <font class="keywordtype">void</font> findoffset (<font class="keywordtype">char</font> testmt, <font class="keywordtype">long</font> idxoff, <font class="keywordtype">long</font> *start,
00053                    <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> *end);
00054   <font class="keywordtype">void</font> swgettext (<font class="keywordtype">char</font> testmt, <font class="keywordtype">long</font> start, <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> size, <font class="keywordtype">char</font> *buf);
00055   <font class="comment">//static char CreateModule(char *path);</font>
00056   <font class="keyword">static</font> <font class="keywordtype">char</font> createModule (<font class="keyword">const</font> <font class="keywordtype">char</font> *path, <font class="keywordtype">int</font> blockBound);
00057 };
00058 
00059 
00060 <font class="preprocessor">#endif</font>
</font></pre></div><hr><address><small>Generated at Fri Oct 5 22:45:34 2001 for The Sword Project by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.6 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>