titanization_ta_codec.patch 630 KB
Newer Older
garciay's avatar
garciay committed
5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000
+// for U-ERICSSON\ethgry (ethgry@HU00078339) on Sun Aug 16 13:23:50 2015
+
+// Copyright Ericsson Telecom AB 2000-2014
+
+// You may modify this file. Complete the body of empty functions and
+// add your member functions here.
+
+#include "V2Gport.hh"
+
+namespace LibItsV2G__TestSystem {
+
+V2Gport::V2Gport(const char *par_port_name)
+	: V2Gport_BASE(par_port_name)
+{
+
+}
+
+V2Gport::~V2Gport()
+{
+
+}
+
+void V2Gport::set_parameter(const char * /*parameter_name*/,
+	const char * /*parameter_value*/)
+{
+
+}
+
+/*void V2Gport::Handle_Fd_Event(int fd, boolean is_readable,
+	boolean is_writable, boolean is_error) {}*/
+
+void V2Gport::Handle_Fd_Event_Error(int /*fd*/)
+{
+
+}
+
+void V2Gport::Handle_Fd_Event_Writable(int /*fd*/)
+{
+
+}
+
+void V2Gport::Handle_Fd_Event_Readable(int /*fd*/)
+{
+
+}
+
+/*void V2Gport::Handle_Timeout(double time_since_last_call) {}*/
+
+void V2Gport::user_map(const char * /*system_port*/)
+{
+
+}
+
+void V2Gport::user_unmap(const char * /*system_port*/)
+{
+
+}
+
+void V2Gport::user_start()
+{
+
+}
+
+void V2Gport::user_stop()
+{
+
+}
+
+void V2Gport::outgoing_send(const V2Greq& /*send_par*/)
+{
+
+}
+
+} /* end of namespace */
+
Index: Ports/LibIts_ports/V2G_ports/V2Gport.hh
===================================================================
--- Ports/LibIts_ports/V2G_ports/V2Gport.hh	(nonexistent)
+++ Ports/LibIts_ports/V2G_ports/V2Gport.hh	(working copy)
@@ -0,0 +1,44 @@
+// This Test Port skeleton header file was generated by the
+// TTCN-3 Compiler of the TTCN-3 Test Executor version CRL 113 200/5 R3A
+// for U-ERICSSON\ethgry (ethgry@HU00078339) on Sun Aug 16 13:23:50 2015
+
+// Copyright Ericsson Telecom AB 2000-2014
+
+// You may modify this file. Add your attributes and prototypes of your
+// member functions here.
+
+#ifndef V2Gport_HH
+#define V2Gport_HH
+
+#include "LibItsV2G_TestSystem.hh"
+
+namespace LibItsV2G__TestSystem {
+
+class V2Gport : public V2Gport_BASE {
+public:
+	V2Gport(const char *par_port_name = NULL);
+	~V2Gport();
+
+	void set_parameter(const char *parameter_name,
+		const char *parameter_value);
+
+private:
+	/* void Handle_Fd_Event(int fd, boolean is_readable,
+		boolean is_writable, boolean is_error); */
+	void Handle_Fd_Event_Error(int fd);
+	void Handle_Fd_Event_Writable(int fd);
+	void Handle_Fd_Event_Readable(int fd);
+	/* void Handle_Timeout(double time_since_last_call); */
+protected:
+	void user_map(const char *system_port);
+	void user_unmap(const char *system_port);
+
+	void user_start();
+	void user_stop();
+
+	void outgoing_send(const V2Greq& send_par);
+};
+
+} /* end of namespace */
+
+#endif
Index: EncDec/LibItsBtp_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsBtp_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsBtp_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,25 @@
+#include "LibItsBtp_EncdecDeclarations.hh"
+
+namespace LibItsBtp__EncdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a BtpPayload type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__BtpPayload(const LibItsBtp__TypesAndValues::BtpPayload& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a BtpPayload type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
+INTEGER fx__dec__BtpPayload(BITSTRING& b, LibItsBtp__TypesAndValues::BtpPayload& p)
+{
+  return -1;
+}
+*/
+} //end namespace
Index: EncDec/LibItsCam_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsCam_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsCam_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,39 @@
+#include "LibItsCam_EncdecDeclarations.hh"
+
+namespace LibItsBtp__EncdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a CamReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__CamReq(const LibItsCam__TestSystem::CamReq& p)
+{
+  //set error behavior
+  TTCN_EncDec::set_error_behavior(TTCN_EncDec::ET_ALL,TTCN_EncDec::EB_WARNING);
+
+  TTCN_Buffer TTCN_buf;
+  TTCN_buf.clear();
+
+//encode message in BER (CER variant, but can be any)
+  p.msgOut().encode(CAM__PDU__Descriptions::CAM_descr_,TTCN_buf,TTCN_EncDec::CT_BER,BER_ENCODE_CER);
+
+  OCTETSTRING encodedData(TTCN_buf.get_len(), TTCN_buf.get_data());
+
+//insert BER2PER recoding here!
+
+  return oct2bit(encodedData);
+}
+
+
+/****************************************************
+ * @desc    External function to decode a DenmReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
+INTEGER fx__dec__CamReq(BITSTRING& b, LibItsCam__TestSystem::CamReq& p)
+{
+  return -1;
+}
+*/
+} //end namespace
Index: EncDec/LibItsDenm_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsDenm_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsDenm_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,38 @@
+#include "LibItsDenm_EncdecDeclarations.hh"
+
+namespace LibItsDenm__EncdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a DenmReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__DenmReq(const LibItsDenm__TestSystem::DenmReq& p)
+{
+  //set error behavior
+  TTCN_EncDec::set_error_behavior(TTCN_EncDec::ET_ALL,TTCN_EncDec::EB_WARNING);
+
+  TTCN_Buffer TTCN_buf;
+  TTCN_buf.clear();
+
+//encode message in BER (CER variant, but can be any)
+  p.msgOut().encode(DENM__PDU__Descriptions::DENM_descr_,TTCN_buf,TTCN_EncDec::CT_BER,BER_ENCODE_CER);
+
+  OCTETSTRING encodedData(TTCN_buf.get_len(), TTCN_buf.get_data());
+
+//insert BER2PER recoding here!
+
+  return oct2bit(encodedData);
+}
+
+/****************************************************
+ * @desc    External function to decode a DenmReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/* function not needed yet, decvalue() is not used in TTCN-3 code
+INTEGER fx__dec__DenmReq(BITSTRING& b, LibItsDenm__TestSystem::DenmReq& p)
+{
+  return -1
+}
+*/
+} //end namespace
Index: EncDec/LibItsEvcsn_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsEvcsn_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsEvcsn_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,39 @@
+#include "LibItsEvcsn_encdecDeclarations.hh"
+
+namespace LibItsEvcsn__encdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a EvcsnReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__EvcsnReq(const LibItsEvcsn__TestSystem::EvcsnReq& p)
+{
+  //set error behavior
+  TTCN_EncDec::set_error_behavior(TTCN_EncDec::ET_ALL,TTCN_EncDec::EB_WARNING);
+
+  TTCN_Buffer TTCN_buf;
+  TTCN_buf.clear();
+
+//encode message in BER (CER variant, but can be any)
+  p.msgOut().encode(EVCSN__PDU__Descriptions::EvcsnPdu_descr_,TTCN_buf,TTCN_EncDec::CT_BER,BER_ENCODE_CER);
+
+  OCTETSTRING encodedData(TTCN_buf.get_len(), TTCN_buf.get_data());
+
+//insert BER2PER recoding here!
+
+  return oct2bit(encodedData);
+}
+
+
+/****************************************************
+ * @desc    External function to decode a DenmReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
+INTEGER fx__dec__EvcsnReq(BITSTRING& b, LibItsEvcsn__TestSystem::EvcsnReq& p)
+{
+  return -1;
+}
+*/
+} //end namespace
Index: EncDec/LibItsGeoNetworking_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsGeoNetworking_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsGeoNetworking_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,67 @@
+#include "LibItsGeoNetworking_encdecDeclarations.hh"
+
+namespace LibItsGeoNetworking__encdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a GeoNetworkingPdu type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__GeoNetworkingPdu(const LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a GeoNetworkingPdu type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__GeoNetworkingPdu(BITSTRING& b, LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a Payload type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__Payload(const LibItsGeoNetworking__TypesAndValues::Payload& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a Payload type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__Payload(BITSTRING& b, LibItsGeoNetworking__TypesAndValues::Payload& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a GnNonSecuredPacket type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__GnNonSecuredPacket(const LibItsGeoNetworking__TypesAndValues::GnNonSecuredPacket& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a GnNonSecuredPacket type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__GnNonSecuredPacket(BITSTRING& b, LibItsGeoNetworking__TypesAndValues::GnNonSecuredPacket& p)
+{
+  return -1;
+}
+
+} //end namespace
Index: EncDec/LibItsSecurity_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsSecurity_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsSecurity_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,88 @@
+#include "LibItsSecurity_EncdecDeclarations.hh"
+
+namespace LibItsSecurity__EncdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a SecuredMessage type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__SecuredMessage(const LibItsSecurity__TypesAndValues::SecuredMessage& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a SecuredMessage type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__SecuredMessage(BITSTRING& b, LibItsSecurity__TypesAndValues::SecuredMessage& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a ToBeSignedSecuredMessage type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__ToBeSignedSecuredMessage(const LibItsSecurity__TypesAndValues::ToBeSignedSecuredMessage& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a ToBeSignedSecuredMessage type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__ToBeSignedSecuredMessage(BITSTRING& b, LibItsSecurity__TypesAndValues::ToBeSignedSecuredMessage& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a Certificate type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__Certificate(const LibItsSecurity__TypesAndValues::Certificate& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a Certificate type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__Certificate(BITSTRING& b, LibItsSecurity__TypesAndValues::Certificate& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a ToBeSignedCertificate type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__ToBeSignedCertificate(const LibItsSecurity__TypesAndValues::ToBeSignedCertificate& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a ToBeSignedCertificate type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/*
+INTEGER fx__dec__ToBeSignedCertificate(BITSTRING& b, LibItsSecurity__TypesAndValues::ToBeSignedCertificate& p)
+{
+  return -1;
+}
+*/
+} //end namespace
Index: EncDec/LibItsBtp_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsBtp_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsBtp_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,25 @@
+#include "LibItsBtp_EncdecDeclarations.hh"
+
+namespace LibItsBtp__EncdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a BtpPayload type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__BtpPayload(const LibItsBtp__TypesAndValues::BtpPayload& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a BtpPayload type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
+INTEGER fx__dec__BtpPayload(BITSTRING& b, LibItsBtp__TypesAndValues::BtpPayload& p)
+{
+  return -1;
+}
+*/
+} //end namespace
Index: EncDec/LibItsCam_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsCam_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsCam_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,39 @@
+#include "LibItsCam_EncdecDeclarations.hh"
+
+namespace LibItsBtp__EncdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a CamReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__CamReq(const LibItsCam__TestSystem::CamReq& p)
+{
+  //set error behavior
+  TTCN_EncDec::set_error_behavior(TTCN_EncDec::ET_ALL,TTCN_EncDec::EB_WARNING);
+
+  TTCN_Buffer TTCN_buf;
+  TTCN_buf.clear();
+
+//encode message in BER (CER variant, but can be any)
+  p.msgOut().encode(CAM__PDU__Descriptions::CAM_descr_,TTCN_buf,TTCN_EncDec::CT_BER,BER_ENCODE_CER);
+
+  OCTETSTRING encodedData(TTCN_buf.get_len(), TTCN_buf.get_data());
+
+//insert BER2PER recoding here!
+
+  return oct2bit(encodedData);
+}
+
+
+/****************************************************
+ * @desc    External function to decode a DenmReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
+INTEGER fx__dec__CamReq(BITSTRING& b, LibItsCam__TestSystem::CamReq& p)
+{
+  return -1;
+}
+*/
+} //end namespace
Index: EncDec/LibItsDenm_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsDenm_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsDenm_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,38 @@
+#include "LibItsDenm_EncdecDeclarations.hh"
+
+namespace LibItsDenm__EncdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a DenmReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__DenmReq(const LibItsDenm__TestSystem::DenmReq& p)
+{
+  //set error behavior
+  TTCN_EncDec::set_error_behavior(TTCN_EncDec::ET_ALL,TTCN_EncDec::EB_WARNING);
+
+  TTCN_Buffer TTCN_buf;
+  TTCN_buf.clear();
+
+//encode message in BER (CER variant, but can be any)
+  p.msgOut().encode(DENM__PDU__Descriptions::DENM_descr_,TTCN_buf,TTCN_EncDec::CT_BER,BER_ENCODE_CER);
+
+  OCTETSTRING encodedData(TTCN_buf.get_len(), TTCN_buf.get_data());
+
+//insert BER2PER recoding here!
+
+  return oct2bit(encodedData);
+}
+
+/****************************************************
+ * @desc    External function to decode a DenmReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/* function not needed yet, decvalue() is not used in TTCN-3 code
+INTEGER fx__dec__DenmReq(BITSTRING& b, LibItsDenm__TestSystem::DenmReq& p)
+{
+  return -1
+}
+*/
+} //end namespace
Index: EncDec/LibItsEvcsn_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsEvcsn_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsEvcsn_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,39 @@
+#include "LibItsEvcsn_encdecDeclarations.hh"
+
+namespace LibItsEvcsn__encdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a EvcsnReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__EvcsnReq(const LibItsEvcsn__TestSystem::EvcsnReq& p)
+{
+  //set error behavior
+  TTCN_EncDec::set_error_behavior(TTCN_EncDec::ET_ALL,TTCN_EncDec::EB_WARNING);
+
+  TTCN_Buffer TTCN_buf;
+  TTCN_buf.clear();
+
+//encode message in BER (CER variant, but can be any)
+  p.msgOut().encode(EVCSN__PDU__Descriptions::EvcsnPdu_descr_,TTCN_buf,TTCN_EncDec::CT_BER,BER_ENCODE_CER);
+
+  OCTETSTRING encodedData(TTCN_buf.get_len(), TTCN_buf.get_data());
+
+//insert BER2PER recoding here!
+
+  return oct2bit(encodedData);
+}
+
+
+/****************************************************
+ * @desc    External function to decode a DenmReq type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/* TODO RGy function not implemented! (decvalue() not used by test suite @29-06-2016)
+INTEGER fx__dec__EvcsnReq(BITSTRING& b, LibItsEvcsn__TestSystem::EvcsnReq& p)
+{
+  return -1;
+}
+*/
+} //end namespace
Index: EncDec/LibItsGeoNetworking_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsGeoNetworking_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsGeoNetworking_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,67 @@
+#include "LibItsGeoNetworking_encdecDeclarations.hh"
+
+namespace LibItsGeoNetworking__encdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a GeoNetworkingPdu type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__GeoNetworkingPdu(const LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a GeoNetworkingPdu type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__GeoNetworkingPdu(BITSTRING& b, LibItsGeoNetworking__TypesAndValues::GeoNetworkingPdu& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a Payload type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__Payload(const LibItsGeoNetworking__TypesAndValues::Payload& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a Payload type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__Payload(BITSTRING& b, LibItsGeoNetworking__TypesAndValues::Payload& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a GnNonSecuredPacket type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__GnNonSecuredPacket(const LibItsGeoNetworking__TypesAndValues::GnNonSecuredPacket& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a GnNonSecuredPacket type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__GnNonSecuredPacket(BITSTRING& b, LibItsGeoNetworking__TypesAndValues::GnNonSecuredPacket& p)
+{
+  return -1;
+}
+
+} //end namespace
Index: EncDec/LibItsSecurity_EncdecDeclarations.cc
===================================================================
--- EncDec/LibItsSecurity_EncdecDeclarations.cc	(nonexistent)
+++ EncDec/LibItsSecurity_EncdecDeclarations.cc	(working copy)
@@ -0,0 +1,88 @@
+#include "LibItsSecurity_EncdecDeclarations.hh"
+
+namespace LibItsSecurity__EncdecDeclarations {
+/****************************************************
+ * @desc    External function to encode a SecuredMessage type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__SecuredMessage(const LibItsSecurity__TypesAndValues::SecuredMessage& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a SecuredMessage type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__SecuredMessage(BITSTRING& b, LibItsSecurity__TypesAndValues::SecuredMessage& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a ToBeSignedSecuredMessage type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__ToBeSignedSecuredMessage(const LibItsSecurity__TypesAndValues::ToBeSignedSecuredMessage& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a ToBeSignedSecuredMessage type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__ToBeSignedSecuredMessage(BITSTRING& b, LibItsSecurity__TypesAndValues::ToBeSignedSecuredMessage& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a Certificate type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__Certificate(const LibItsSecurity__TypesAndValues::Certificate& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a Certificate type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+
+INTEGER fx__dec__Certificate(BITSTRING& b, LibItsSecurity__TypesAndValues::Certificate& p)
+{
+  return -1;
+}
+
+/****************************************************
+ * @desc    External function to encode a ToBeSignedCertificate type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+BITSTRING fx__enc__ToBeSignedCertificate(const LibItsSecurity__TypesAndValues::ToBeSignedCertificate& p)
+{
+  return int2bit(0,8);
+}
+
+/****************************************************
+ * @desc    External function to decode a ToBeSignedCertificate type
+ * @param   value to encode
+ * @return  encoded value
+ ****************************************************/
+/*
+INTEGER fx__dec__ToBeSignedCertificate(BITSTRING& b, LibItsSecurity__TypesAndValues::ToBeSignedCertificate& p)
+{
+  return -1;
+}
+*/
+} //end namespace
Index: Externals/LibItsCommon_externals.cc
===================================================================
--- Externals/LibItsCommon_externals.cc	(nonexistent)
+++ Externals/LibItsCommon_externals.cc	(working copy)
@@ -0,0 +1,95 @@
+#include "LibItsCommon_Functions.hh"
+//#include "ITS_Container.hh"
+#include <time.h>
+#include <math.h>
+
+namespace LibItsCommon__Functions 
+{
+
+/*       * @desc    This external function gets the current time
+         * @return  Timestamp - current time since 01/01/2014 in milliseconds
+        fx_getCurrentTime() return TimestampIts;
+*/
+INTEGER fx__getCurrentTime(
+) {
+            unsigned long long timestamp2014 = 1356998400000;
+            struct timeval tv;
+            gettimeofday(&tv, NULL);
+
+            unsigned long long timestampNow = tv.tv_sec*1000 + tv.tv_usec/1000;
+
+//    i.set_long_long_val(timestampNow - timestamp2014);
+//    return i;
+            return INTEGER(timestampNow - timestamp2014);
+}
+
+/*       * @desc    External function to compute distance between two points
+         * @param   p_latitudeA   Latitude of first point
+         * @param   p_longitudeA  Longitude of first point
+         * @param   p_latitudeB   Latitude of second point
+         * @param   p_longitudeB  Longitude of second point
+         * @return  Computed distance in meters
+        fx_computeDistance(in Int32 p_latitudeA, in Int32 p_longitudeA, in Int32 p_latitudeB, in Int32 p_longitudeB) return float;
+*/
+FLOAT fx__computeDistance(
+  const INTEGER& p__latitudeA,
+  const INTEGER& p__longitudeA,
+  const INTEGER& p__latitudeB,
+  const INTEGER& p__longitudeB
+) {
+    double d_latA = ((int)p__latitudeA)/10000000.0;
+    double d_latB = ((int)p__latitudeB)/10000000.0;
+
+    double d_lonA = ((int)p__longitudeA)/10000000.0;
+    double d_lonB = ((int)p__longitudeB)/10000000.0;
+
+    double earth_radius = 6371000.0; //meters
+
+    double d_lat = (d_latB  - d_latA) *M_PI/180.0;
+    double d_lon = (d_lonB - d_lonA)*M_PI/180.0;
+  
+    double a = sin(d_lat/2)*sin(d_lat/2) + cos(d_latA*M_PI/180.0)*cos(d_latB*M_PI/180.0)*sin(d_lon/2)*sin(d_lon/2);
+    double c = 2*atan2(sqrt(a), sqrt(1-a));
+
+    return FLOAT(earth_radius*c);
+
+}
+
+/*       * @desc    External function to compute a position using a reference position, a distance and an orientation 
+         * @param   p_iutLongPosVector  Reference position
+         * @param   p_distance          Distance to the reference position (in meter)
+         * @param   p_orientation       Direction of the computed position (0 to 359; 0 means North)
+         * @param   p_latitude          Computed position's latitude
+         * @param   p_longitude         Computed position's longitude
+        fx_computePositionUsingDistance(in Int32 p_refLatitude,in Int32 p_refLongitude,in float p_distance,in integer p_orientation,out Int32 p_latitude,out Int32 p_longitude);
+*/
+void fx__computePositionUsingDistance(
+  const INTEGER& p__refLatitude,
+  const INTEGER& p__refLongitude,
+  const FLOAT& p__distance,
+  const INTEGER& p__orientation,
+  INTEGER& p__latitude,
+  INTEGER& p__longitude
+) {
+    double distance = p__distance/6371000.0;
+    double angle = p__orientation*M_PI/180.0;
+
+    double ref_lat = p__refLatitude*M_PI/180.0;
+    double ref_lon = p__refLongitude*M_PI/180.0;
+
+    p__latitude = asin(sin(ref_lat)*cos(distance) + cos(ref_lat)*sin(distance)*cos(angle))*180/M_PI;
+    p__longitude = p__refLongitude + atan2(sin(angle)*sin(distance)*cos(ref_lat), cos(distance) - sin(ref_lat)*sin(p__latitude))*180/M_PI;
+}
+
+/*       * @desc    External function to compute radius of a given circular area
+         * @param   p_squareMeters  Square meters of an circular area
+         * @return  Computed radius in meters
+        fx_computeRadiusFromCircularArea(in float p_squareMeters) return float;
+*/
+FLOAT fx__computeRadiusFromCircularArea(
+  const FLOAT& p__squareMeters
+) {
+    return FLOAT(sqrt(p__squareMeters/M_PI));
+}
+
+} // end of Namespace
Index: Externals/LibItsDcc_externals.cc
===================================================================
--- Externals/LibItsDcc_externals.cc	(nonexistent)
+++ Externals/LibItsDcc_externals.cc	(working copy)
@@ -0,0 +1,12 @@
+#include "LibItsDcc_Functions.hh"
+
+namespace LibItsDcc__Functions 
+{
+/*       * @desc Returns the string representation of the float value
+         * @param p_float The float value
+         * @return The string representation of the float value
+        fx_float2str(float p_float) return charstring;
+*/
+//RGY no C++ implementation is needed, Titan supports this function natively
+
+} // end of namespace
Index: Externals/LibItsGeoNetworking_externals.cc
===================================================================
--- Externals/LibItsGeoNetworking_externals.cc	(nonexistent)
+++ Externals/LibItsGeoNetworking_externals.cc	(working copy)
@@ -0,0 +1,24 @@
+#include "LibItsGeoNetworking_Functions.hh"
+#include <time.h>
+#include <math.h>
+
+namespace LibItsGeoNetworking__Functions
+{
+/*       * @desc    External function to compute timestamp based on current time
+         * @return  Unix-Epoch-Time mod 2^32
+        fx_computeGnTimestamp() return UInt32;
+*/
+INTEGER fx__computeGnTimestamp(
+) {
+			struct timeval tv;
+			gettimeofday(&tv, NULL);
+
+//			unsigned long long timestampNow = tv.tv_sec*1000 + tv.tv_usec/1000;
+    long long timestampNow = tv.tv_sec*1000 + tv.tv_usec/1000;
+    INTEGER i = INTEGER();
+    i.set_long_long_val(timestampNow % 4294967296);
+//			return INTEGER(timestampNow % 4294967296);
+    return i;
+}
+
+} //end namespace
Index: Externals/LibItsIpv6OverGeoNetworking_externals.cc
===================================================================
--- Externals/LibItsIpv6OverGeoNetworking_externals.cc	(nonexistent)
+++ Externals/LibItsIpv6OverGeoNetworking_externals.cc	(working copy)
@@ -0,0 +1,58 @@
+#include "LibItsIpv6OverGeoNetworking_Functions.hh"
+#include <time.h>
+#include <math.h>
+
+namespace LibItsIpv6OverGeoNetworking__Functions
+{
+/*       * @desc    Calculate ICMPv6 checksum on pseudo header according RFC 4443 - Clause 2.3
+         * @param   p_sourceAddress         Source address, 
+         * @param   p_destinationAddress    Destination address
+         * @param   p_payloadLength         Upper-Layer Packet Length
+         * @param   p_payload               Upper-Layer payload
+         * @param   p_nextHdr               Next header value (e.g. 0x3a for ICMPv6)
+         * @return  The checksum value
+         * <pre>
+         * Pseudo header is defined by RFC 2460 - Clause 8.1
+         *  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+         *  |                                                               |
+         *  +                                                               +
+         *  |                                                               |
+         *  +                         Source Address                        +
+         *  |                                                               |
+         *  +                                                               +
+         *  |                                                               |
+         *  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+         *  |                                                               |
+         *  +                                                               +
+         *  |                                                               |
+         *  +                      Destination Address                      +
+         *  |                                                               |
+         *  +                                                               +
+         *  |                                                               |
+         *  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+         *  |                   Upper-Layer Packet Length                   |
+         *  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+         *  |                      zero                     |  Next Header  |
+         *  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+         * </pre>
+        external function fx_computeIPv6CheckSum( 
+            in template (value) Ipv6Address p_sourceAddress, 
+            in template (value) Ipv6Address p_destinationAddress, 
+            in template (value) integer p_payloadLength, 
+            in template (value) octetstring p_payload, 
+            in template (value) UInt8 p_nextHdr 
+        ) return Oct2;
+*/
+
+OCTETSTRING fx__computeIPv6CheckSum(
+  const OCTETSTRING_template& p__sourceAddress,
+  const OCTETSTRING_template& p__destinationAddress,
+  const INTEGER_template& p__payloadLength,
+  const OCTETSTRING_template& p__payload,
+  const INTEGER_template& p__nextHdr
+) {
+  OCTETSTRING ret_val = int2oct(0,1);
+  return ret_val;
+}
+
+} //end namespace
Index: Externals/LibItsMapemSpatem_externals.cc
===================================================================
--- Externals/LibItsMapemSpatem_externals.cc	(nonexistent)
+++ Externals/LibItsMapemSpatem_externals.cc	(working copy)
@@ -0,0 +1,18 @@
+#include "LibItsMapemSpatem_externals.hh"
+#include <time.h>
+#include <math.h>
+
+namespace LibItsMapemSpatem__externals
+{
+/*FIXME RGY @desc sounds like a copy-paste, not as the real purpose of the function
+         * @desc    External function to compute distance between two points
+         * @param   p_rawData   Octetstring to analyse
+         * @return  true or false according to the check