<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>LibOFX: context.hh Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">LibOFX</div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.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> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('context_8hh.html',''); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">context.hh</div> </div> </div> <div class="contents"> <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 "libofx.h"</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 { <a name="l00027"></a>00027 <span class="keyword">private</span>: <a name="l00028"></a>00028 <a class="code" href="inc_2libofx_8h.html#a954c5e33f48105c5d932d4842e7736de">LibofxFileFormat</a> _current_file_type; <a name="l00029"></a>00029 <a name="l00030"></a>00030 <a class="code" href="inc_2libofx_8h.html#a25bf530f8298fd05be85a0c228aa7883" title="The callback function for the OfxStatusData stucture.">LibofxProcStatusCallback</a> _statusCallback; <a name="l00031"></a>00031 <a class="code" href="inc_2libofx_8h.html#a3e05059785cdb68c928d111678f2b92a" title="The callback function for the OfxAccountData stucture.">LibofxProcAccountCallback</a> _accountCallback; <a name="l00032"></a>00032 <a class="code" href="inc_2libofx_8h.html#a686350ce144a048171fce11875caf78e" title="The callback function for the OfxSecurityData stucture.">LibofxProcSecurityCallback</a> _securityCallback; <a name="l00033"></a>00033 <a class="code" href="inc_2libofx_8h.html#a7226e9ff60c6e7773d5c0b3113757d44" title="The callback function for the OfxTransactionData stucture.">LibofxProcTransactionCallback</a> _transactionCallback; <a name="l00034"></a>00034 <a class="code" href="inc_2libofx_8h.html#aa73c1296549403d770b6aebc783ef4f2" title="The callback function for the OfxStatementData stucture.">LibofxProcStatementCallback</a> _statementCallback; <a name="l00035"></a>00035 <a name="l00036"></a>00036 <span class="keywordtype">void</span> * _statementData; <a name="l00037"></a>00037 <span class="keywordtype">void</span> * _accountData; <a name="l00038"></a>00038 <span class="keywordtype">void</span> * _transactionData; <a name="l00039"></a>00039 <span class="keywordtype">void</span> * _securityData; <a name="l00040"></a>00040 <span class="keywordtype">void</span> * _statusData; <a name="l00041"></a>00041 <a name="l00042"></a>00042 std::string _dtdDir; <a name="l00043"></a>00043 <a name="l00044"></a>00044 <span class="keyword">public</span>: <a name="l00045"></a>00045 <a class="code" href="classLibofxContext.html">LibofxContext</a>(); <a name="l00046"></a>00046 ~<a class="code" href="classLibofxContext.html">LibofxContext</a>(); <a name="l00047"></a>00047 <a name="l00048"></a>00048 <a class="code" href="inc_2libofx_8h.html#a954c5e33f48105c5d932d4842e7736de">LibofxFileFormat</a> currentFileType() <span class="keyword">const</span>; <a name="l00049"></a>00049 <span class="keywordtype">void</span> setCurrentFileType(<a class="code" href="inc_2libofx_8h.html#a954c5e33f48105c5d932d4842e7736de">LibofxFileFormat</a> t); <a name="l00050"></a>00050 <a name="l00051"></a>00051 <span class="keyword">const</span> std::string &dtdDir()<span class="keyword"> const</span> <a name="l00052"></a>00052 <span class="keyword"> </span>{ <a name="l00053"></a>00053 <span class="keywordflow">return</span> _dtdDir; <a name="l00054"></a>00054 }; <a name="l00055"></a>00055 <span class="keywordtype">void</span> setDtdDir(<span class="keyword">const</span> std::string &s) <a name="l00056"></a>00056 { <a name="l00057"></a>00057 _dtdDir = s; <a name="l00058"></a>00058 }; <a name="l00059"></a>00059 <a name="l00060"></a>00060 <span class="keywordtype">int</span> statementCallback(<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="l00061"></a>00061 <span class="keywordtype">int</span> accountCallback(<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="l00062"></a>00062 <span class="keywordtype">int</span> transactionCallback(<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="l00063"></a>00063 <span class="keywordtype">int</span> securityCallback(<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="l00064"></a>00064 <span class="keywordtype">int</span> statusCallback(<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="l00065"></a>00065 <a name="l00066"></a>00066 <span class="keywordtype">void</span> setStatusCallback(<a class="code" href="inc_2libofx_8h.html#a25bf530f8298fd05be85a0c228aa7883" title="The callback function for the OfxStatusData stucture.">LibofxProcStatusCallback</a> cb, <span class="keywordtype">void</span> *user_data); <a name="l00067"></a>00067 <span class="keywordtype">void</span> setAccountCallback(<a class="code" href="inc_2libofx_8h.html#a3e05059785cdb68c928d111678f2b92a" title="The callback function for the OfxAccountData stucture.">LibofxProcAccountCallback</a> cb, <span class="keywordtype">void</span> *user_data); <a name="l00068"></a>00068 <span class="keywordtype">void</span> setSecurityCallback(<a class="code" href="inc_2libofx_8h.html#a686350ce144a048171fce11875caf78e" title="The callback function for the OfxSecurityData stucture.">LibofxProcSecurityCallback</a> cb, <span class="keywordtype">void</span> *user_data); <a name="l00069"></a>00069 <span class="keywordtype">void</span> setTransactionCallback(<a class="code" href="inc_2libofx_8h.html#a7226e9ff60c6e7773d5c0b3113757d44" title="The callback function for the OfxTransactionData stucture.">LibofxProcTransactionCallback</a> cb, <span class="keywordtype">void</span> *user_data); <a name="l00070"></a>00070 <span class="keywordtype">void</span> setStatementCallback(<a class="code" href="inc_2libofx_8h.html#aa73c1296549403d770b6aebc783ef4f2" title="The callback function for the OfxStatementData stucture.">LibofxProcStatementCallback</a> cb, <span class="keywordtype">void</span> *user_data); <a name="l00071"></a>00071 <a name="l00072"></a>00072 <a name="l00073"></a>00073 };<span class="comment">//End class LibofxContext</span> <a name="l00074"></a>00074 <a name="l00075"></a>00075 <a name="l00076"></a>00076 <a name="l00077"></a>00077 <a name="l00078"></a>00078 <span class="preprocessor">#endif</span> </pre></div></div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>context.hh</b> </li> <li class="footer">Generated on Wed Apr 17 2013 22:12:00 for LibOFX by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li> </ul> </div> </body> </html>