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
|
<!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_utilities.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 Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Data 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 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('ofx__utilities_8hh_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">ofx_utilities.hh</div> </div>
</div><!--header-->
<div class="contents">
<a href="ofx__utilities_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> <span class="comment">/***************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> ofx_util.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> -------------------</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> copyright : (C) 2002 by Benoit Gr�goire</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> email : benoitg@coeus.ca</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> ***************************************************************************/</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">/***************************************************************************</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * *</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * it under the terms of the GNU General Public License as published by *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * (at your option) any later version. *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> ***************************************************************************/</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#ifndef OFX_UTIL_H</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"></span><span class="preprocessor">#define OFX_UTIL_H</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor"></span><span class="preprocessor">#include <string.h></span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <time.h></span> <span class="comment">// for time_t</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "ParserEventGeneratorKit.h"</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">/* This file contains various simple functions for type conversion & al */</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">/*wostream &operator<<(wostream &os, SGMLApplication::CharString s); */</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> ostream &<a class="code" href="ofx__utilities_8hh.html#a39ffcaaff3de66030e3e59c2e3e98f8e">operator<<</a>(ostream &os, SGMLApplication::CharString s);</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keywordtype">wchar_t</span>* <a class="code" href="ofx__utilities_8hh.html#a2fd46abc036e918fce7b04d9200b3e75">CharStringtowchar_t</a>(SGMLApplication::CharString source, <span class="keywordtype">wchar_t</span> *dest);</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keywordtype">string</span> <a class="code" href="ofx__utilities_8hh.html#ae7575392f9f9c464ede10057dec0e8e4">CharStringtostring</a>(<span class="keyword">const</span> SGMLApplication::CharString source, <span class="keywordtype">string</span> &dest);</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keywordtype">string</span> <a class="code" href="ofx__utilities_8hh.html#a50b88c84b759d3058397336e7ea42c32">AppendCharStringtostring</a>(<span class="keyword">const</span> SGMLApplication::CharString source, <span class="keywordtype">string</span> &dest);</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> time_t <a class="code" href="ofx__utilities_8hh.html#a5fdbbc08f8d80a534f8db03d25316d7a">ofxdate_to_time_t</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> ofxdate);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keywordtype">double</span> <a class="code" href="ofx__utilities_8hh.html#abfca5b423e5d7b194eb53c53f706f6ba">ofxamount_to_double</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> ofxamount);</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keywordtype">string</span> <a class="code" href="ofx__utilities_8hh.html#a34933785dd934134973847e58a700733">strip_whitespace</a>(<span class="keyword">const</span> <span class="keywordtype">string</span> para_string);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="keywordtype">int</span> mkTempFileName(<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);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="ofx__utilities_8hh_html_a39ffcaaff3de66030e3e59c2e3e98f8e"><div class="ttname"><a href="ofx__utilities_8hh.html#a39ffcaaff3de66030e3e59c2e3e98f8e">operator<<</a></div><div class="ttdeci">ostream & operator<<(ostream &os, SGMLApplication::CharString s)</div><div class="ttdoc">Convert OpenSP CharString to a C++ stream. </div></div>
<div class="ttc" id="ofx__utilities_8hh_html_a34933785dd934134973847e58a700733"><div class="ttname"><a href="ofx__utilities_8hh.html#a34933785dd934134973847e58a700733">strip_whitespace</a></div><div class="ttdeci">string strip_whitespace(const string para_string)</div><div class="ttdoc">Sanitize a string coming from OpenSP. </div><div class="ttdef"><b>Definition:</b> <a href="ofx__utilities_8cpp_source.html#l00228">ofx_utilities.cpp:228</a></div></div>
<div class="ttc" id="ofx__utilities_8hh_html_ae7575392f9f9c464ede10057dec0e8e4"><div class="ttname"><a href="ofx__utilities_8hh.html#ae7575392f9f9c464ede10057dec0e8e4">CharStringtostring</a></div><div class="ttdeci">string CharStringtostring(const SGMLApplication::CharString source, string &dest)</div><div class="ttdoc">Convert OpenSP CharString to a C++ STL string. </div><div class="ttdef"><b>Definition:</b> <a href="ofx__utilities_8cpp_source.html#l00070">ofx_utilities.cpp:70</a></div></div>
<div class="ttc" id="ofx__utilities_8hh_html_a50b88c84b759d3058397336e7ea42c32"><div class="ttname"><a href="ofx__utilities_8hh.html#a50b88c84b759d3058397336e7ea42c32">AppendCharStringtostring</a></div><div class="ttdeci">string AppendCharStringtostring(const SGMLApplication::CharString source, string &dest)</div><div class="ttdoc">Append an OpenSP CharString to an existing C++ STL string. </div><div class="ttdef"><b>Definition:</b> <a href="ofx__utilities_8cpp_source.html#l00083">ofx_utilities.cpp:83</a></div></div>
<div class="ttc" id="ofx__utilities_8hh_html_abfca5b423e5d7b194eb53c53f706f6ba"><div class="ttname"><a href="ofx__utilities_8hh.html#abfca5b423e5d7b194eb53c53f706f6ba">ofxamount_to_double</a></div><div class="ttdeci">double ofxamount_to_double(const string ofxamount)</div><div class="ttdoc">Convert OFX amount of money to double float. </div><div class="ttdef"><b>Definition:</b> <a href="ofx__utilities_8cpp_source.html#l00205">ofx_utilities.cpp:205</a></div></div>
<div class="ttc" id="ofx__utilities_8hh_html_a5fdbbc08f8d80a534f8db03d25316d7a"><div class="ttname"><a href="ofx__utilities_8hh.html#a5fdbbc08f8d80a534f8db03d25316d7a">ofxdate_to_time_t</a></div><div class="ttdeci">time_t ofxdate_to_time_t(const string ofxdate)</div><div class="ttdoc">Convert a C++ string containing a time in OFX format to a C time_t. </div><div class="ttdef"><b>Definition:</b> <a href="ofx__utilities_8cpp_source.html#l00108">ofx_utilities.cpp:108</a></div></div>
<div class="ttc" id="ofx__utilities_8hh_html_a2fd46abc036e918fce7b04d9200b3e75"><div class="ttname"><a href="ofx__utilities_8hh.html#a2fd46abc036e918fce7b04d9200b3e75">CharStringtowchar_t</a></div><div class="ttdeci">wchar_t * CharStringtowchar_t(SGMLApplication::CharString source, wchar_t *dest)</div><div class="ttdoc">Convert OpenSP CharString and put it in the C wchar_t string provided. </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_92da12de3a7e435e6ac7f35fe8c95afc.html">lib</a></li><li class="navelem"><a class="el" href="ofx__utilities_8hh.html">ofx_utilities.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>
|