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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
|
<!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: ofx_containers.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>ofx_containers.hh</h1><a href="ofx__containers_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> ofx_proc_rs.h </span>
<a name="l00003"></a>00003 <span class="comment"> -------------------</span>
<a name="l00004"></a>00004 <span class="comment"> copyright : (C) 2002 by Benoit Grgoire</span>
<a name="l00005"></a>00005 <span class="comment"> email : bock@step.polymtl.ca</span>
<a name="l00006"></a>00006 <span class="comment">***************************************************************************/</span>
<a name="l00013"></a>00013 <span class="comment">/***************************************************************************</span>
<a name="l00014"></a>00014 <span class="comment"> * *</span>
<a name="l00015"></a>00015 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span>
<a name="l00016"></a>00016 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span>
<a name="l00017"></a>00017 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span>
<a name="l00018"></a>00018 <span class="comment"> * (at your option) any later version. *</span>
<a name="l00019"></a>00019 <span class="comment"> * *</span>
<a name="l00020"></a>00020 <span class="comment"> ***************************************************************************/</span>
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef OFX_PROC_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define OFX_PROC_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><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="l00024"></a>00024 <span class="preprocessor">#include "tree.hh"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "context.hh"</span>
<a name="l00026"></a>00026
<a name="l00027"></a>00027 <span class="keyword">using namespace </span>std;
<a name="l00028"></a>00028
<a name="l00033"></a><a class="code" href="classOfxGenericContainer.html">00033</a> <span class="keyword">class </span><a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00034"></a>00034 <span class="keyword">public</span>:
<a name="l00035"></a><a class="code" href="classOfxGenericContainer.html#2cad6fe32c79d320b8808d1e88b4e18a">00035</a> <span class="keywordtype">string</span> <a class="code" href="classOfxGenericContainer.html#2cad6fe32c79d320b8808d1e88b4e18a">type</a>;
<a name="l00036"></a><a class="code" href="classOfxGenericContainer.html#2594ccb63eaf769a6b4b5d224411f031">00036</a> <span class="keywordtype">string</span> <a class="code" href="classOfxGenericContainer.html#2594ccb63eaf769a6b4b5d224411f031">tag_identifier</a>;
<a name="l00037"></a><a class="code" href="classOfxGenericContainer.html#ff401a93eb35ca34b1e028dab30887ba">00037</a> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *<a class="code" href="classOfxGenericContainer.html#ff401a93eb35ca34b1e028dab30887ba">parentcontainer</a>;
<a name="l00038"></a><a class="code" href="classOfxGenericContainer.html#a2d199f4cd2a723ea2c935e83fbc340d">00038</a> <a class="code" href="classLibofxContext.html">LibofxContext</a> *<a class="code" href="classOfxGenericContainer.html#a2d199f4cd2a723ea2c935e83fbc340d">libofx_context</a>;
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <a class="code" href="classOfxGenericContainer.html#a304d5bef635e4771cc04f3d55b8faa0">OfxGenericContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context);
<a name="l00041"></a>00041 <a class="code" href="classOfxGenericContainer.html#a304d5bef635e4771cc04f3d55b8faa0">OfxGenericContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer);
<a name="l00042"></a>00042 <a class="code" href="classOfxGenericContainer.html#a304d5bef635e4771cc04f3d55b8faa0">OfxGenericContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00043"></a>00043
<a name="l00044"></a><a class="code" href="classOfxGenericContainer.html#c9ee3f711630e091b036009a2c69de97">00044</a> <span class="keyword">virtual</span> <a class="code" href="classOfxGenericContainer.html#c9ee3f711630e091b036009a2c69de97">~OfxGenericContainer</a>(){};
<a name="l00045"></a>00045
<a name="l00052"></a>00052 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOfxGenericContainer.html#6168716a931dc8e74bcb534fdadaf778" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00058"></a>00058 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classOfxGenericContainer.html#a8ffd0a68bcea4f0048b392af5078105" title="Generate libofx.h events.">gen_event</a>();
<a name="l00059"></a>00059
<a name="l00065"></a>00065 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classOfxGenericContainer.html#e9ddc283e5d9a2853d7e02b4d9584036" title="Add this container to the main tree.">add_to_main_tree</a>();
<a name="l00066"></a>00066
<a name="l00068"></a>00068 <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a>* <a class="code" href="classOfxGenericContainer.html#3d6e18d61e9e8f43a956e50cc5f90597" title="Returns the parent container object (the one representing the containing OFX SGML...">getparent</a>();
<a name="l00069"></a>00069 };<span class="comment">//End class OfxGenericObject</span>
<a name="l00070"></a>00070
<a name="l00075"></a><a class="code" href="classOfxDummyContainer.html">00075</a> <span class="keyword">class </span><a class="code" href="classOfxDummyContainer.html" title="A container to holds OFX SGML elements that LibOFX knows nothing about.">OfxDummyContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00076"></a>00076 <span class="keyword">public</span>:
<a name="l00077"></a>00077 <a class="code" href="classOfxDummyContainer.html#b28080b768be9d5d36d8b7791591bbcd">OfxDummyContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="classOfxDummyContainer.html#20a4287788197b0a787d94d450b85db3" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00079"></a>00079 };
<a name="l00080"></a>00080
<a name="l00085"></a><a class="code" href="classOfxPushUpContainer.html">00085</a> <span class="keyword">class </span><a class="code" href="classOfxPushUpContainer.html" title="A container to hold a OFX SGML element for which you want the parent to process it&#39;s...">OfxPushUpContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00086"></a>00086 <span class="keyword">public</span>:
<a name="l00087"></a>00087
<a name="l00088"></a>00088 <a class="code" href="classOfxPushUpContainer.html#1fa2e01710b00ce7bdb80d5c9fbb3d2c">OfxPushUpContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00089"></a>00089 <span class="keywordtype">void</span> <a class="code" href="classOfxPushUpContainer.html#192a69d44555a22ad7e8cb16d7db53f8" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00090"></a>00090 };
<a name="l00091"></a>00091
<a name="l00093"></a><a class="code" href="classOfxStatusContainer.html">00093</a> <span class="keyword">class </span><a class="code" href="classOfxStatusContainer.html" title="Represents the &lt;STATUS&gt; OFX SGML entity.">OfxStatusContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00094"></a>00094 <span class="keyword">public</span>:
<a name="l00095"></a><a class="code" href="classOfxStatusContainer.html#a840ebd1b3ce1aeecdcae7b92a988e38">00095</a> <a class="code" href="structOfxStatusData.html" title="An abstraction of an OFX STATUS element.">OfxStatusData</a> <a class="code" href="classOfxStatusContainer.html#a840ebd1b3ce1aeecdcae7b92a988e38">data</a>;
<a name="l00096"></a>00096
<a name="l00097"></a>00097 <a class="code" href="classOfxStatusContainer.html#5c46c8df8db712f6ad37b49fd6af5dc0">OfxStatusContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00098"></a>00098 <a class="code" href="classOfxStatusContainer.html#cedeebfa681e9b075c8168196752c2a8">~OfxStatusContainer</a>();
<a name="l00099"></a>00099 <span class="keywordtype">void</span> <a class="code" href="classOfxStatusContainer.html#eb1155c63fdbe5a6c5d46b891e3bb483" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00100"></a>00100 };
<a name="l00101"></a>00101
<a name="l00106"></a><a class="code" href="classOfxBalanceContainer.html">00106</a> <span class="keyword">class </span><a class="code" href="classOfxBalanceContainer.html" title="Represents the &lt;BALANCE&gt; OFX SGML entity.">OfxBalanceContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00107"></a>00107 <span class="keyword">public</span>:
<a name="l00108"></a>00108 <span class="comment">/* Not yet complete see spec 1.6 p.63 */</span>
<a name="l00109"></a>00109 <span class="comment">//char name[OFX_BALANCE_NAME_LENGTH];</span>
<a name="l00110"></a>00110 <span class="comment">//char description[OFX_BALANCE_DESCRIPTION_LENGTH];</span>
<a name="l00111"></a>00111 <span class="comment">//enum BalanceType{DOLLAR, PERCENT, NUMBER} balance_type;</span>
<a name="l00112"></a><a class="code" href="classOfxBalanceContainer.html#fff1080e7dc3a6f6e09f1c0d9c1dc68f">00112</a> <span class="keywordtype">double</span> <a class="code" href="classOfxBalanceContainer.html#fff1080e7dc3a6f6e09f1c0d9c1dc68f">amount</a>;
<a name="l00113"></a><a class="code" href="classOfxBalanceContainer.html#8ec139f87dfed172199cae86c4441c34">00113</a> <span class="keywordtype">int</span> <a class="code" href="classOfxBalanceContainer.html#8ec139f87dfed172199cae86c4441c34">amount_valid</a>;
<a name="l00114"></a><a class="code" href="classOfxBalanceContainer.html#63069560ec9ee3524688452b00f0a39d">00114</a> time_t <a class="code" href="classOfxBalanceContainer.html#63069560ec9ee3524688452b00f0a39d">date</a>;
<a name="l00115"></a><a class="code" href="classOfxBalanceContainer.html#63784a0db798c12aede0e3ff54888916">00115</a> <span class="keywordtype">int</span> <a class="code" href="classOfxBalanceContainer.html#63784a0db798c12aede0e3ff54888916">date_valid</a>;
<a name="l00116"></a>00116
<a name="l00117"></a>00117 <a class="code" href="classOfxBalanceContainer.html#96baefa68988c2d9c2f46f553d40599f">OfxBalanceContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00118"></a>00118 <a class="code" href="classOfxBalanceContainer.html#db4feb10b8e5328aab5025ff49fd43f5">~OfxBalanceContainer</a>();
<a name="l00119"></a>00119 <span class="keywordtype">void</span> <a class="code" href="classOfxBalanceContainer.html#85951ca6d29aeace59a9ca86453e8abb" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00120"></a>00120 };
<a name="l00121"></a>00121
<a name="l00122"></a>00122 <span class="comment">/***************************************************************************</span>
<a name="l00123"></a>00123 <span class="comment"> * OfxStatementContainer *</span>
<a name="l00124"></a>00124 <span class="comment"> ***************************************************************************/</span>
<a name="l00129"></a><a class="code" href="classOfxStatementContainer.html">00129</a> <span class="keyword">class </span><a class="code" href="classOfxStatementContainer.html" title="Represents a statement for either a bank account or a credit card account.">OfxStatementContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00130"></a>00130 <span class="keyword">public</span>:
<a name="l00131"></a><a class="code" href="classOfxStatementContainer.html#f645ef77c9844a86d8412d8c59f3b6fd">00131</a> <a class="code" href="structOfxStatementData.html" title="An abstraction of an account statement.">OfxStatementData</a> <a class="code" href="classOfxStatementContainer.html#f645ef77c9844a86d8412d8c59f3b6fd">data</a>;
<a name="l00132"></a>00132
<a name="l00133"></a>00133 <a class="code" href="classOfxStatementContainer.html#974c762415e209a77957ccabca3a4506">OfxStatementContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00134"></a>00134 <a class="code" href="classOfxStatementContainer.html#085def18d3414dc93d256b08d8f3ea2c">~OfxStatementContainer</a>();
<a name="l00135"></a>00135 <span class="keywordtype">void</span> <a class="code" href="classOfxStatementContainer.html#6e983ad3a842f76dd452a0aef1af0c57" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00136"></a>00136 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classOfxStatementContainer.html#4adfcf202dce4a8bfea9a05c7a137c1d" title="Add this container to the main tree.">add_to_main_tree</a>();
<a name="l00137"></a>00137 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classOfxStatementContainer.html#0b0b76db66caad13b369e59604f14fc7" title="Generate libofx.h events.">gen_event</a>();
<a name="l00138"></a>00138 <span class="keywordtype">void</span> <a class="code" href="classOfxStatementContainer.html#90996500eb442c33c2539eed823ec318">add_account</a>(<a class="code" href="structOfxAccountData.html" title="An abstraction of an account.">OfxAccountData</a> * account_data);
<a name="l00139"></a>00139 <span class="keywordtype">void</span> <a class="code" href="classOfxStatementContainer.html#91534efc97834de2ddfc66e4e0e75b5c">add_balance</a>(<a class="code" href="classOfxBalanceContainer.html" title="Represents the &lt;BALANCE&gt; OFX SGML entity.">OfxBalanceContainer</a>* ptr_balance_container);
<a name="l00140"></a>00140 <span class="comment">// void add_transaction(const OfxTransactionData transaction_data);</span>
<a name="l00141"></a>00141
<a name="l00142"></a>00142 };
<a name="l00143"></a>00143
<a name="l00144"></a>00144 <span class="comment">/***************************************************************************</span>
<a name="l00145"></a>00145 <span class="comment"> * OfxAccountContaine r *</span>
<a name="l00146"></a>00146 <span class="comment"> ***************************************************************************/</span>
<a name="l00151"></a><a class="code" href="classOfxAccountContainer.html">00151</a> <span class="keyword">class </span><a class="code" href="classOfxAccountContainer.html" title="Represents a bank account or a credit card account.">OfxAccountContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00152"></a>00152 <span class="keyword">public</span>:
<a name="l00153"></a><a class="code" href="classOfxAccountContainer.html#52d360c316f4ca22103a237a26088212">00153</a> <a class="code" href="structOfxAccountData.html" title="An abstraction of an account.">OfxAccountData</a> <a class="code" href="classOfxAccountContainer.html#52d360c316f4ca22103a237a26088212">data</a>;
<a name="l00154"></a>00154
<a name="l00155"></a>00155 <a class="code" href="classOfxAccountContainer.html#da1972a79e8c8096184ea7a22968f35c">OfxAccountContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00156"></a>00156 <a class="code" href="classOfxAccountContainer.html#64691a91027e92c8cbc5bb1240d3f1b8">~OfxAccountContainer</a>();
<a name="l00157"></a>00157 <span class="keywordtype">void</span> <a class="code" href="classOfxAccountContainer.html#8dc0972f64b251191e6aa509cb1f493b" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00158"></a>00158 <span class="keywordtype">int</span> <a class="code" href="classOfxAccountContainer.html#995f1933b2ecb3e33f991c092fbf3af4" title="Add this container to the main tree.">add_to_main_tree</a>();
<a name="l00159"></a>00159 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classOfxAccountContainer.html#20381080f3bdd19af2b2c364f208cdf4" title="Generate libofx.h events.">gen_event</a>();
<a name="l00160"></a>00160 <span class="keyword">private</span>:
<a name="l00161"></a>00161 <span class="keywordtype">void</span> gen_account_id(<span class="keywordtype">void</span>);
<a name="l00162"></a>00162 <span class="keywordtype">char</span> bankid[<a class="code" href="inc_2libofx_8h.html#70f2178af34abf7e98bee521b745f780">OFX_BANKID_LENGTH</a>];
<a name="l00163"></a>00163 <span class="keywordtype">char</span> branchid[<a class="code" href="inc_2libofx_8h.html#7aa5e724bd9557d21169289d98ae631a">OFX_BRANCHID_LENGTH</a>];
<a name="l00164"></a>00164 <span class="keywordtype">char</span> acctid[<a class="code" href="inc_2libofx_8h.html#68c0d75fde3884b2ace680ef8b5fdd07">OFX_ACCTID_LENGTH</a>];
<a name="l00165"></a>00165 <span class="keywordtype">char</span> acctkey[<a class="code" href="inc_2libofx_8h.html#89f43cb6e2af995c6024b7ddbb32b6b9">OFX_ACCTKEY_LENGTH</a>];
<a name="l00166"></a>00166 <span class="keywordtype">char</span> brokerid[<a class="code" href="inc_2libofx_8h.html#a1256fa7603b452e20a4701e2aae53d5">OFX_BROKERID_LENGTH</a>];
<a name="l00167"></a>00167 };
<a name="l00168"></a>00168
<a name="l00169"></a>00169 <span class="comment">/***************************************************************************</span>
<a name="l00170"></a>00170 <span class="comment"> * OfxSecurityContainer *</span>
<a name="l00171"></a>00171 <span class="comment"> ***************************************************************************/</span>
<a name="l00174"></a><a class="code" href="classOfxSecurityContainer.html">00174</a> <span class="keyword">class </span><a class="code" href="classOfxSecurityContainer.html" title="Represents a security, such as a stock or bond.">OfxSecurityContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00175"></a>00175 <span class="keyword">public</span>:
<a name="l00176"></a><a class="code" href="classOfxSecurityContainer.html#43397c78bdf1a342ca566e7524d36f0d">00176</a> <a class="code" href="structOfxSecurityData.html" title="An abstraction of a security, such as a stock, mutual fund, etc.">OfxSecurityData</a> <a class="code" href="classOfxSecurityContainer.html#43397c78bdf1a342ca566e7524d36f0d">data</a>;
<a name="l00177"></a>00177
<a name="l00178"></a>00178 <a class="code" href="classOfxSecurityContainer.html#6463edacc95fc03733c0e7fb6776c15f">OfxSecurityContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00179"></a>00179 <a class="code" href="classOfxSecurityContainer.html#5205f0a09177451b4a6420da7420c256">~OfxSecurityContainer</a>();
<a name="l00180"></a>00180 <span class="keywordtype">void</span> <a class="code" href="classOfxSecurityContainer.html#97f5d5e139d4cbba9790bedc06fa156e" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00181"></a>00181 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classOfxSecurityContainer.html#22357ade2036de78947ac0cc0ce01f2d" title="Generate libofx.h events.">gen_event</a>();
<a name="l00182"></a>00182 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classOfxSecurityContainer.html#cbaa6366a60d903ee3b3748c9874157f" title="Add this container to the main tree.">add_to_main_tree</a>();
<a name="l00183"></a>00183 <span class="keyword">private</span>:
<a name="l00184"></a>00184 <a class="code" href="classOfxStatementContainer.html" title="Represents a statement for either a bank account or a credit card account.">OfxStatementContainer</a> * parent_statement;
<a name="l00185"></a>00185 };
<a name="l00186"></a>00186
<a name="l00187"></a>00187
<a name="l00188"></a>00188 <span class="comment">/***************************************************************************</span>
<a name="l00189"></a>00189 <span class="comment"> * OfxTransactionContainer *</span>
<a name="l00190"></a>00190 <span class="comment"> ***************************************************************************/</span>
<a name="l00193"></a><a class="code" href="classOfxTransactionContainer.html">00193</a> <span class="keyword">class </span><a class="code" href="classOfxTransactionContainer.html" title="Represents a generic transaction.">OfxTransactionContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00194"></a>00194 <span class="keyword">public</span>:
<a name="l00195"></a><a class="code" href="classOfxTransactionContainer.html#309aeafe456a5fd7adb1f94adbfc91a1">00195</a> <a class="code" href="structOfxTransactionData.html" title="An abstraction of a transaction in an account.">OfxTransactionData</a> <a class="code" href="classOfxTransactionContainer.html#309aeafe456a5fd7adb1f94adbfc91a1">data</a>;
<a name="l00196"></a>00196
<a name="l00197"></a>00197 <a class="code" href="classOfxTransactionContainer.html#d43b43b1006be733490c4e25f8a41434">OfxTransactionContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00198"></a>00198 <a class="code" href="classOfxTransactionContainer.html#8c24bf77f0154df5bdf134ebac97b12e">~OfxTransactionContainer</a>();
<a name="l00199"></a>00199 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOfxTransactionContainer.html#efafa4ee0b6745e46e40b5bcafb322e6" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00200"></a>00200 <span class="keywordtype">void</span> <a class="code" href="classOfxTransactionContainer.html#c3228dd35282322803e75f9f9015422f">add_account</a>(<a class="code" href="structOfxAccountData.html" title="An abstraction of an account.">OfxAccountData</a> * account_data);
<a name="l00201"></a>00201
<a name="l00202"></a>00202 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classOfxTransactionContainer.html#733ee231fef8e72248cd9ab78b169a99" title="Generate libofx.h events.">gen_event</a>();
<a name="l00203"></a>00203 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classOfxTransactionContainer.html#f3e7ffa3a55d3c0c67229c436875ed1d" title="Add this container to the main tree.">add_to_main_tree</a>();
<a name="l00204"></a>00204 <span class="keyword">private</span>:
<a name="l00205"></a>00205 <a class="code" href="classOfxStatementContainer.html" title="Represents a statement for either a bank account or a credit card account.">OfxStatementContainer</a> * parent_statement;
<a name="l00206"></a>00206 };
<a name="l00207"></a>00207
<a name="l00212"></a><a class="code" href="classOfxBankTransactionContainer.html">00212</a> <span class="keyword">class </span><a class="code" href="classOfxBankTransactionContainer.html" title="Represents a bank or credid card transaction.">OfxBankTransactionContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxTransactionContainer.html" title="Represents a generic transaction.">OfxTransactionContainer</a> {
<a name="l00213"></a>00213 <span class="keyword">public</span>:
<a name="l00214"></a>00214 <a class="code" href="classOfxBankTransactionContainer.html#59d1936cd1cd0a66c4c0a8e993c123f4">OfxBankTransactionContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00215"></a>00215 <span class="keywordtype">void</span> <a class="code" href="classOfxBankTransactionContainer.html#9978c004a174afd5d013ca9806464d6d" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00216"></a>00216 };
<a name="l00217"></a>00217
<a name="l00222"></a><a class="code" href="classOfxInvestmentTransactionContainer.html">00222</a> <span class="keyword">class </span><a class="code" href="classOfxInvestmentTransactionContainer.html" title="Represents a bank or credid card transaction.">OfxInvestmentTransactionContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxTransactionContainer.html" title="Represents a generic transaction.">OfxTransactionContainer</a> {
<a name="l00223"></a>00223 <span class="keyword">public</span>:
<a name="l00224"></a>00224 <a class="code" href="classOfxInvestmentTransactionContainer.html#ffd3c5d7c722248c8b07c44d6495f2ed">OfxInvestmentTransactionContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00225"></a>00225
<a name="l00226"></a>00226 <span class="keywordtype">void</span> <a class="code" href="classOfxInvestmentTransactionContainer.html#9122d7feb698cf423f92ec03aecb1e45" title="Add data to a container object.">add_attribute</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> identifier, <span class="keyword">const</span> <span class="keywordtype">string</span> value);
<a name="l00227"></a>00227 };
<a name="l00228"></a>00228
<a name="l00229"></a>00229 <span class="comment">/***************************************************************************</span>
<a name="l00230"></a>00230 <span class="comment"> * OfxMainContainer *</span>
<a name="l00231"></a>00231 <span class="comment"> ***************************************************************************/</span>
<a name="l00236"></a><a class="code" href="classOfxMainContainer.html">00236</a> <span class="keyword">class </span><a class="code" href="classOfxMainContainer.html" title="The root container. Created by the &lt;OFX&gt; OFX element or by the export functions...">OfxMainContainer</a>:<span class="keyword">public</span> <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> {
<a name="l00237"></a>00237 <span class="keyword">public</span>:
<a name="l00238"></a>00238 <a class="code" href="classOfxMainContainer.html#bdecebdd778e0169bcb7389f8db0454d">OfxMainContainer</a>(<a class="code" href="classLibofxContext.html">LibofxContext</a> *p_libofx_context, <a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> *para_parentcontainer, <span class="keywordtype">string</span> para_tag_identifier);
<a name="l00239"></a>00239 <a class="code" href="classOfxMainContainer.html#195e97a1121a6efdf898bd1cc5c43f8f">~OfxMainContainer</a>();
<a name="l00240"></a>00240 <span class="keywordtype">int</span> <a class="code" href="classOfxMainContainer.html#bf9596f27e1f2382fe6f1054d2a00e1d">add_container</a>(<a class="code" href="classOfxGenericContainer.html" title="A generic container for an OFX SGML element. Every container inherits from OfxGenericContainer...">OfxGenericContainer</a> * container);
<a name="l00241"></a>00241 <span class="keywordtype">int</span> <a class="code" href="classOfxMainContainer.html#bf9596f27e1f2382fe6f1054d2a00e1d">add_container</a>(<a class="code" href="classOfxStatementContainer.html" title="Represents a statement for either a bank account or a credit card account.">OfxStatementContainer</a> * container);
<a name="l00242"></a>00242 <span class="keywordtype">int</span> <a class="code" href="classOfxMainContainer.html#bf9596f27e1f2382fe6f1054d2a00e1d">add_container</a>(<a class="code" href="classOfxAccountContainer.html" title="Represents a bank account or a credit card account.">OfxAccountContainer</a> * container);
<a name="l00243"></a>00243 <span class="keywordtype">int</span> <a class="code" href="classOfxMainContainer.html#bf9596f27e1f2382fe6f1054d2a00e1d">add_container</a>(<a class="code" href="classOfxTransactionContainer.html" title="Represents a generic transaction.">OfxTransactionContainer</a> * container);
<a name="l00244"></a>00244 <span class="keywordtype">int</span> <a class="code" href="classOfxMainContainer.html#bf9596f27e1f2382fe6f1054d2a00e1d">add_container</a>(<a class="code" href="classOfxSecurityContainer.html" title="Represents a security, such as a stock or bond.">OfxSecurityContainer</a> * container);
<a name="l00245"></a>00245 <span class="keywordtype">int</span> <a class="code" href="classOfxMainContainer.html#e0b60f837b87b912f70a6f19bab12c52" title="Generate libofx.h events.">gen_event</a>();
<a name="l00246"></a>00246 <a class="code" href="structOfxSecurityData.html" title="An abstraction of a security, such as a stock, mutual fund, etc.">OfxSecurityData</a> * <a class="code" href="classOfxMainContainer.html#054cf887c77188c235d9b964ae44efa5">find_security</a>(<span class="keywordtype">string</span> unique_id);
<a name="l00247"></a>00247 <span class="keyword">private</span>:
<a name="l00248"></a>00248 <a class="code" href="classtree.html">tree<OfxGenericContainer *></a> security_tree;
<a name="l00249"></a>00249 <a class="code" href="classtree.html">tree<OfxGenericContainer *></a> account_tree;
<a name="l00250"></a>00250 };
<a name="l00251"></a>00251
<a name="l00252"></a>00252
<a name="l00253"></a>00253 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 19 20:27:59 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>
|