~ubuntu-branches/ubuntu/natty/libofx/natty

« back to all changes in this revision

Viewing changes to doc/html/ofx__aggregate_8hh-source.html

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Bushnell, BSG
  • Date: 2005-11-29 00:12:00 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051129001200-aplj8zbj80f68xby
Tags: 1:0.8.0-9
Generate autotools using Debian libtool (rerun libtoolize --copy
--force, aclocal-1.9, autoconf). (Closes: #341190)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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">
 
5
</head><body>
 
6
<!-- Generated by Doxygen 1.3.9.1 -->
 
7
<div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
 
8
<div class="nav">
 
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>
 
24
00019 
 
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 &lt;string&gt;</span>
 
29
00024 
 
30
00025 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
 
31
00026 
 
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>
 
33
00043 {
 
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&amp; tag ): m_tag( tag ) 
 
36
00051   {}
 
37
00052   
 
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&amp; tag, <span class="keyword">const</span> string&amp; data )
 
39
00060   {
 
40
00061     m_contents += string(<span class="stringliteral">"&lt;"</span>) + tag + string(<span class="stringliteral">"&gt;"</span>) + data + string(<span class="stringliteral">"\r\n"</span>);
 
41
00062   }
 
42
00063   
 
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>&amp; sub ) 
 
44
00070   {
 
45
00071     m_contents += sub.<a class="code" href="classOfxAggregate.html#a3">Output</a>();
 
46
00072   }
 
47
00073  
 
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">"&lt;"</span>) + m_tag + string(<span class="stringliteral">"&gt;\r\n"</span>) + m_contents + string(<span class="stringliteral">"&lt;/"</span>) + m_tag + string(<span class="stringliteral">"&gt;\r\n"</span>);
 
51
00082   }
 
52
00083 
 
53
00084 <span class="keyword">private</span>:
 
54
00085   string m_tag;
 
55
00086   string m_contents;
 
56
00087 };
 
57
00088 
 
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&nbsp;
 
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>
 
62
</body>
 
63
</html>