Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 8af49959c747c191f0b856cb63440106 > files > 133

libofx-0.6.2-2mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ofx_utilities.hh File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.14 -->
<center>
<a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<hr><h1>ofx_utilities.hh File Reference</h1>Various simple functions for type conversion &amp; al. 
<a href="#_details">More...</a>
<p>

<p>
<a href="ofx__utilities_8hh-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top>ostream &amp;&nbsp;</td><td valign=bottom><a class="el" href="ofx__utilities_8hh.html#a0">operator&lt;&lt;</a> (ostream &amp;os, SGMLApplication::CharString s)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert OpenSP CharString to a C++ stream.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a1" doxytag="ofx_utilities.hh::CharStringtowchar_t"></a>
wchar_t *&nbsp;</td><td valign=bottom><a class="el" href="ofx__utilities_8hh.html#a1">CharStringtowchar_t</a> (SGMLApplication::CharString source, wchar_t *dest)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert OpenSP CharString and put it in the C wchar_t string provided.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a2" doxytag="ofx_utilities.hh::CharStringtostring"></a>
string&nbsp;</td><td valign=bottom><a class="el" href="ofx__utilities_8hh.html#a2">CharStringtostring</a> (const SGMLApplication::CharString source, string &amp;dest)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert OpenSP CharString to a C++ STL string.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a3" doxytag="ofx_utilities.hh::AppendCharStringtostring"></a>
string&nbsp;</td><td valign=bottom><a class="el" href="ofx__utilities_8hh.html#a3">AppendCharStringtostring</a> (const SGMLApplication::CharString source, string &amp;dest)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Append an OpenSP CharString to an existing C++ STL string.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>time_t&nbsp;</td><td valign=bottom><a class="el" href="ofx__utilities_8hh.html#a4">ofxdate_to_time_t</a> (const string ofxdate)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert a C++ string containing a time in OFX format to a C time_t.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>double&nbsp;</td><td valign=bottom><a class="el" href="ofx__utilities_8hh.html#a5">ofxamount_to_double</a> (const string ofxamount)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Convert OFX amount of money to double float.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>string&nbsp;</td><td valign=bottom><a class="el" href="ofx__utilities_8hh.html#a6">strip_whitespace</a> (const string para_string)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sanitize a string coming from OpenSP.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Various simple functions for type conversion &amp; al.
<p>

<p>

<p>
Definition in file <a class="el" href="ofx__utilities_8hh-source.html">ofx_utilities.hh</a>.<hr><h2>Function Documentation</h2>
<a name="a5" doxytag="ofx_utilities.hh::ofxamount_to_double"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> double ofxamount_to_double </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const string&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>ofxamount</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Convert OFX amount of money to double float.
<p>
Convert a C++ string containing an amount of money as specified by the OFX standard and convert it to a double float. 
<p>
Definition at line <a class="el" href="fx-0_86_82_2lib_2ofx__utilities_8cpp-source.html#l00163">163</a> of file <a class="el" href="fx-0_86_82_2lib_2ofx__utilities_8cpp-source.html">fx-0.6.2/lib/ofx_utilities.cpp</a>.    </td>
  </tr>
</table>
<a name="a4" doxytag="ofx_utilities.hh::ofxdate_to_time_t"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> time_t ofxdate_to_time_t </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const string&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>ofxdate</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Convert a C++ string containing a time in OFX format to a C time_t.
<p>
Converts a date from the YYYYMMDDHHMMSS.XXX[gmt offset:tz name] OFX format (see OFX 2.01 spec p.66) to a C time_t. Note that OFX can specify the time up to milliseconds, but ANSI C does not support this precision cleanly. So you wont know the millisecond you were ruined... 
<p>
Definition at line <a class="el" href="fx-0_86_82_2lib_2ofx__utilities_8cpp-source.html#l00109">109</a> of file <a class="el" href="fx-0_86_82_2lib_2ofx__utilities_8cpp-source.html">fx-0.6.2/lib/ofx_utilities.cpp</a>.    </td>
  </tr>
</table>
<a name="a0" doxytag="ofx_utilities.hh::operator<<"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> ostream&amp; operator&lt;&lt; </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">ostream &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>os</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>SGMLApplication::CharString&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>s</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Convert OpenSP CharString to a C++ stream.
<p>
Convert an OpenSP CharString directly to a C++ stream, to enable the use of cout directly for debugging. 
<p>
Definition at line <a class="el" href="fx-0_86_82_2lib_2ofx__utilities_8cpp-source.html#l00053">53</a> of file <a class="el" href="fx-0_86_82_2lib_2ofx__utilities_8cpp-source.html">fx-0.6.2/lib/ofx_utilities.cpp</a>.    </td>
  </tr>
</table>
<a name="a6" doxytag="ofx_utilities.hh::strip_whitespace"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> string strip_whitespace </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const string&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>para_string</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sanitize a string coming from OpenSP.
<p>
Many weird caracters can be present inside a SGML element, as a result on the transfer protocol, or for any reason. This function greatly enhances the reliability of the library by zapping those gremlins (backspace,formfeed,newline,carriage return, horizontal and vertical tabs) as well as removing whitespace at the begining and end of the string. Otherwise, many problems will occur during stringmatching. 
<p>
Definition at line <a class="el" href="fx-0_86_82_2lib_2ofx__utilities_8cpp-source.html#l00178">178</a> of file <a class="el" href="fx-0_86_82_2lib_2ofx__utilities_8cpp-source.html">fx-0.6.2/lib/ofx_utilities.cpp</a>.    </td>
  </tr>
</table>
<hr><address><small>Generated on Sun Nov 24 20:26:32 2002 for LibOFX by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.14 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2002</small></address>
</body>
</html>