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: ofx_aggregate.hh Source File</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.9.1 -->
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>
9
<a class="el" href="dir_000002.html">lib</a></div>
10
<h1>ofx_aggregate.hh</h1><a href="ofx__aggregate_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/***************************************************************************</span>
11
00002 <span class="comment"> ofx_aggregate.hh </span>
12
00003 <span class="comment"> -------------------</span>
13
00004 <span class="comment"> copyright : (C) 2005 by Ace Jones</span>
14
00005 <span class="comment"> email : acejones@users.sourceforge.net</span>
15
00006 <span class="comment">***************************************************************************/</span>
16
00011 <span class="comment">/***************************************************************************</span>
17
00012 <span class="comment"> * *</span>
18
00013 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span>
19
00014 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span>
20
00015 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span>
21
00016 <span class="comment"> * (at your option) any later version. *</span>
22
00017 <span class="comment"> * *</span>
23
00018 <span class="comment"> ***************************************************************************/</span>
25
00020 <span class="preprocessor">#ifndef OFX_AGGREGATE_H</span>
26
00021 <span class="preprocessor"></span><span class="preprocessor">#define OFX_AGGREGATE_H</span>
27
00022 <span class="preprocessor"></span>
28
00023 <span class="preprocessor">#include <string></span>
30
00025 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
32
<a name="l00042"></a><a class="code" href="classOfxAggregate.html">00042</a> <span class="keyword">class </span><a class="code" href="classOfxAggregate.html">OfxAggregate</a>
34
00044 <span class="keyword">public</span>:
35
<a name="l00050"></a><a class="code" href="classOfxAggregate.html#a0">00050</a> <a class="code" href="classOfxAggregate.html">OfxAggregate</a>( <span class="keyword">const</span> string& tag ): m_tag( tag )
38
<a name="l00059"></a><a class="code" href="classOfxAggregate.html#a1">00059</a> <span class="keywordtype">void</span> Add( <span class="keyword">const</span> string& tag, <span class="keyword">const</span> string& data )
40
00061 m_contents += string(<span class="stringliteral">"<"</span>) + tag + string(<span class="stringliteral">">"</span>) + data + string(<span class="stringliteral">"\r\n"</span>);
43
<a name="l00069"></a><a class="code" href="classOfxAggregate.html#a2">00069</a> <span class="keywordtype">void</span> Add( <span class="keyword">const</span> <a class="code" href="classOfxAggregate.html">OfxAggregate</a>& sub )
45
00071 m_contents += sub.<a class="code" href="classOfxAggregate.html#a3">Output</a>();
48
<a name="l00079"></a><a class="code" href="classOfxAggregate.html#a3">00079</a> string Output( <span class="keywordtype">void</span> )<span class="keyword"> const</span>
49
00080 <span class="keyword"> </span>{
50
00081 <span class="keywordflow">return</span> string(<span class="stringliteral">"<"</span>) + m_tag + string(<span class="stringliteral">">\r\n"</span>) + m_contents + string(<span class="stringliteral">"</"</span>) + m_tag + string(<span class="stringliteral">">\r\n"</span>);
53
00084 <span class="keyword">private</span>:
55
00086 string m_contents;
58
00089 <span class="preprocessor">#endif // OFX_AGGREGATE_H</span>
59
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Jul 31 15:38:34 2005 for LibOFX by
60
<a href="http://www.doxygen.org/index.html">
61
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>