blob: d247400607cc949aeddfc1eb5e526342ad5559ea (
plain) (
tree)
|
|
<!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.15 -->
<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="functions.html">Compound Members</a> </center>
<hr><h1>rawverse.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 RAWVERSE_H</font>
00009 <font class="preprocessor"></font><font class="preprocessor">#define RAWVERSE_H</font>
00010 <font class="preprocessor"></font>
00011 <font class="preprocessor">#include <filemgr.h></font>
00012 <font class="preprocessor">#include <fcntl.h></font>
00013
00014 <font class="preprocessor">#include <defs.h></font>
00015
00016 <font class="keyword">class </font>SWDLLEXPORT RawVerse {
00017 <font class="keyword">static</font> <font class="keywordtype">int</font> instance; <font class="comment">// number of instantiated RawVerse objects or derivitives</font>
00018 <font class="keyword">protected</font>:
00019 FileDesc *idxfp[2];
00020 FileDesc *textfp[2];
00021
00022 <font class="keywordtype">char</font> *path;
00023 <font class="keywordtype">void</font> preptext (<font class="keywordtype">char</font> *buf);
00024 <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, <font class="keywordtype">long</font> len = 0);
00025 <font class="keywordtype">void</font> linkentry (<font class="keywordtype">char</font> testmt, <font class="keywordtype">long</font> destidxoff, <font class="keywordtype">long</font> srcidxoff);
00026
00027 <font class="keyword">public</font>:
00028 <font class="keywordtype">char</font> nl;
00029 RawVerse (<font class="keyword">const</font> <font class="keywordtype">char</font> *ipath, <font class="keywordtype">int</font> fileMode = -1);
00030 <font class="keyword">virtual</font> ~ RawVerse ();
00031 <font class="keywordtype">void</font> findoffset (<font class="keywordtype">char</font> testmt, <font class="keywordtype">long</font> idxoff, <font class="keywordtype">long</font> *start,
00032 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> *end);
00033 <font class="keywordtype">void</font> gettext (<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);
00034 <font class="keyword">static</font> <font class="keywordtype">char</font> createModule (<font class="keyword">const</font> <font class="keywordtype">char</font> *path);
00035 };
00036
00037
00038 <font class="preprocessor">#endif</font>
</pre></div><hr><address align="right"><small>Generated on Thu Jun 20 22:13:00 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.15 </small></address>
</body>
</html>
|