31
27
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define CONTEXT_H</span>
32
28
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include <string.h></span>
33
29
<a name="l00017"></a>00017 <span class="preprocessor">#include <time.h></span> <span class="comment">// for time_t</span>
34
<a name="l00018"></a>00018 <span class="preprocessor">#include "<a class="code" href="libofx-0_88_82_2inc_2libofx_8h.html">libofx.h</a>"</span>
30
<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>
35
31
<a name="l00019"></a>00019 <span class="preprocessor">#include "ParserEventGeneratorKit.h"</span>
36
32
<a name="l00020"></a>00020
37
<a name="l00021"></a>00021 <span class="keyword">using namespace </span>std;
38
<a name="l00022"></a><a class="code" href="classLibofxContext.html">00022</a> <span class="keyword">class </span><a class="code" href="classLibofxContext.html">LibofxContext</a> {
39
<a name="l00023"></a>00023 <span class="keyword">private</span>:
40
<a name="l00024"></a>00024 <a class="code" href="inc_2libofx_8h.html#b13650ecdb69a39a228ec00b995ffd84">LibofxFileFormat</a> _current_file_type;
41
<a name="l00025"></a>00025
42
<a name="l00026"></a>00026 <a class="code" href="inc_2libofx_8h.html#14155cb28af71092c8920c633337238a">LibofxProcStatusCallback</a> _statusCallback;
43
<a name="l00027"></a>00027 <a class="code" href="inc_2libofx_8h.html#d1e59908e86e1ce5458e08782f6ff264">LibofxProcAccountCallback</a> _accountCallback;
44
<a name="l00028"></a>00028 <a class="code" href="inc_2libofx_8h.html#aba3bbdf4c71ce498a36e115c2f96444">LibofxProcSecurityCallback</a> _securityCallback;
45
<a name="l00029"></a>00029 <a class="code" href="inc_2libofx_8h.html#9ebd0c663e69751b90e56888a835eb72">LibofxProcTransactionCallback</a> _transactionCallback;
46
<a name="l00030"></a>00030 <a class="code" href="inc_2libofx_8h.html#ebbf69e9ff550da0b0137b3cf3cfc916">LibofxProcStatementCallback</a> _statementCallback;
47
<a name="l00031"></a>00031
48
<a name="l00032"></a>00032 <span class="keywordtype">void</span> * _statementData;
49
<a name="l00033"></a>00033 <span class="keywordtype">void</span> * _accountData;
50
<a name="l00034"></a>00034 <span class="keywordtype">void</span> * _transactionData;
51
<a name="l00035"></a>00035 <span class="keywordtype">void</span> * _securityData;
52
<a name="l00036"></a>00036 <span class="keywordtype">void</span> * _statusData;
53
<a name="l00037"></a>00037
54
<a name="l00038"></a>00038 <span class="keyword">public</span>:
55
<a name="l00039"></a>00039 <a class="code" href="classLibofxContext.html#28abb9b82158ca0b42bccc27b1da9edf">LibofxContext</a>();
56
<a name="l00040"></a>00040 <a class="code" href="classLibofxContext.html#eac15ac8f1f140020ca7737317b1eb6c">~LibofxContext</a>();
57
<a name="l00041"></a>00041
58
<a name="l00042"></a>00042 <a class="code" href="inc_2libofx_8h.html#b13650ecdb69a39a228ec00b995ffd84">LibofxFileFormat</a> <a class="code" href="classLibofxContext.html#a1413e81ae62a4efd31f99e4465e4ba2">currentFileType</a>() <span class="keyword">const</span>;
59
<a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#2346c06f0effbcb6de0296662de49780">setCurrentFileType</a>(<a class="code" href="inc_2libofx_8h.html#b13650ecdb69a39a228ec00b995ffd84">LibofxFileFormat</a> t);
60
<a name="l00044"></a>00044
61
<a name="l00045"></a>00045 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#302efef8abcde0b6f1a76fa1f62ae828">statementCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxStatementData.html">OfxStatementData</a> data);
62
<a name="l00046"></a>00046 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#acdfbe18123b9ceff1c9fe425196bc9e">accountCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxAccountData.html">OfxAccountData</a> data);
63
<a name="l00047"></a>00047 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#ceb3a8c832fdd024f34d0e2e19fb12e7">transactionCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxTransactionData.html">OfxTransactionData</a> data);
64
<a name="l00048"></a>00048 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#a540fb9a3910bca4671b4cc6d248888f">securityCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxSecurityData.html">OfxSecurityData</a> data);
65
<a name="l00049"></a>00049 <span class="keywordtype">int</span> <a class="code" href="classLibofxContext.html#f2c0a10b25d27f5bcb36dc259d91a69f">statusCallback</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxStatusData.html">OfxStatusData</a> data);
66
<a name="l00050"></a>00050
67
<a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#573c4d84e50efad5a3a2e67a65f63603">setStatusCallback</a>(<a class="code" href="inc_2libofx_8h.html#14155cb28af71092c8920c633337238a">LibofxProcStatusCallback</a> cb, <span class="keywordtype">void</span> *user_data);
68
<a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#d5a7eca14f0c674369c23c6d99891b45">setAccountCallback</a>(<a class="code" href="inc_2libofx_8h.html#d1e59908e86e1ce5458e08782f6ff264">LibofxProcAccountCallback</a> cb, <span class="keywordtype">void</span> *user_data);
69
<a name="l00053"></a>00053 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#24264bc6e3bf0e72c1bd724ec49ecf36">setSecurityCallback</a>(<a class="code" href="inc_2libofx_8h.html#aba3bbdf4c71ce498a36e115c2f96444">LibofxProcSecurityCallback</a> cb, <span class="keywordtype">void</span> *user_data);
70
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#47596f40547ac590dc02de0ecf37a09f">setTransactionCallback</a>(<a class="code" href="inc_2libofx_8h.html#9ebd0c663e69751b90e56888a835eb72">LibofxProcTransactionCallback</a> cb, <span class="keywordtype">void</span> *user_data);
71
<a name="l00055"></a>00055 <span class="keywordtype">void</span> <a class="code" href="classLibofxContext.html#b205f609b1e459b381aacdbbf5555c5f">setStatementCallback</a>(<a class="code" href="inc_2libofx_8h.html#ebbf69e9ff550da0b0137b3cf3cfc916">LibofxProcStatementCallback</a> cb, <span class="keywordtype">void</span> *user_data);
72
<a name="l00056"></a>00056
73
<a name="l00057"></a>00057
74
<a name="l00058"></a>00058 };<span class="comment">//End class LibofxContext</span>
75
<a name="l00059"></a>00059
76
<a name="l00060"></a>00060
77
<a name="l00061"></a>00061
78
<a name="l00062"></a>00062
79
<a name="l00063"></a>00063 <span class="preprocessor">#endif</span>
80
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Aug 25 13:25:22 2006 for LibOFX by
33
<a name="l00021"></a>00021 <span class="preprocessor">#include <string></span>
34
<a name="l00022"></a>00022
35
<a name="l00023"></a>00023
36
<a name="l00024"></a>00024 <span class="keyword">using namespace </span>std;
37
<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> {
38
<a name="l00026"></a>00026 <span class="keyword">private</span>:
39
<a name="l00027"></a>00027 <a class="code" href="inc_2libofx_8h.html#954c5e33f48105c5d932d4842e7736de">LibofxFileFormat</a> _current_file_type;
40
<a name="l00028"></a>00028
41
<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;
42
<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;
43
<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;
44
<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;
45
<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;
46
<a name="l00034"></a>00034
47
<a name="l00035"></a>00035 <span class="keywordtype">void</span> * _statementData;
48
<a name="l00036"></a>00036 <span class="keywordtype">void</span> * _accountData;
49
<a name="l00037"></a>00037 <span class="keywordtype">void</span> * _transactionData;
50
<a name="l00038"></a>00038 <span class="keywordtype">void</span> * _securityData;
51
<a name="l00039"></a>00039 <span class="keywordtype">void</span> * _statusData;
52
<a name="l00040"></a>00040
53
<a name="l00041"></a>00041 std::string _dtdDir;
54
<a name="l00042"></a>00042
55
<a name="l00043"></a>00043 <span class="keyword">public</span>:
56
<a name="l00044"></a>00044 <a class="code" href="classLibofxContext.html#7cb5338d000d5e9d31225878b639250b">LibofxContext</a>();
57
<a name="l00045"></a>00045 <a class="code" href="classLibofxContext.html#08c06eedebc157876ff10c76570836e3">~LibofxContext</a>();
58
<a name="l00046"></a>00046
59
<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>;
60
<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);
61
<a name="l00049"></a>00049
62
<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;};
63
<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;};
64
<a name="l00052"></a>00052
65
<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);
66
<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);
67
<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);
68
<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);
69
<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);
70
<a name="l00058"></a>00058
71
<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);
72
<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);
73
<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);
74
<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);
75
<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);
76
<a name="l00064"></a>00064
77
<a name="l00065"></a>00065
78
<a name="l00066"></a>00066 };<span class="comment">//End class LibofxContext</span>
79
<a name="l00067"></a>00067
80
<a name="l00068"></a>00068
81
<a name="l00069"></a>00069
82
<a name="l00070"></a>00070
83
<a name="l00071"></a>00071 <span class="preprocessor">#endif</span>
84
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 19 20:27:58 2007 for LibOFX by
81
85
<a href="http://www.doxygen.org/index.html">
82
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
86
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>