Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
<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">◆ </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 </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">◆ </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 </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">◆ </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 </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">"Fri, 17 Mar 2017 13:03:00 +0000"</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">◆ </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 & </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">◆ </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 & </td>
<td class="paramname"><em>p_value</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>p_trim_chars</em> = <code>" \t"</code> </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">◆ </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  <a href="http://www.doxygen.org/index.html">