aboutsummaryrefslogtreecommitdiffstats
path: root/doc/api-documentation/html/gbfosis_8h-source.html
blob: ea19e317e15e30e9fde71f08a43a0bf46bf11a43 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!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>gbfosis.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> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</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="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>gbfosis.h</h1><div class="fragment"><pre>00001 <span class="comment">/***************************************************************************</span>
00002 <span class="comment">                          gbfosis.h  -  description</span>
00003 <span class="comment">                             -------------------</span>
00004 <span class="comment">    begin                : 2001-09-03</span>
00005 <span class="comment">    copyright            : 2001 by CrossWire Bible Society</span>
00006 <span class="comment"> ***************************************************************************/</span>
00007 
00008 <span class="comment">/***************************************************************************</span>
00009 <span class="comment"> *                                                                         *</span>
00010 <span class="comment"> *   This program is free software; you can redistribute it and/or modify  *</span>
00011 <span class="comment"> *   it under the terms of the GNU General Public License as published by  *</span>
00012 <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or     *</span>
00013 <span class="comment"> *   (at your option) any later version.                                   *</span>
00014 <span class="comment"> *                                                                         *</span>
00015 <span class="comment"> ***************************************************************************/</span>
00016 
00017 <span class="preprocessor">#ifndef GBFOSIS_H</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define GBFOSIS_H</span>
00019 <span class="preprocessor"></span>
00020 <span class="preprocessor">#include &lt;defs.h&gt;</span>
00021 <span class="preprocessor">#include &lt;swfilter.h&gt;</span>
00022 <span class="preprocessor">#include &lt;string&gt;</span>
00023 <span class="preprocessor">#include &lt;stack&gt;</span>
00024 
00025 <span class="keyword">using</span> std::string;
00026 <span class="keyword">using</span> std::stack;
00027 
00028 SWORD_NAMESPACE_START
00029 
00030 <span class="keyword">class </span>QuoteStack {
00031 <span class="keyword">private</span>:
00032         <span class="keyword">class </span>QuoteInstance {
00033         <span class="keyword">public</span>:
00034                 <span class="keywordtype">char</span> startChar;
00035                 <span class="keywordtype">char</span> level;
00036                 string uniqueID;
00037                 <span class="keywordtype">char</span> continueCount;
00038                 QuoteInstance(<span class="keywordtype">char</span> startChar = <span class="charliteral">'\"'</span>, <span class="keywordtype">char</span> level = 1, string uniqueID = <span class="stringliteral">""</span>, <span class="keywordtype">char</span> continueCount = 0) {
00039                         this-&gt;startChar     = startChar;
00040                         this-&gt;level         = level;
00041                         this-&gt;uniqueID      = uniqueID;
00042                         this-&gt;continueCount = continueCount;
00043                 }
00044                 <span class="keywordtype">void</span> pushStartStream(<span class="keywordtype">char</span> **to);
00045         };
00046 
00047         stack&lt;QuoteInstance&gt; quotes;
00048 <span class="keyword">public</span>:
00049         QuoteStack();
00050         <span class="keyword">virtual</span> ~QuoteStack();
00051         <span class="keywordtype">void</span> handleQuote(<span class="keywordtype">char</span> *buf, <span class="keywordtype">char</span> *quotePos, <span class="keywordtype">char</span> **to);
00052         <span class="keywordtype">void</span> clear();
00053         <span class="keywordtype">bool</span> empty() { <span class="keywordflow">return</span> quotes.empty(); }
00054 };
00055 
<a name="l00058"></a><a class="code" href="classsword_1_1_g_b_f_o_s_i_s.html">00058</a> <span class="keyword">class </span>SWDLLEXPORT <a class="code" href="classsword_1_1_g_b_f_o_s_i_s.html">GBFOSIS</a> : <span class="keyword">public</span> SWFilter {
00059 <span class="keyword">protected</span>:
00060         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *convertToOSIS(<span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keyword">const</span> <a class="code" href="classsword_1_1_s_w_key.html">SWKey</a> *key);
00061 <span class="keyword">public</span>:
00062         <a class="code" href="classsword_1_1_g_b_f_o_s_i_s.html">GBFOSIS</a>();
00063         <span class="keyword">virtual</span> ~<a class="code" href="classsword_1_1_g_b_f_o_s_i_s.html">GBFOSIS</a>();
00064         <span class="keywordtype">char</span> ProcessText(<span class="keywordtype">char</span> *text, <span class="keywordtype">int</span> maxlen, <span class="keyword">const</span> <a class="code" href="classsword_1_1_s_w_key.html">SWKey</a> *, <span class="keyword">const</span> <a class="code" href="classsword_1_1_s_w_module.html">SWModule</a> * = 0);
00065         <span class="keyword">static</span> <span class="keywordtype">void</span> pushString(<span class="keywordtype">char</span> **buf, <span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...);
00066 };
00067 
00068 SWORD_NAMESPACE_END
00069 <span class="preprocessor">#endif </span><span class="comment">/* THMLOSIS_H */</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>