1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
<title>LibOFX: ofx_preproc.hh File Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.3 -->
10
<li><a href="main.html"><span>Main Page</span></a></li>
11
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
12
<li><a href="annotated.html"><span>Data Structures</span></a></li>
13
<li class="current"><a href="files.html"><span>Files</span></a></li>
16
<h1>ofx_preproc.hh File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
17
Preprocessing of the OFX files before parsing.
19
Implements the pre-treatement of the OFX file prior to parsing: OFX header striping, OFX proprietary tags and SGML comment striping, locating the appropriate DTD.
20
<p>Definition in file <a class="el" href="fx-0_89_80_2lib_2ofx__preproc_8hh-source.html">fx-0.9.0/lib/ofx_preproc.hh</a>.</p>
25
<a href="fx-0_89_80_2lib_2ofx__preproc_8hh-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
27
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
28
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d9e6681d8259d0d224f7c775eb25487c"></a><!-- doxytag: member="fx-0.9.0/lib/ofx_preproc.hh::OPENSPDCL_FILENAME" ref="d9e6681d8259d0d224f7c775eb25487c" args="" -->
29
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_89_80_2lib_2ofx__preproc_8hh.html#d9e6681d8259d0d224f7c775eb25487c">OPENSPDCL_FILENAME</a> "opensp.dcl"</td></tr>
31
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9048e71566173bdc4719830bf28bec3b"></a><!-- doxytag: member="fx-0.9.0/lib/ofx_preproc.hh::OFX160DTD_FILENAME" ref="9048e71566173bdc4719830bf28bec3b" args="" -->
32
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_89_80_2lib_2ofx__preproc_8hh.html#9048e71566173bdc4719830bf28bec3b">OFX160DTD_FILENAME</a> "ofx160.dtd"</td></tr>
34
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db19c9e865a6e5d4ae16c68b36b1734c"></a><!-- doxytag: member="fx-0.9.0/lib/ofx_preproc.hh::OFCDTD_FILENAME" ref="db19c9e865a6e5d4ae16c68b36b1734c" args="" -->
35
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_89_80_2lib_2ofx__preproc_8hh.html#db19c9e865a6e5d4ae16c68b36b1734c">OFCDTD_FILENAME</a> "ofc.dtd"</td></tr>
37
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
38
<tr><td class="memItemLeft" nowrap align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_89_80_2lib_2ofx__preproc_8hh.html#cdbd49c3c11946411dd76016609bd333">sanitize_proprietary_tags</a> (string input_string)</td></tr>
40
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes proprietary tags and comments. <a href="#cdbd49c3c11946411dd76016609bd333"></a><br></td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top">string </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_89_80_2lib_2ofx__preproc_8hh.html#a45231657cddffcb50db295076956183">find_dtd</a> (<a class="el" href="libofx-0_89_80_2inc_2libofx_8h.html#cb05196108aab07092d1b4931577b87c">LibofxContextPtr</a> ctx, string dtd_filename)</td></tr>
43
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find the appropriate DTD for the file version. <a href="#a45231657cddffcb50db295076956183"></a><br></td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top">CFCT int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_89_80_2lib_2ofx__preproc_8hh.html#962fcc61a6192bd63ac3fb234fd07cc4">ofx_proc_file</a> (<a class="el" href="libofx-0_89_80_2inc_2libofx_8h.html#cb05196108aab07092d1b4931577b87c">LibofxContextPtr</a> libofx_context, const char *)</td></tr>
46
<tr><td class="mdescLeft"> </td><td class="mdescRight">ofx_proc_file process an ofx or ofc file. <a href="#962fcc61a6192bd63ac3fb234fd07cc4"></a><br></td></tr>
48
<hr><h2>Function Documentation</h2>
49
<a class="anchor" name="a45231657cddffcb50db295076956183"></a><!-- doxytag: member="fx-0.9.0/lib/ofx_preproc.hh::find_dtd" ref="a45231657cddffcb50db295076956183" args="(LibofxContextPtr ctx, string dtd_filename)" -->
51
<div class="memproto">
52
<table class="memname">
54
<td class="memname">string find_dtd </td>
56
<td class="paramtype"><a class="el" href="libofx-0_89_80_2inc_2libofx_8h.html#cb05196108aab07092d1b4931577b87c">LibofxContextPtr</a> </td>
57
<td class="paramname"> <em>ctx</em>, </td>
60
<td class="paramkey"></td>
62
<td class="paramtype">string </td>
63
<td class="paramname"> <em>dtd_filename</em></td><td> </td>
68
<td></td><td></td><td width="100%"></td>
75
Find the appropriate DTD for the file version.
77
This function will try to find a DTD matching the requested_version and return the full path of the DTD found (or an empty string if unsuccessfull)<p>
78
Please note that currently the function will ALWAYS look for version 160, since OpenSP can't parse the 201 DTD correctly
79
<p>Definition at line <a class="el" href="ofx__preproc_8cpp-source.html#l00514">514</a> of file <a class="el" href="ofx__preproc_8cpp-source.html">ofx_preproc.cpp</a>.</p>
83
<a class="anchor" name="962fcc61a6192bd63ac3fb234fd07cc4"></a><!-- doxytag: member="fx-0.9.0/lib/ofx_preproc.hh::ofx_proc_file" ref="962fcc61a6192bd63ac3fb234fd07cc4" args="(LibofxContextPtr libofx_context, const char *)" -->
85
<div class="memproto">
86
<table class="memname">
88
<td class="memname">CFCT int ofx_proc_file </td>
90
<td class="paramtype"><a class="el" href="libofx-0_89_80_2inc_2libofx_8h.html#cb05196108aab07092d1b4931577b87c">LibofxContextPtr</a> </td>
91
<td class="paramname"> <em>ctx</em>, </td>
94
<td class="paramkey"></td>
96
<td class="paramtype">const char * </td>
97
<td class="paramname"> <em>p_filename</em></td><td> </td>
102
<td></td><td></td><td width="100%"></td>
109
ofx_proc_file process an ofx or ofc file.
111
libofx_proc_file must be called with a list of 1 or more OFX files to be parsed in command line format.<p>
112
ofx_proc_file process an ofx or ofc file.<p>
113
Takes care of comment striping, dtd locating, etc.
114
<p>Definition at line <a class="el" href="ofx__preproc_8cpp-source.html#l00070">70</a> of file <a class="el" href="ofx__preproc_8cpp-source.html">ofx_preproc.cpp</a>.</p>
118
<a class="anchor" name="cdbd49c3c11946411dd76016609bd333"></a><!-- doxytag: member="fx-0.9.0/lib/ofx_preproc.hh::sanitize_proprietary_tags" ref="cdbd49c3c11946411dd76016609bd333" args="(string input_string)" -->
119
<div class="memitem">
120
<div class="memproto">
121
<table class="memname">
123
<td class="memname">string sanitize_proprietary_tags </td>
125
<td class="paramtype">string </td>
126
<td class="paramname"> <em>input_string</em> </td>
127
<td> ) </td>
128
<td width="100%"></td>
135
Removes proprietary tags and comments.
137
This function will strip all the OFX proprietary tags and SGML comments from the SGML string passed to it
138
<p>Definition at line <a class="el" href="ofx__preproc_8cpp-source.html#l00411">411</a> of file <a class="el" href="ofx__preproc_8cpp-source.html">ofx_preproc.cpp</a>.</p>
142
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 19 20:28:00 2007 for LibOFX by
143
<a href="http://www.doxygen.org/index.html">
144
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>