File: ofx__utilities_8hh-source.html

package info (click to toggle)
libofx 1%3A0.9.0-3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 9,864 kB
  • ctags: 31,331
  • sloc: sh: 8,861; cpp: 5,714; ansic: 2,524; makefile: 204; xml: 61
file content (61 lines) | stat: -rw-r--r-- 6,696 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>LibOFX: ofx_utilities.hh Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
  </ul>
</div>
<h1>ofx_utilities.hh</h1><a href="ofx__utilities_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">                          ofx_util.h</span>
<a name="l00003"></a>00003 <span class="comment">                             -------------------</span>
<a name="l00004"></a>00004 <span class="comment">    copyright            : (C) 2002 by Benoit Grgoire</span>
<a name="l00005"></a>00005 <span class="comment">    email                : bock@step.polymtl.ca</span>
<a name="l00006"></a>00006 <span class="comment"> ***************************************************************************/</span>
<a name="l00010"></a>00010 <span class="comment">/***************************************************************************</span>
<a name="l00011"></a>00011 <span class="comment"> *                                                                         *</span>
<a name="l00012"></a>00012 <span class="comment"> *   This program is free software; you can redistribute it and/or modify  *</span>
<a name="l00013"></a>00013 <span class="comment"> *   it under the terms of the GNU General Public License as published by  *</span>
<a name="l00014"></a>00014 <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or     *</span>
<a name="l00015"></a>00015 <span class="comment"> *   (at your option) any later version.                                   *</span>
<a name="l00016"></a>00016 <span class="comment"> *                                                                         *</span>
<a name="l00017"></a>00017 <span class="comment"> ***************************************************************************/</span>
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef OFX_UTIL_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define OFX_UTIL_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;time.h&gt;</span>               <span class="comment">// for time_t</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "ParserEventGeneratorKit.h"</span>
<a name="l00023"></a>00023 <span class="keyword">using namespace </span>std;
<a name="l00024"></a>00024  <span class="comment">/* This file contains various simple functions for type conversion &amp; al */</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="comment">/*wostream &amp;operator&lt;&lt;(wostream &amp;os, SGMLApplication::CharString s); */</span>
<a name="l00027"></a>00027 
<a name="l00029"></a>00029 ostream &amp;<a class="code" href="ofx__utilities_8hh.html#39ffcaaff3de66030e3e59c2e3e98f8e" title="Convert OpenSP CharString to a C++ stream.">operator&lt;&lt;</a>(ostream &amp;os, SGMLApplication::CharString s);
<a name="l00030"></a>00030 
<a name="l00032"></a>00032 <span class="keywordtype">wchar_t</span>* <a class="code" href="ofx__utilities_8hh.html#2fd46abc036e918fce7b04d9200b3e75" title="Convert OpenSP CharString and put it in the C wchar_t string provided.">CharStringtowchar_t</a>(SGMLApplication::CharString source, <span class="keywordtype">wchar_t</span> *dest);  
<a name="l00033"></a>00033 
<a name="l00035"></a>00035 <span class="keywordtype">string</span> <a class="code" href="ofx__utilities_8cpp.html#e7575392f9f9c464ede10057dec0e8e4" title="Convert OpenSP CharString to a C++ STL string.">CharStringtostring</a>(<span class="keyword">const</span> SGMLApplication::CharString source, <span class="keywordtype">string</span> &amp;dest);
<a name="l00036"></a>00036 
<a name="l00038"></a>00038 <span class="keywordtype">string</span> <a class="code" href="ofx__utilities_8cpp.html#50b88c84b759d3058397336e7ea42c32" title="Append an OpenSP CharString to an existing C++ STL string.">AppendCharStringtostring</a>(<span class="keyword">const</span> SGMLApplication::CharString source, <span class="keywordtype">string</span> &amp;dest);
<a name="l00039"></a>00039 
<a name="l00041"></a>00041 time_t <a class="code" href="ofx__utilities_8cpp.html#5fdbbc08f8d80a534f8db03d25316d7a" title="Convert a C++ string containing a time in OFX format to a C time_t.">ofxdate_to_time_t</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> ofxdate);
<a name="l00042"></a>00042 
<a name="l00044"></a>00044 <span class="keywordtype">double</span> <a class="code" href="ofx__utilities_8cpp.html#bfca5b423e5d7b194eb53c53f706f6ba" title="Convert OFX amount of money to double float.">ofxamount_to_double</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> ofxamount);
<a name="l00045"></a>00045 
<a name="l00047"></a>00047 <span class="keywordtype">string</span> <a class="code" href="ofx__utilities_8cpp.html#34933785dd934134973847e58a700733" title="Sanitize a string coming from OpenSP.">strip_whitespace</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> para_string);
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="keywordtype">int</span> <a class="code" href="ofx__utilities_8cpp.html#a0e945c824a3012017b4babd721d9f38">mkTempFileName</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *tmpl, <span class="keywordtype">char</span> *buffer, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size);
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 19 20:27:59 2007 for LibOFX by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>