1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>LibOFX: context.hh Source File</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.7 -->
7
<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
8
<h1>context.hh</h1><pre class="fragment"><div>00001
9
00005 <span class="comment">/***************************************************************************</span>
10
00006 <span class="comment"> * *</span>
11
00007 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span>
12
00008 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span>
13
00009 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span>
14
00010 <span class="comment"> * (at your option) any later version. *</span>
15
00011 <span class="comment"> * *</span>
16
00012 <span class="comment"> ***************************************************************************/</span>
18
00014 <span class="preprocessor">#ifndef CONTEXT_H</span>
19
00015 <span class="preprocessor"></span><span class="preprocessor">#define CONTEXT_H</span>
20
00016 <span class="preprocessor"></span><span class="preprocessor">#include <string.h></span>
21
00017 <span class="preprocessor">#include <time.h></span> <span class="comment">// for time_t</span>
22
00018 <span class="preprocessor">#include "<a class="code" href="libofx-0_87_80_2inc_2libofx_8h.html">libofx.h</a>"</span>
23
00019 <span class="preprocessor">#include "ParserEventGeneratorKit.h"</span>
25
00021 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
26
00022 <span class="keyword">class </span>LibofxContext {
27
00023 <span class="keyword">private</span>:
28
00024 <a class="code" href="inc_2libofx_8h.html#a90">LibofxFileFormat</a> _current_file_type;
30
00026 <a class="code" href="inc_2libofx_8h.html#a29">LibofxProcStatusCallback</a> _statusCallback;
31
00027 <a class="code" href="inc_2libofx_8h.html#a30">LibofxProcAccountCallback</a> _accountCallback;
32
00028 <a class="code" href="inc_2libofx_8h.html#a31">LibofxProcSecurityCallback</a> _securityCallback;
33
00029 <a class="code" href="inc_2libofx_8h.html#a32">LibofxProcTransactionCallback</a> _transactionCallback;
34
00030 <a class="code" href="inc_2libofx_8h.html#a33">LibofxProcStatementCallback</a> _statementCallback;
36
00032 <span class="keywordtype">void</span> * _statementData;
37
00033 <span class="keywordtype">void</span> * _accountData;
38
00034 <span class="keywordtype">void</span> * _transactionData;
39
00035 <span class="keywordtype">void</span> * _securityData;
40
00036 <span class="keywordtype">void</span> * _statusData;
42
00038 <span class="keyword">public</span>:
43
00039 LibofxContext();
44
00040 ~LibofxContext();
46
00042 <a class="code" href="inc_2libofx_8h.html#a90">LibofxFileFormat</a> currentFileType() const;
47
00043 <span class="keywordtype">void</span> setCurrentFileType(LibofxFileFormat t);
49
00045 <span class="keywordtype">int</span> statementCallback(const struct <a class="code" href="structOfxStatementData.html">OfxStatementData</a> data);
50
00046 <span class="keywordtype">int</span> accountCallback(const struct <a class="code" href="structOfxAccountData.html">OfxAccountData</a> data);
51
00047 <span class="keywordtype">int</span> transactionCallback(const struct <a class="code" href="structOfxTransactionData.html">OfxTransactionData</a> data);
52
00048 <span class="keywordtype">int</span> securityCallback(const struct <a class="code" href="structOfxSecurityData.html">OfxSecurityData</a> data);
53
00049 <span class="keywordtype">int</span> statusCallback(const struct <a class="code" href="structOfxStatusData.html">OfxStatusData</a> data);
55
00051 <span class="keywordtype">void</span> setStatusCallback(LibofxProcStatusCallback cb, <span class="keywordtype">void</span> *user_data);
56
00052 <span class="keywordtype">void</span> setAccountCallback(LibofxProcAccountCallback cb, <span class="keywordtype">void</span> *user_data);
57
00053 <span class="keywordtype">void</span> setSecurityCallback(LibofxProcSecurityCallback cb, <span class="keywordtype">void</span> *user_data);
58
00054 <span class="keywordtype">void</span> setTransactionCallback(LibofxProcTransactionCallback cb, <span class="keywordtype">void</span> *user_data);
59
00055 <span class="keywordtype">void</span> setStatementCallback(LibofxProcStatementCallback cb, <span class="keywordtype">void</span> *user_data);
62
00058 };<span class="comment">//End class LibofxContext</span>
68
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Fri Oct 8 20:34:47 2004 for LibOFX by
69
<a href="http://www.doxygen.org/index.html">
70
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>