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 82 83 84 85 86 87 88
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>LibOFX: context.hh Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>context.hh</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00005"></a>00005 <span class="comment">/***************************************************************************</span>
<a name="l00006"></a>00006 <span class="comment"> * *</span>
<a name="l00007"></a>00007 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span>
<a name="l00008"></a>00008 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span>
<a name="l00009"></a>00009 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span>
<a name="l00010"></a>00010 <span class="comment"> * (at your option) any later version. *</span>
<a name="l00011"></a>00011 <span class="comment"> * *</span>
<a name="l00012"></a>00012 <span class="comment"> ***************************************************************************/</span>
<a name="l00013"></a>00013
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef CONTEXT_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define CONTEXT_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include <string.h></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include <time.h></span> <span class="comment">// for time_t</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include "<a class="code" href="libofx-0_89_80_2inc_2libofx_8h.html" title="Main header file containing the LibOfx API.">libofx.h</a>"</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include "ParserEventGeneratorKit.h"</span>
<a name="l00020"></a>00020
<a name="l00021"></a>00021 <span class="preprocessor">#include <string></span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="keyword">using namespace </span>std;
<a name="l00025"></a><a class="code" href="classLibofxContext.html">00025</a> <span class="keyword">class </span><a class="code" href="classLibofxContext.html">LibofxContext</a> {
<a name="l00026"></a>00026 <span class="keyword">private</span>:
<a name="l00027"></a>00027 <a class="code" href="inc_2libofx_8h.html#954c5e33f48105c5d932d4842e7736de">LibofxFileFormat</a> _current_file_type;
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <a class="code" href="inc_2libofx_8h.html#50daae5a31dcfb84db8ede120f28c2db" title="The callback function for the OfxStatusData stucture.">LibofxProcStatusCallback</a> _statusCallback;
<a name="l00030"></a>00030 <a class="code" href="inc_2libofx_8h.html#1d20edeaa14f8da3dbeb98fb4af0aa0b" title="The callback function for the OfxAccountData stucture.">LibofxProcAccountCallback</a> _accountCallback;
<a name="l00031"></a>00031 <a class="code" href="inc_2libofx_8h.html#05780ed831281da04cc4c65682c1989f" title="The callback function for the OfxSecurityData stucture.">LibofxProcSecurityCallback</a> _securityCallback;
<a name="l00032"></a>00032 <a class="code" href="inc_2libofx_8h.html#35d231437fba371dcd4553c4c5c29901" title="The callback function for the OfxTransactionData stucture.">LibofxProcTransactionCallback</a> _transactionCallback;
<a name="l00033"></a>00033 <a class="code" href="inc_2libofx_8h.html#457cbf849ad1ac5914cfb8bdeaccf4d5" title="The callback function for the OfxStatementData stucture.">LibofxProcStatementCallback</a> _statementCallback;
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordtype">void</span> * _statementData;
<a name="l00036"></a>00036 <span class="keywordtype">void</span> * _accountData;
<a name="l00037"></a>00037 <span class="keywordtype">void</span> * _transactionData;
<a name="l00038"></a>00038 <span class="keywordtype">void</span> * _securityData;
<a name="l00039"></a>00039 <span class="keywordtype">void</span> * _statusData;
<a name="l00040"></a>00040
<a name="l00041"></a>00041 std::string _dtdDir;
<a name="l00042"></a>00042
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00044"></a>00044 <a class="code" href="classLibofxContext.html#7cb5338d000d5e9d31225878b639250b">LibofxContext</a>();
<a name="l00045"></a>00045 <a class="code" href="classLibofxContext.html#08c06eedebc157876ff10c76570836e3">~LibofxContext</a>();
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <a class="code" href="inc_2libofx_8h.html#954c5e33f48105c5d932d4842e7736de">LibofxFileFormat</a> <a class="code" href="classLibofxContext.html#bce0e8268dfd2bf42c795cef81367388">currentFileType</a>() <span class="keyword">const</span>;
<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#4d2c3cd388505cb022910f1a90add712">setCurrentFileType</a>(<a class="code" href="inc_2libofx_8h.html#954c5e33f48105c5d932d4842e7736de">LibofxFileFormat</a> t);
<a name="l00049"></a>00049
<a name="l00050"></a><a class="code" href="classLibofxContext.html#6dae6a246107b895953e071896891cca">00050</a> <span class="keyword">const</span> std::string &<a class="code" href="classLibofxContext.html#6dae6a246107b895953e071896891cca">dtdDir</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _dtdDir;};
<a name="l00051"></a><a class="code" href="classLibofxContext.html#4980d93a2eaadae7c6ff2cff26be003d">00051</a> <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#4980d93a2eaadae7c6ff2cff26be003d">setDtdDir</a>(<span class="keyword">const</span> std::string &s) {_dtdDir=s;};
<a name="l00052"></a>00052
<a name="l00053"></a>00053 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#c89155697361ad0aa8aff5da19370709">statementCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxStatementData.html" title="An abstraction of an account statement.">OfxStatementData</a> data);
<a name="l00054"></a>00054 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#ff6d360f9413f4bd463e101502201c5a">accountCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxAccountData.html" title="An abstraction of an account.">OfxAccountData</a> data);
<a name="l00055"></a>00055 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#9a74ef2ba7748db76b993dee07b7f47c">transactionCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxTransactionData.html" title="An abstraction of a transaction in an account.">OfxTransactionData</a> data);
<a name="l00056"></a>00056 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#7475e62f44e4e9351f193697956d88cd">securityCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxSecurityData.html" title="An abstraction of a security, such as a stock, mutual fund, etc.">OfxSecurityData</a> data);
<a name="l00057"></a>00057 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#97356a19c06c5609a9dc228286493db3">statusCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxStatusData.html" title="An abstraction of an OFX STATUS element.">OfxStatusData</a> data);
<a name="l00058"></a>00058
<a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#c9a366e3bc8db89ef721e1e2ef57a8d6">setStatusCallback</a>(<a class="code" href="inc_2libofx_8h.html#50daae5a31dcfb84db8ede120f28c2db" title="The callback function for the OfxStatusData stucture.">LibofxProcStatusCallback</a> cb, <span class="keywordtype">void</span> *user_data);
<a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#b02f2c152eb2639e3b02dcbd919036b8">setAccountCallback</a>(<a class="code" href="inc_2libofx_8h.html#1d20edeaa14f8da3dbeb98fb4af0aa0b" title="The callback function for the OfxAccountData stucture.">LibofxProcAccountCallback</a> cb, <span class="keywordtype">void</span> *user_data);
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#d3ab77c33566ca7227613e1fbb36ea1b">setSecurityCallback</a>(<a class="code" href="inc_2libofx_8h.html#05780ed831281da04cc4c65682c1989f" title="The callback function for the OfxSecurityData stucture.">LibofxProcSecurityCallback</a> cb, <span class="keywordtype">void</span> *user_data);
<a name="l00062"></a>00062 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#d5575fed475d9a755d71ff1f90d7ea98">setTransactionCallback</a>(<a class="code" href="inc_2libofx_8h.html#35d231437fba371dcd4553c4c5c29901" title="The callback function for the OfxTransactionData stucture.">LibofxProcTransactionCallback</a> cb, <span class="keywordtype">void</span> *user_data);
<a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#8a1337b72f678900606b924806603855">setStatementCallback</a>(<a class="code" href="inc_2libofx_8h.html#457cbf849ad1ac5914cfb8bdeaccf4d5" title="The callback function for the OfxStatementData stucture.">LibofxProcStatementCallback</a> cb, <span class="keywordtype">void</span> *user_data);
<a name="l00064"></a>00064
<a name="l00065"></a>00065
<a name="l00066"></a>00066 };<span class="comment">//End class LibofxContext</span>
<a name="l00067"></a>00067
<a name="l00068"></a>00068
<a name="l00069"></a>00069
<a name="l00070"></a>00070
<a name="l00071"></a>00071 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 19 20:27:58 2007 for LibOFX by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>
|