classconverter.html 60.3 KB
Newer Older
garciay's avatar
garciay committed
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="abe69296193f32d78a723f45b89f3c1ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe69296193f32d78a723f45b89f3c1ea">&#9670;&nbsp;</a></span>swap() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t converter::swap </td>
          <td>(</td>
          <td class="paramtype">const uint32_t&#160;</td>
          <td class="paramname"><em>p_value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Swap four bytes length value (used for littel endian / big endian) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_value</td><td>The value to swap </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The swapped value </dd></dl>

</div>
</div>
<a id="affbbf0de3c626b6a03dc05829720670e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affbbf0de3c626b6a03dc05829720670e">&#9670;&nbsp;</a></span>swap() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int32_t converter::swap </td>
          <td>(</td>
          <td class="paramtype">const int32_t&#160;</td>
          <td class="paramname"><em>p_value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3aae49b03d9233a16af74b4f25ac7fe0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3aae49b03d9233a16af74b4f25ac7fe0">&#9670;&nbsp;</a></span>time_to_string() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string converter::time_to_string </td>
          <td>(</td>
          <td class="paramtype">const time_t&#160;</td>
          <td class="paramname"><em>p_time</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert a time in time_t format into a string formated according to RFC 822, 1036, 1123, 2822. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_time</td><td>The time to convert in time_t format </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The time string formated </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a href="http://www.unixtimestamp.com/">http://www.unixtimestamp.com/</a> <div class="fragment"><div class="line">std::string result = <a class="code" href="classconverter.html#a3aae49b03d9233a16af74b4f25ac7fe0">time_to_string</a>(1489755780);</div><div class="line">result.compare(<span class="stringliteral">&quot;Fri, 17 Mar 2017 13:03:00 +0000&quot;</span>) == 0 <span class="comment">// When time zone is set to UTC</span></div></div><!-- fragment --> </dd></dl>
<dl class="section remark"><dt>Remarks</dt><dd>Use commands 1) timedatectl to change your machine timezone (e.g. sudo timedatectl set-timezone UTC to change machine timezone to UTC, 2) timedatectl list-timezones to get the list of the timezones) </dd></dl>

</div>
</div>
<a id="a843ad5a841fa7fced4bd4431c6b6fecb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a843ad5a841fa7fced4bd4431c6b6fecb">&#9670;&nbsp;</a></span>time_to_string() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string converter::time_to_string </td>
          <td>(</td>
          <td class="paramtype">const struct tm &amp;&#160;</td>
          <td class="paramname"><em>p_time</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert a time in struct tm format into a string formated according to RFC 822, 1036, 1123, 2822. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_time</td><td>The time to convert in struct tm format </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The time string formated </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a href="http://www.unixtimestamp.com/">http://www.unixtimestamp.com/</a> </dd></dl>

</div>
</div>
<a id="abb7aba36078c8129837870f35038f4e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb7aba36078c8129837870f35038f4e0">&#9670;&nbsp;</a></span>trim()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string converter::trim </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>p_value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>p_trim_chars</em> = <code>&quot;&#160;\t&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a copy of the string, with leading and trailing special characters omitted. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_value</td><td>The string value </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">p_trim_chars</td><td>The special characters to be omitted. Default: ' ' and TAB </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The new string value </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="af294a9024411389f2285aa30c9de361b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af294a9024411389f2285aa30c9de361b">&#9670;&nbsp;</a></span>instance</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classconverter.html">converter</a> * converter::instance = NULL</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Unique static object reference of this class. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/vagrant/TriesAndDelete/etsi_its/framework/include/<a class="el" href="converter_8hh_source.html">converter.hh</a></li>
<li>/home/vagrant/TriesAndDelete/etsi_its/framework/src/<a class="el" href="converter_8cc.html">converter.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Apr 4 2018 14:16:29 for ETSI STF525 / Internal Testing test suite by &#160;<a href="http://www.doxygen.org/index.html">
garciay's avatar
garciay committed
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>