UpperTesterGnCodec_8hh_source.html 14.7 KB
Newer Older
garciay's avatar
garciay committed
<!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ETSI STF525 / Internal Testing test suite: /home/vagrant/TriesAndDelete/etsi_its/framework/include/UpperTesterGnCodec.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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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 id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ETSI STF525 / Internal Testing test suite
   </div>
   <div id="projectbrief">This project provides an internal testing test suite and its associated Test Adapter/Codec</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_644e041c3a6521da7b27eba0e4eb2b95.html">framework</a></li><li class="navelem"><a class="el" href="dir_dd40116cd1cfebdc77a7c7114b29912e.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">UpperTesterGnCodec.hh</div>  </div>
</div><!--header-->
<div class="contents">
<a href="UpperTesterGnCodec_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>&#160;<span class="preprocessor">#ifndef UpperTesterGnCODEC_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define UpperTesterGnCODEC_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Codec_8hh.html">Codec.hh</a>&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Params_8hh.html">Params.hh</a>&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">class </span>Base_Type;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">class </span>Record_Type;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keyword">class </span>TTCN_Typedescriptor_t;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">class </span>TTCN_Buffer;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceLibItsGeoNetworking____TypesAndValues.html">LibItsGeoNetworking__TypesAndValues</a> {</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;  <span class="keyword">class </span>UtGnResults;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;  <span class="keyword">class </span>UtGnEventInd;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;}</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html">   19</a></span>&#160;<span class="keyword">class </span><a class="code" href="classUpperTesterGnCodec.html">UpperTesterGnCodec</a>: <span class="keyword">public</span> <a class="code" href="classCodec.html">Codec</a> &lt;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;  Record_Type,</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  Record_Type&gt;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;{</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#a81c1c09ae308eacbcab82bdc5bf1180c">   23</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnInitialize = 0x00;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#a06e015a1eb84f5d609d9128f5bad8847">   24</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnInitializeResult = 0x01;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#a48b9d5963ba7ec7de8e1fc3e4ac36882">   25</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnChangePosition = 0x02;</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#a9eacf6b77cba44489989b9e9dbbd9884">   26</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnChangePositionResult = 0x03;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#aa6d46e5c8225e13479e13db920d3dd6a">   27</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnTriggerResult = 0x41;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#ad09b5fe1eaee393b7fb861c9a59641ca">   28</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnTrigger_GeoUnicast = 0x50;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#aaa157531b8fe03223df2148f206fe01f">   29</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnTrigger_GeoBroadcast = 0x51;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#a3fab9d590b2bc042c2a162e7f2886284">   30</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnTrigger_GeoAnycast = 0x52;</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#afd5bdbc45e7c7625f852cf3b7977dabf">   31</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnTrigger_Shb = 0x53;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#a591ee6ec78f0dd79e78563fd212b487a">   32</a></span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> c_utGnTrigger_Tsb = 0x54;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  <span class="keywordtype">int</span> encode_ (<span class="keyword">const</span> Base_Type&amp; type, <span class="keyword">const</span> TTCN_Typedescriptor_t&amp; field_descriptor, TTCN_Buffer&amp; encoding_buffer);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#a98cec7453b3749efa452fd54fbaa8be5">   37</a></span>&#160;  <a class="code" href="classUpperTesterGnCodec.html#a98cec7453b3749efa452fd54fbaa8be5">UpperTesterGnCodec</a>() : <a class="code" href="classCodec.html">Codec</a>&lt;Record_Type, Record_Type&gt;() { };</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classUpperTesterGnCodec.html#a763b7745c088f72258462919457f5c69">   38</a></span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classUpperTesterGnCodec.html#a763b7745c088f72258462919457f5c69">~UpperTesterGnCodec</a>() { };</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> encode (<span class="keyword">const</span> Record_Type&amp;, OCTETSTRING&amp; data);</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> encode (<span class="keyword">const</span> Base_Type&amp;, OCTETSTRING&amp; data);</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> decode (<span class="keyword">const</span> OCTETSTRING&amp; data, Record_Type&amp;, <a class="code" href="classParams.html">Params</a>* params = NULL);</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  <span class="keyword">virtual</span> std::unique_ptr&lt;Base_Type&gt; decode (<span class="keyword">const</span> OCTETSTRING&amp; data, <a class="code" href="classParams.html">Params</a>* params = NULL);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  </div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="keywordtype">int</span> decode (<span class="keyword">const</span> OCTETSTRING&amp; data, LibItsGeoNetworking__TypesAndValues::UtGnResults&amp; msg, <a class="code" href="classParams.html">Params</a>* params = NULL);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <span class="keywordtype">int</span> decode (<span class="keyword">const</span> OCTETSTRING&amp; data, LibItsGeoNetworking__TypesAndValues::UtGnEventInd&amp; msg, <a class="code" href="classParams.html">Params</a>* params = NULL);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;};</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="namespaceLibItsGeoNetworking____TypesAndValues_html"><div class="ttname"><a href="namespaceLibItsGeoNetworking____TypesAndValues.html">LibItsGeoNetworking__TypesAndValues</a></div><div class="ttdef"><b>Definition:</b> geonetworking_layer.hh:32</div></div>
<div class="ttc" id="Params_8hh_html"><div class="ttname"><a href="Params_8hh.html">Params.hh</a></div><div class="ttdoc">Header file for the parameter dictionary. </div></div>
<div class="ttc" id="classCodec_html"><div class="ttname"><a href="classCodec.html">Codec</a></div><div class="ttdoc">Declare TITAN class. </div><div class="ttdef"><b>Definition:</b> Codec.hh:25</div></div>
<div class="ttc" id="classUpperTesterGnCodec_html"><div class="ttname"><a href="classUpperTesterGnCodec.html">UpperTesterGnCodec</a></div><div class="ttdef"><b>Definition:</b> UpperTesterGnCodec.hh:19</div></div>
<div class="ttc" id="classParams_html"><div class="ttname"><a href="classParams.html">Params</a></div><div class="ttdoc">This class provides basic functionalities for an ITS dictionary. </div><div class="ttdef"><b>Definition:</b> Params.hh:21</div></div>
<div class="ttc" id="classUpperTesterGnCodec_html_a98cec7453b3749efa452fd54fbaa8be5"><div class="ttname"><a href="classUpperTesterGnCodec.html#a98cec7453b3749efa452fd54fbaa8be5">UpperTesterGnCodec::UpperTesterGnCodec</a></div><div class="ttdeci">UpperTesterGnCodec()</div><div class="ttdef"><b>Definition:</b> UpperTesterGnCodec.hh:37</div></div>
<div class="ttc" id="classUpperTesterGnCodec_html_a763b7745c088f72258462919457f5c69"><div class="ttname"><a href="classUpperTesterGnCodec.html#a763b7745c088f72258462919457f5c69">UpperTesterGnCodec::~UpperTesterGnCodec</a></div><div class="ttdeci">virtual ~UpperTesterGnCodec()</div><div class="ttdef"><b>Definition:</b> UpperTesterGnCodec.hh:38</div></div>
<div class="ttc" id="Codec_8hh_html"><div class="ttname"><a href="Codec_8hh.html">Codec.hh</a></div><div class="ttdoc">Header file for ITS abstract codec definition. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Apr 4 2018 14:16:23 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>