e38e78dff527b6d8b6f69b76d3dc6740604332e5
[deliverable/titan.core.git] / regression_test / omitdef / PT_DefOpt.cc
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2015 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
8 // This Test Port skeleton source file was generated by the
9 // TTCN-3 Compiler of the TTCN-3 Test Executor version 1.7.pl2
10 // for ecsardu (ecsardu@E0017A4D11749) sometime in 2008
11
12
13 // You may modify this file. Complete the body of empty functions and
14 // add your member functions here.
15
16 #include "PT_DefOpt.hh"
17
18 #include "Dumping.hh"
19
20 #ifndef OLD_NAMES
21 namespace Tsenderos {
22 #endif
23
24
25 PT__DefOpt::PT__DefOpt(const char *par_port_name)
26 : PT__DefOpt_BASE(par_port_name)
27 {
28
29 }
30
31 PT__DefOpt::~PT__DefOpt()
32 {
33
34 }
35
36 void PT__DefOpt::set_parameter(const char *parameter_name,
37 const char *parameter_value)
38 {
39
40 }
41
42 void PT__DefOpt::Event_Handler(const fd_set *read_fds,
43 const fd_set *write_fds, const fd_set *error_fds,
44 double time_since_last_call)
45 {
46
47 }
48
49 void PT__DefOpt::user_map(const char *system_port)
50 {
51
52 }
53
54 void PT__DefOpt::user_unmap(const char *system_port)
55 {
56
57 }
58
59 void PT__DefOpt::user_start()
60 {
61
62 }
63
64 void PT__DefOpt::user_stop()
65 {
66
67 }
68
69 // Deff was "sent out". Get back an Opt
70 void PT__DefOpt::outgoing_send(const DATATYPES_NS Deff& send_par)
71 {
72 TTCN_Buffer buffer;
73 TTCN_EncDec::clear_error();
74 send_par.encode( DATATYPES_NS Deff_descr_, buffer, TTCN_EncDec::CT_BER, BER_ENCODE_DER );
75 TTCN_EncDec::clear_error();
76
77 DATATYPES_NS Opt o2;
78 o2.decode( DATATYPES_NS Opt_descr_, buffer, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL );
79 incoming_message( o2 );
80 }
81
82 void PT__DefOpt::outgoing_send(const DATATYPES_NS Opt& send_par)
83 {
84 TTCN_Buffer buffer;
85 TTCN_EncDec::clear_error();
86 send_par.encode( DATATYPES_NS Opt_descr_, buffer, TTCN_EncDec::CT_BER, BER_ENCODE_DER );
87
88 TTCN_EncDec::clear_error();
89
90 DATATYPES_NS Deff d2;
91 d2.decode( DATATYPES_NS Deff_descr_, buffer, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL);
92 incoming_message( d2 );
93 }
94
95 #ifndef OLD_NAMES
96 } /* end of namespace */
97 #endif
This page took 0.032986 seconds and 4 git commands to generate.