1 |
dpavlin |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 |
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
3 |
|
|
<title>HyperEstraierWrapper: Document Class Reference</title> |
4 |
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 |
|
|
</head><body> |
6 |
|
|
<!-- Generated by Doxygen 1.4.2 --> |
7 |
|
|
<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a></div> |
8 |
|
|
<h1>Document Class Reference</h1><a href="classDocument-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
9 |
|
|
<tr><td></td></tr> |
10 |
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
11 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a0">Document</a> ()</td></tr> |
12 |
|
|
|
13 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a1">Document</a> (const char *draft)</td></tr> |
14 |
|
|
|
15 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a2">Document</a> (ESTMTDB *db, int number, int options)</td></tr> |
16 |
|
|
|
17 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a3">~Document</a> ()</td></tr> |
18 |
|
|
|
19 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a4">add_attr</a> (const char *name, const char *value)</td></tr> |
20 |
|
|
|
21 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a5">add_text</a> (const char *text)</td></tr> |
22 |
|
|
|
23 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a6">add_hidden_text</a> (const char *text)</td></tr> |
24 |
|
|
|
25 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a7">get_id</a> ()</td></tr> |
26 |
|
|
|
27 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::vector< std::string > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a8">get_attr_names</a> ()</td></tr> |
28 |
|
|
|
29 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a9">get_attr</a> (const char *name)</td></tr> |
30 |
|
|
|
31 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a10">text</a> ()</td></tr> |
32 |
|
|
|
33 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a11">get_dump_draft</a> ()</td></tr> |
34 |
|
|
|
35 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a12">make_snippet</a> (std::vector< std::string > _words, int wwidth, int hwidth, int awidth)</td></tr> |
36 |
|
|
|
37 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#a13">scan_words</a> (std::vector< std::string > _words)</td></tr> |
38 |
|
|
|
39 |
|
|
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> |
40 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">ESTDOC * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#o0">doc</a></td></tr> |
41 |
|
|
|
42 |
|
|
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr> |
43 |
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classDocument.html#r0">text_buf</a></td></tr> |
44 |
|
|
|
45 |
|
|
</table> |
46 |
|
|
<hr><h2>Constructor & Destructor Documentation</h2> |
47 |
|
|
<a class="anchor" name="a0" doxytag="Document::Document"></a><p> |
48 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
49 |
|
|
<tr> |
50 |
|
|
<td class="mdRow"> |
51 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
52 |
|
|
<tr> |
53 |
|
|
<td class="md" nowrap valign="top">Document::Document </td> |
54 |
|
|
<td class="md" valign="top">( </td> |
55 |
|
|
<td class="mdname1" valign="top" nowrap> </td> |
56 |
|
|
<td class="md" valign="top"> ) </td> |
57 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
58 |
|
|
</tr> |
59 |
|
|
</table> |
60 |
|
|
</td> |
61 |
|
|
</tr> |
62 |
|
|
</table> |
63 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
64 |
|
|
<tr> |
65 |
|
|
<td> |
66 |
|
|
|
67 |
|
|
</td> |
68 |
|
|
<td> |
69 |
|
|
|
70 |
|
|
<p> |
71 |
|
|
constructor |
72 |
|
|
<p> |
73 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00065">65</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
74 |
|
|
<p> |
75 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00065 { |
76 |
|
|
00069 <a class="code" href="classDocument.html#o0">doc</a> = est_doc_new(); |
77 |
|
|
00070 } |
78 |
|
|
</pre></div> |
79 |
|
|
<p> |
80 |
|
|
</td> |
81 |
|
|
</tr> |
82 |
|
|
</table> |
83 |
|
|
<a class="anchor" name="a1" doxytag="Document::Document"></a><p> |
84 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
85 |
|
|
<tr> |
86 |
|
|
<td class="mdRow"> |
87 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
88 |
|
|
<tr> |
89 |
|
|
<td class="md" nowrap valign="top">Document::Document </td> |
90 |
|
|
<td class="md" valign="top">( </td> |
91 |
|
|
<td class="md" nowrap valign="top">const char * </td> |
92 |
|
|
<td class="mdname1" valign="top" nowrap> <em>draft</em> </td> |
93 |
|
|
<td class="md" valign="top"> ) </td> |
94 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
95 |
|
|
</tr> |
96 |
|
|
</table> |
97 |
|
|
</td> |
98 |
|
|
</tr> |
99 |
|
|
</table> |
100 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
101 |
|
|
<tr> |
102 |
|
|
<td> |
103 |
|
|
|
104 |
|
|
</td> |
105 |
|
|
<td> |
106 |
|
|
|
107 |
|
|
<p> |
108 |
|
|
destructor |
109 |
|
|
<p> |
110 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00071">71</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
111 |
|
|
<p> |
112 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00071 { |
113 |
|
|
00075 <a class="code" href="classDocument.html#o0">doc</a> = est_doc_new_from_draft(draft); |
114 |
|
|
00076 } |
115 |
|
|
</pre></div> |
116 |
|
|
<p> |
117 |
|
|
</td> |
118 |
|
|
</tr> |
119 |
|
|
</table> |
120 |
|
|
<a class="anchor" name="a2" doxytag="Document::Document"></a><p> |
121 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
122 |
|
|
<tr> |
123 |
|
|
<td class="mdRow"> |
124 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
125 |
|
|
<tr> |
126 |
|
|
<td class="md" nowrap valign="top">Document::Document </td> |
127 |
|
|
<td class="md" valign="top">( </td> |
128 |
|
|
<td class="md" nowrap valign="top">ESTMTDB * </td> |
129 |
|
|
<td class="mdname" nowrap> <em>db</em>, </td> |
130 |
|
|
</tr> |
131 |
|
|
<tr> |
132 |
|
|
<td class="md" nowrap align="right"></td> |
133 |
|
|
<td class="md"></td> |
134 |
|
|
<td class="md" nowrap>int </td> |
135 |
|
|
<td class="mdname" nowrap> <em>number</em>, </td> |
136 |
|
|
</tr> |
137 |
|
|
<tr> |
138 |
|
|
<td class="md" nowrap align="right"></td> |
139 |
|
|
<td class="md"></td> |
140 |
|
|
<td class="md" nowrap>int </td> |
141 |
|
|
<td class="mdname" nowrap> <em>options</em></td> |
142 |
|
|
</tr> |
143 |
|
|
<tr> |
144 |
|
|
<td class="md"></td> |
145 |
|
|
<td class="md">) </td> |
146 |
|
|
<td class="md" colspan="2"><code> [inline]</code></td> |
147 |
|
|
</tr> |
148 |
|
|
</table> |
149 |
|
|
</td> |
150 |
|
|
</tr> |
151 |
|
|
</table> |
152 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
153 |
|
|
<tr> |
154 |
|
|
<td> |
155 |
|
|
|
156 |
|
|
</td> |
157 |
|
|
<td> |
158 |
|
|
|
159 |
|
|
<p> |
160 |
|
|
constructor(for internal use only) |
161 |
|
|
<p> |
162 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00077">77</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
163 |
|
|
<p> |
164 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00077 { |
165 |
|
|
00081 <a class="code" href="classDocument.html#o0">doc</a> = est_mtdb_get_doc(db, number, options); |
166 |
|
|
00082 } |
167 |
|
|
</pre></div> |
168 |
|
|
<p> |
169 |
|
|
</td> |
170 |
|
|
</tr> |
171 |
|
|
</table> |
172 |
|
|
<a class="anchor" name="a3" doxytag="Document::~Document"></a><p> |
173 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
174 |
|
|
<tr> |
175 |
|
|
<td class="mdRow"> |
176 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
177 |
|
|
<tr> |
178 |
|
|
<td class="md" nowrap valign="top">Document::~Document </td> |
179 |
|
|
<td class="md" valign="top">( </td> |
180 |
|
|
<td class="mdname1" valign="top" nowrap> </td> |
181 |
|
|
<td class="md" valign="top"> ) </td> |
182 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
183 |
|
|
</tr> |
184 |
|
|
</table> |
185 |
|
|
</td> |
186 |
|
|
</tr> |
187 |
|
|
</table> |
188 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
189 |
|
|
<tr> |
190 |
|
|
<td> |
191 |
|
|
|
192 |
|
|
</td> |
193 |
|
|
<td> |
194 |
|
|
|
195 |
|
|
<p> |
196 |
|
|
destructor |
197 |
|
|
<p> |
198 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00083">83</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
199 |
|
|
<p> |
200 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00083 { |
201 |
|
|
00087 est_doc_delete(<a class="code" href="classDocument.html#o0">doc</a>); |
202 |
|
|
00088 } |
203 |
|
|
</pre></div> |
204 |
|
|
<p> |
205 |
|
|
</td> |
206 |
|
|
</tr> |
207 |
|
|
</table> |
208 |
|
|
<hr><h2>Member Function Documentation</h2> |
209 |
|
|
<a class="anchor" name="a4" doxytag="Document::add_attr"></a><p> |
210 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
211 |
|
|
<tr> |
212 |
|
|
<td class="mdRow"> |
213 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
214 |
|
|
<tr> |
215 |
|
|
<td class="md" nowrap valign="top">void Document::add_attr </td> |
216 |
|
|
<td class="md" valign="top">( </td> |
217 |
|
|
<td class="md" nowrap valign="top">const char * </td> |
218 |
|
|
<td class="mdname" nowrap> <em>name</em>, </td> |
219 |
|
|
</tr> |
220 |
|
|
<tr> |
221 |
|
|
<td class="md" nowrap align="right"></td> |
222 |
|
|
<td class="md"></td> |
223 |
|
|
<td class="md" nowrap>const char * </td> |
224 |
|
|
<td class="mdname" nowrap> <em>value</em></td> |
225 |
|
|
</tr> |
226 |
|
|
<tr> |
227 |
|
|
<td class="md"></td> |
228 |
|
|
<td class="md">) </td> |
229 |
|
|
<td class="md" colspan="2"><code> [inline]</code></td> |
230 |
|
|
</tr> |
231 |
|
|
</table> |
232 |
|
|
</td> |
233 |
|
|
</tr> |
234 |
|
|
</table> |
235 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
236 |
|
|
<tr> |
237 |
|
|
<td> |
238 |
|
|
|
239 |
|
|
</td> |
240 |
|
|
<td> |
241 |
|
|
|
242 |
|
|
<p> |
243 |
|
|
add an attribute to a document object |
244 |
|
|
<p> |
245 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00089">89</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
246 |
|
|
<p> |
247 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00089 { |
248 |
|
|
00093 est_doc_add_attr(<a class="code" href="classDocument.html#o0">doc</a>, name, value); |
249 |
|
|
00094 } |
250 |
|
|
</pre></div> |
251 |
|
|
<p> |
252 |
|
|
</td> |
253 |
|
|
</tr> |
254 |
|
|
</table> |
255 |
|
|
<a class="anchor" name="a6" doxytag="Document::add_hidden_text"></a><p> |
256 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
257 |
|
|
<tr> |
258 |
|
|
<td class="mdRow"> |
259 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
260 |
|
|
<tr> |
261 |
|
|
<td class="md" nowrap valign="top">void Document::add_hidden_text </td> |
262 |
|
|
<td class="md" valign="top">( </td> |
263 |
|
|
<td class="md" nowrap valign="top">const char * </td> |
264 |
|
|
<td class="mdname1" valign="top" nowrap> <em>text</em> </td> |
265 |
|
|
<td class="md" valign="top"> ) </td> |
266 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
267 |
|
|
</tr> |
268 |
|
|
</table> |
269 |
|
|
</td> |
270 |
|
|
</tr> |
271 |
|
|
</table> |
272 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
273 |
|
|
<tr> |
274 |
|
|
<td> |
275 |
|
|
|
276 |
|
|
</td> |
277 |
|
|
<td> |
278 |
|
|
|
279 |
|
|
<p> |
280 |
|
|
add a hidden sentence to a document object |
281 |
|
|
<p> |
282 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00101">101</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
283 |
|
|
<p> |
284 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00101 { |
285 |
|
|
00105 est_doc_add_hidden_text(<a class="code" href="classDocument.html#o0">doc</a>, <a class="code" href="classDocument.html#a10">text</a>); |
286 |
|
|
00106 } |
287 |
|
|
</pre></div> |
288 |
|
|
<p> |
289 |
|
|
</td> |
290 |
|
|
</tr> |
291 |
|
|
</table> |
292 |
|
|
<a class="anchor" name="a5" doxytag="Document::add_text"></a><p> |
293 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
294 |
|
|
<tr> |
295 |
|
|
<td class="mdRow"> |
296 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
297 |
|
|
<tr> |
298 |
|
|
<td class="md" nowrap valign="top">void Document::add_text </td> |
299 |
|
|
<td class="md" valign="top">( </td> |
300 |
|
|
<td class="md" nowrap valign="top">const char * </td> |
301 |
|
|
<td class="mdname1" valign="top" nowrap> <em>text</em> </td> |
302 |
|
|
<td class="md" valign="top"> ) </td> |
303 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
304 |
|
|
</tr> |
305 |
|
|
</table> |
306 |
|
|
</td> |
307 |
|
|
</tr> |
308 |
|
|
</table> |
309 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
310 |
|
|
<tr> |
311 |
|
|
<td> |
312 |
|
|
|
313 |
|
|
</td> |
314 |
|
|
<td> |
315 |
|
|
|
316 |
|
|
<p> |
317 |
|
|
add a sentence of text to a document object |
318 |
|
|
<p> |
319 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00095">95</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
320 |
|
|
<p> |
321 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00095 { |
322 |
|
|
00099 est_doc_add_text(<a class="code" href="classDocument.html#o0">doc</a>, <a class="code" href="classDocument.html#a10">text</a>); |
323 |
|
|
00100 } |
324 |
|
|
</pre></div> |
325 |
|
|
<p> |
326 |
|
|
</td> |
327 |
|
|
</tr> |
328 |
|
|
</table> |
329 |
|
|
<a class="anchor" name="a9" doxytag="Document::get_attr"></a><p> |
330 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
331 |
|
|
<tr> |
332 |
|
|
<td class="mdRow"> |
333 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
334 |
|
|
<tr> |
335 |
|
|
<td class="md" nowrap valign="top">const char* Document::get_attr </td> |
336 |
|
|
<td class="md" valign="top">( </td> |
337 |
|
|
<td class="md" nowrap valign="top">const char * </td> |
338 |
|
|
<td class="mdname1" valign="top" nowrap> <em>name</em> </td> |
339 |
|
|
<td class="md" valign="top"> ) </td> |
340 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
341 |
|
|
</tr> |
342 |
|
|
</table> |
343 |
|
|
</td> |
344 |
|
|
</tr> |
345 |
|
|
</table> |
346 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
347 |
|
|
<tr> |
348 |
|
|
<td> |
349 |
|
|
|
350 |
|
|
</td> |
351 |
|
|
<td> |
352 |
|
|
|
353 |
|
|
<p> |
354 |
|
|
get the value of an attribute of a document object |
355 |
|
|
<p> |
356 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00125">125</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
357 |
|
|
<p> |
358 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00125 { |
359 |
|
|
00129 <span class="keywordflow">return</span> est_doc_attr(<a class="code" href="classDocument.html#o0">doc</a>, name); |
360 |
|
|
00130 } |
361 |
|
|
</pre></div> |
362 |
|
|
<p> |
363 |
|
|
</td> |
364 |
|
|
</tr> |
365 |
|
|
</table> |
366 |
|
|
<a class="anchor" name="a8" doxytag="Document::get_attr_names"></a><p> |
367 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
368 |
|
|
<tr> |
369 |
|
|
<td class="mdRow"> |
370 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
371 |
|
|
<tr> |
372 |
|
|
<td class="md" nowrap valign="top">std::vector<std::string>* Document::get_attr_names </td> |
373 |
|
|
<td class="md" valign="top">( </td> |
374 |
|
|
<td class="mdname1" valign="top" nowrap> </td> |
375 |
|
|
<td class="md" valign="top"> ) </td> |
376 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
377 |
|
|
</tr> |
378 |
|
|
</table> |
379 |
|
|
</td> |
380 |
|
|
</tr> |
381 |
|
|
</table> |
382 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
383 |
|
|
<tr> |
384 |
|
|
<td> |
385 |
|
|
|
386 |
|
|
</td> |
387 |
|
|
<td> |
388 |
|
|
|
389 |
|
|
<p> |
390 |
|
|
get a list of attribute names of a document object |
391 |
|
|
<p> |
392 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00113">113</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
393 |
|
|
<p> |
394 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00113 { |
395 |
|
|
00117 std::vector<std::string> * vs = <span class="keyword">new</span> std::vector<std::string>; |
396 |
|
|
00118 CBLIST * attr_names = est_doc_attr_names(<a class="code" href="classDocument.html#o0">doc</a>); |
397 |
|
|
00119 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i < cblistnum(attr_names); i++) { |
398 |
|
|
00120 vs->push_back(cblistval(attr_names, i, NULL)); |
399 |
|
|
00121 } |
400 |
|
|
00122 cblistclose(attr_names); |
401 |
|
|
00123 <span class="keywordflow">return</span> vs; |
402 |
|
|
00124 } |
403 |
|
|
</pre></div> |
404 |
|
|
<p> |
405 |
|
|
</td> |
406 |
|
|
</tr> |
407 |
|
|
</table> |
408 |
|
|
<a class="anchor" name="a11" doxytag="Document::get_dump_draft"></a><p> |
409 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
410 |
|
|
<tr> |
411 |
|
|
<td class="mdRow"> |
412 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
413 |
|
|
<tr> |
414 |
|
|
<td class="md" nowrap valign="top">const char* Document::get_dump_draft </td> |
415 |
|
|
<td class="md" valign="top">( </td> |
416 |
|
|
<td class="mdname1" valign="top" nowrap> </td> |
417 |
|
|
<td class="md" valign="top"> ) </td> |
418 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
419 |
|
|
</tr> |
420 |
|
|
</table> |
421 |
|
|
</td> |
422 |
|
|
</tr> |
423 |
|
|
</table> |
424 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
425 |
|
|
<tr> |
426 |
|
|
<td> |
427 |
|
|
|
428 |
|
|
</td> |
429 |
|
|
<td> |
430 |
|
|
|
431 |
|
|
<p> |
432 |
|
|
dump draft data of a document object |
433 |
|
|
<p> |
434 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00145">145</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
435 |
|
|
<p> |
436 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00145 { |
437 |
|
|
00149 <span class="keywordflow">return</span> est_doc_dump_draft(<a class="code" href="classDocument.html#o0">doc</a>); |
438 |
|
|
00150 } |
439 |
|
|
</pre></div> |
440 |
|
|
<p> |
441 |
|
|
</td> |
442 |
|
|
</tr> |
443 |
|
|
</table> |
444 |
|
|
<a class="anchor" name="a7" doxytag="Document::get_id"></a><p> |
445 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
446 |
|
|
<tr> |
447 |
|
|
<td class="mdRow"> |
448 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
449 |
|
|
<tr> |
450 |
|
|
<td class="md" nowrap valign="top">int Document::get_id </td> |
451 |
|
|
<td class="md" valign="top">( </td> |
452 |
|
|
<td class="mdname1" valign="top" nowrap> </td> |
453 |
|
|
<td class="md" valign="top"> ) </td> |
454 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
455 |
|
|
</tr> |
456 |
|
|
</table> |
457 |
|
|
</td> |
458 |
|
|
</tr> |
459 |
|
|
</table> |
460 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
461 |
|
|
<tr> |
462 |
|
|
<td> |
463 |
|
|
|
464 |
|
|
</td> |
465 |
|
|
<td> |
466 |
|
|
|
467 |
|
|
<p> |
468 |
|
|
get the ID number of a document object |
469 |
|
|
<p> |
470 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00107">107</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
471 |
|
|
<p> |
472 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00107 { |
473 |
|
|
00111 <span class="keywordflow">return</span> est_doc_id(<a class="code" href="classDocument.html#o0">doc</a>); |
474 |
|
|
00112 } |
475 |
|
|
</pre></div> |
476 |
|
|
<p> |
477 |
|
|
</td> |
478 |
|
|
</tr> |
479 |
|
|
</table> |
480 |
|
|
<a class="anchor" name="a12" doxytag="Document::make_snippet"></a><p> |
481 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
482 |
|
|
<tr> |
483 |
|
|
<td class="mdRow"> |
484 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
485 |
|
|
<tr> |
486 |
|
|
<td class="md" nowrap valign="top">const char* Document::make_snippet </td> |
487 |
|
|
<td class="md" valign="top">( </td> |
488 |
|
|
<td class="md" nowrap valign="top">std::vector< std::string > </td> |
489 |
|
|
<td class="mdname" nowrap> <em>_words</em>, </td> |
490 |
|
|
</tr> |
491 |
|
|
<tr> |
492 |
|
|
<td class="md" nowrap align="right"></td> |
493 |
|
|
<td class="md"></td> |
494 |
|
|
<td class="md" nowrap>int </td> |
495 |
|
|
<td class="mdname" nowrap> <em>wwidth</em>, </td> |
496 |
|
|
</tr> |
497 |
|
|
<tr> |
498 |
|
|
<td class="md" nowrap align="right"></td> |
499 |
|
|
<td class="md"></td> |
500 |
|
|
<td class="md" nowrap>int </td> |
501 |
|
|
<td class="mdname" nowrap> <em>hwidth</em>, </td> |
502 |
|
|
</tr> |
503 |
|
|
<tr> |
504 |
|
|
<td class="md" nowrap align="right"></td> |
505 |
|
|
<td class="md"></td> |
506 |
|
|
<td class="md" nowrap>int </td> |
507 |
|
|
<td class="mdname" nowrap> <em>awidth</em></td> |
508 |
|
|
</tr> |
509 |
|
|
<tr> |
510 |
|
|
<td class="md"></td> |
511 |
|
|
<td class="md">) </td> |
512 |
|
|
<td class="md" colspan="2"><code> [inline]</code></td> |
513 |
|
|
</tr> |
514 |
|
|
</table> |
515 |
|
|
</td> |
516 |
|
|
</tr> |
517 |
|
|
</table> |
518 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
519 |
|
|
<tr> |
520 |
|
|
<td> |
521 |
|
|
|
522 |
|
|
</td> |
523 |
|
|
<td> |
524 |
|
|
|
525 |
|
|
<p> |
526 |
|
|
make a snippet of the body text of a document object |
527 |
|
|
<p> |
528 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00151">151</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
529 |
|
|
<p> |
530 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00151 { |
531 |
|
|
00155 CBLIST * words; |
532 |
|
|
00156 std::vector<std::string>::iterator iter; |
533 |
|
|
00157 |
534 |
|
|
00158 words = cblistopen(); |
535 |
|
|
00159 |
536 |
|
|
00160 <span class="keywordflow">for</span> (iter = _words.begin(); _words.end() != iter; iter++) { |
537 |
|
|
00161 cblistpush(words, iter->c_str(), -1); |
538 |
|
|
00162 } |
539 |
|
|
00163 |
540 |
|
|
00164 <span class="keyword">const</span> <span class="keywordtype">char</span> *result = est_doc_make_snippet(<a class="code" href="classDocument.html#o0">doc</a>, words, wwidth, hwidth, awidth); |
541 |
|
|
00165 |
542 |
|
|
00166 cblistclose(words); |
543 |
|
|
00167 |
544 |
|
|
00168 <span class="keywordflow">return</span> result; |
545 |
|
|
00169 } |
546 |
|
|
</pre></div> |
547 |
|
|
<p> |
548 |
|
|
</td> |
549 |
|
|
</tr> |
550 |
|
|
</table> |
551 |
|
|
<a class="anchor" name="a13" doxytag="Document::scan_words"></a><p> |
552 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
553 |
|
|
<tr> |
554 |
|
|
<td class="mdRow"> |
555 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
556 |
|
|
<tr> |
557 |
|
|
<td class="md" nowrap valign="top">bool Document::scan_words </td> |
558 |
|
|
<td class="md" valign="top">( </td> |
559 |
|
|
<td class="md" nowrap valign="top">std::vector< std::string > </td> |
560 |
|
|
<td class="mdname1" valign="top" nowrap> <em>_words</em> </td> |
561 |
|
|
<td class="md" valign="top"> ) </td> |
562 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
563 |
|
|
</tr> |
564 |
|
|
</table> |
565 |
|
|
</td> |
566 |
|
|
</tr> |
567 |
|
|
</table> |
568 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
569 |
|
|
<tr> |
570 |
|
|
<td> |
571 |
|
|
|
572 |
|
|
</td> |
573 |
|
|
<td> |
574 |
|
|
|
575 |
|
|
<p> |
576 |
|
|
check whether the text of a document object includes every specified words |
577 |
|
|
<p> |
578 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00170">170</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
579 |
|
|
<p> |
580 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>.<div class="fragment"><pre class="fragment">00170 { |
581 |
|
|
00174 CBLIST *words; |
582 |
|
|
00175 std::vector<std::string>::iterator iter; |
583 |
|
|
00176 |
584 |
|
|
00177 words = cblistopen(); |
585 |
|
|
00178 |
586 |
|
|
00179 <span class="keywordflow">for</span> (iter = _words.begin(); _words.end() != iter; iter++) { |
587 |
|
|
00180 cblistpush(words, iter->c_str(), -1); |
588 |
|
|
00181 } |
589 |
|
|
00182 |
590 |
|
|
00183 <span class="keywordtype">int</span> result = est_doc_scan_words(<a class="code" href="classDocument.html#o0">doc</a>, words); |
591 |
|
|
00184 |
592 |
|
|
00185 cblistclose(words); |
593 |
|
|
00186 |
594 |
|
|
00187 <span class="keywordflow">return</span> result; |
595 |
|
|
00188 } |
596 |
|
|
</pre></div> |
597 |
|
|
<p> |
598 |
|
|
</td> |
599 |
|
|
</tr> |
600 |
|
|
</table> |
601 |
|
|
<a class="anchor" name="a10" doxytag="Document::text"></a><p> |
602 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
603 |
|
|
<tr> |
604 |
|
|
<td class="mdRow"> |
605 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
606 |
|
|
<tr> |
607 |
|
|
<td class="md" nowrap valign="top">const char* Document::text </td> |
608 |
|
|
<td class="md" valign="top">( </td> |
609 |
|
|
<td class="mdname1" valign="top" nowrap> </td> |
610 |
|
|
<td class="md" valign="top"> ) </td> |
611 |
|
|
<td class="md" nowrap><code> [inline]</code></td> |
612 |
|
|
</tr> |
613 |
|
|
</table> |
614 |
|
|
</td> |
615 |
|
|
</tr> |
616 |
|
|
</table> |
617 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
618 |
|
|
<tr> |
619 |
|
|
<td> |
620 |
|
|
|
621 |
|
|
</td> |
622 |
|
|
<td> |
623 |
|
|
|
624 |
|
|
<p> |
625 |
|
|
get a list of sentences of the text of a document object |
626 |
|
|
<p> |
627 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00131">131</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
628 |
|
|
<p> |
629 |
|
|
References <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">doc</a>, and <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00061">text_buf</a>.<div class="fragment"><pre class="fragment">00131 { |
630 |
|
|
00135 <span class="keywordflow">if</span> (<a class="code" href="classDocument.html#r0">text_buf</a> == <span class="stringliteral">""</span>) { |
631 |
|
|
00136 <span class="keyword">const</span> CBLIST *texts; |
632 |
|
|
00137 texts = est_doc_texts(<a class="code" href="classDocument.html#o0">doc</a>); |
633 |
|
|
00138 <a class="code" href="classDocument.html#r0">text_buf</a> = <span class="stringliteral">""</span>; |
634 |
|
|
00139 <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i < cblistnum(texts); i++) { |
635 |
|
|
00140 <a class="code" href="classDocument.html#r0">text_buf</a> += cblistval(texts, i, NULL); |
636 |
|
|
00141 } |
637 |
|
|
00142 } |
638 |
|
|
00143 <span class="keywordflow">return</span> <a class="code" href="classDocument.html#r0">text_buf</a>.c_str(); |
639 |
|
|
00144 } |
640 |
|
|
</pre></div> |
641 |
|
|
<p> |
642 |
|
|
</td> |
643 |
|
|
</tr> |
644 |
|
|
</table> |
645 |
|
|
<hr><h2>Member Data Documentation</h2> |
646 |
|
|
<a class="anchor" name="o0" doxytag="Document::doc"></a><p> |
647 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
648 |
|
|
<tr> |
649 |
|
|
<td class="mdRow"> |
650 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
651 |
|
|
<tr> |
652 |
|
|
<td class="md" nowrap valign="top">ESTDOC* <a class="el" href="classDocument.html#o0">Document::doc</a> </td> |
653 |
|
|
</tr> |
654 |
|
|
</table> |
655 |
|
|
</td> |
656 |
|
|
</tr> |
657 |
|
|
</table> |
658 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
659 |
|
|
<tr> |
660 |
|
|
<td> |
661 |
|
|
|
662 |
|
|
</td> |
663 |
|
|
<td> |
664 |
|
|
|
665 |
|
|
<p> |
666 |
|
|
|
667 |
|
|
<p> |
668 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00063">63</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
669 |
|
|
<p> |
670 |
|
|
Referenced by <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00089">add_attr()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00101">add_hidden_text()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00095">add_text()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00065">Document()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00305">Database::etch_doc()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00125">get_attr()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00113">get_attr_names()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00145">get_dump_draft()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00107">get_id()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00151">make_snippet()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00249">Database::put_doc()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00170">scan_words()</a>, <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00131">text()</a>, and <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00083">~Document()</a>. </td> |
671 |
|
|
</tr> |
672 |
|
|
</table> |
673 |
|
|
<a class="anchor" name="r0" doxytag="Document::text_buf"></a><p> |
674 |
|
|
<table class="mdTable" cellpadding="2" cellspacing="0"> |
675 |
|
|
<tr> |
676 |
|
|
<td class="mdRow"> |
677 |
|
|
<table cellpadding="0" cellspacing="0" border="0"> |
678 |
|
|
<tr> |
679 |
|
|
<td class="md" nowrap valign="top">std::string <a class="el" href="classDocument.html#r0">Document::text_buf</a><code> [private]</code> </td> |
680 |
|
|
</tr> |
681 |
|
|
</table> |
682 |
|
|
</td> |
683 |
|
|
</tr> |
684 |
|
|
</table> |
685 |
|
|
<table cellspacing="5" cellpadding="0" border="0"> |
686 |
|
|
<tr> |
687 |
|
|
<td> |
688 |
|
|
|
689 |
|
|
</td> |
690 |
|
|
<td> |
691 |
|
|
|
692 |
|
|
<p> |
693 |
|
|
|
694 |
|
|
<p> |
695 |
|
|
Definition at line <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00061">61</a> of file <a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a>. |
696 |
|
|
<p> |
697 |
|
|
Referenced by <a class="el" href="HyperEstraierWrapper_8cpp-source.html#l00131">text()</a>. </td> |
698 |
|
|
</tr> |
699 |
|
|
</table> |
700 |
|
|
<hr>The documentation for this class was generated from the following file:<ul> |
701 |
|
|
<li><a class="el" href="HyperEstraierWrapper_8cpp-source.html">HyperEstraierWrapper.cpp</a></ul> |
702 |
|
|
<hr size="1"><address style="align: right;"><small>Generated on Sat Jun 11 14:47:05 2005 for HyperEstraierWrapper by |
703 |
|
|
<a href="http://www.doxygen.org/index.html"> |
704 |
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
705 |
|
|
</body> |
706 |
|
|
</html> |