File: fx-0_89_810_2lib_2ofx__aggregate_8hh_source.html

package info (click to toggle)
libofx 1%3A0.9.10-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 11,192 kB
  • sloc: sh: 11,428; cpp: 6,240; ansic: 2,459; makefile: 170; xml: 61
file content (137 lines) | stat: -rw-r--r-- 13,494 bytes parent folder | download | duplicates (3)
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
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>LibOFX: ofx_aggregate.hh Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<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>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;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&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('fx-0_89_810_2lib_2ofx__aggregate_8hh_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">fx-0.9.10/lib/ofx_aggregate.hh</div>  </div>
</div><!--header-->
<div class="contents">
<a href="fx-0_89_810_2lib_2ofx__aggregate_8hh.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/***************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">                          ofx_aggregate.hh</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">                             -------------------</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">    copyright            : (C) 2005 by Ace Jones</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">    email                : acejones@users.sourceforge.net</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">***************************************************************************/</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">/***************************************************************************</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *                                                                         *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   This program is free software; you can redistribute it and/or modify  *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *   it under the terms of the GNU General Public License as published by  *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *   the Free Software Foundation; either version 2 of the License, or     *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   (at your option) any later version.                                   *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *                                                                         *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> ***************************************************************************/</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef OFX_AGGREGATE_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define OFX_AGGREGATE_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">class </span><a class="code" href="classOfxAggregate.html">OfxAggregate</a></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;{</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classOfxAggregate.html#acc6e48f024666176d3b6f1feb1acfd77">   50</a></span>&#160;  <a class="code" href="classOfxAggregate.html#acc6e48f024666176d3b6f1feb1acfd77">OfxAggregate</a>( <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; tag ): m_tag( tag )</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  {}</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classOfxAggregate.html#a5abc7ac34d575eaecde5f16310c766b8">   59</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classOfxAggregate.html#a5abc7ac34d575eaecde5f16310c766b8">Add</a>( <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; tag, <span class="keyword">const</span> <span class="keywordtype">string</span>&amp; data )</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    m_contents += string(<span class="stringliteral">&quot;&lt;&quot;</span>) + tag + string(<span class="stringliteral">&quot;&gt;&quot;</span>) + data + string(<span class="stringliteral">&quot;\r\n&quot;</span>);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  }</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classOfxAggregate.html#a2b729bb656f47efcf2bcfffaa22814e9">   69</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classOfxAggregate.html#a2b729bb656f47efcf2bcfffaa22814e9">Add</a>( <span class="keyword">const</span> <a class="code" href="classOfxAggregate.html">OfxAggregate</a>&amp; sub )</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    m_contents += sub.<a class="code" href="classOfxAggregate.html#ab430ce663510ff8eea83bbe0e3bedf6d">Output</a>();</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  }</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classOfxAggregate.html#ab430ce663510ff8eea83bbe0e3bedf6d">   79</a></span>&#160;  <span class="keywordtype">string</span> <a class="code" href="classOfxAggregate.html#ab430ce663510ff8eea83bbe0e3bedf6d">Output</a>( <span class="keywordtype">void</span> )<span class="keyword"> const</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="keyword">  </span>{</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordflow">return</span> string(<span class="stringliteral">&quot;&lt;&quot;</span>) + m_tag + string(<span class="stringliteral">&quot;&gt;\r\n&quot;</span>) + m_contents + string(<span class="stringliteral">&quot;&lt;/&quot;</span>) + m_tag + string(<span class="stringliteral">&quot;&gt;\r\n&quot;</span>);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  }</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="keywordtype">string</span> m_tag;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  <span class="keywordtype">string</span> m_contents;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;};</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">#endif // OFX_AGGREGATE_H</span></div>
<div class="ttc" id="classOfxAggregate_html_ab430ce663510ff8eea83bbe0e3bedf6d"><div class="ttname"><a href="classOfxAggregate.html#ab430ce663510ff8eea83bbe0e3bedf6d">OfxAggregate::Output</a></div><div class="ttdeci">string Output(void) const </div><div class="ttdef"><b>Definition:</b> <a href="ofx__aggregate_8hh_source.html#l00079">ofx_aggregate.hh:79</a></div></div>
<div class="ttc" id="classOfxAggregate_html"><div class="ttname"><a href="classOfxAggregate.html">OfxAggregate</a></div><div class="ttdoc">A single aggregate as described in the OFX 1.02 specification. </div><div class="ttdef"><b>Definition:</b> <a href="ofx__aggregate_8hh_source.html#l00042">ofx_aggregate.hh:42</a></div></div>
<div class="ttc" id="classOfxAggregate_html_a5abc7ac34d575eaecde5f16310c766b8"><div class="ttname"><a href="classOfxAggregate.html#a5abc7ac34d575eaecde5f16310c766b8">OfxAggregate::Add</a></div><div class="ttdeci">void Add(const string &amp;tag, const string &amp;data)</div><div class="ttdef"><b>Definition:</b> <a href="fx-0_89_810_2lib_2ofx__aggregate_8hh_source.html#l00059">fx-0.9.10/lib/ofx_aggregate.hh:59</a></div></div>
<div class="ttc" id="classOfxAggregate_html_a2b729bb656f47efcf2bcfffaa22814e9"><div class="ttname"><a href="classOfxAggregate.html#a2b729bb656f47efcf2bcfffaa22814e9">OfxAggregate::Add</a></div><div class="ttdeci">void Add(const OfxAggregate &amp;sub)</div><div class="ttdef"><b>Definition:</b> <a href="fx-0_89_810_2lib_2ofx__aggregate_8hh_source.html#l00069">fx-0.9.10/lib/ofx_aggregate.hh:69</a></div></div>
<div class="ttc" id="classOfxAggregate_html_acc6e48f024666176d3b6f1feb1acfd77"><div class="ttname"><a href="classOfxAggregate.html#acc6e48f024666176d3b6f1feb1acfd77">OfxAggregate::OfxAggregate</a></div><div class="ttdeci">OfxAggregate(const string &amp;tag)</div><div class="ttdef"><b>Definition:</b> <a href="fx-0_89_810_2lib_2ofx__aggregate_8hh_source.html#l00050">fx-0.9.10/lib/ofx_aggregate.hh:50</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_2dabe2c45d94ff6afd4ea031fd8e0e92.html">libofx-0.9.10</a></li><li class="navelem"><a class="el" href="dir_4173102e197cd33c0b2a8d4b2328250f.html">lib</a></li><li class="navelem"><a class="el" href="fx-0_89_810_2lib_2ofx__aggregate_8hh.html">ofx_aggregate.hh</a></li>
    <li class="footer">Generated on Fri Sep 12 2014 15:59:20 for LibOFX by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>