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.2.pl2
10 // for Matyas Forstner (tmpmfr@saussure) on Thu Oct 17 16:56:18 2002
13 // You may modify this file. Complete the body of empty functions and
14 // add your member functions here.
22 MyPort2::MyPort2(const char *par_port_name
)
23 : MyPort2_BASE(par_port_name
)
33 void MyPort2::set_parameter(const char *parameter_name
,
34 const char *parameter_value
)
39 void MyPort2::Event_Handler(const fd_set
*read_fds
,
40 const fd_set
*write_fds
, const fd_set
*error_fds
,
41 double time_since_last_call
)
46 void MyPort2::user_map(const char *system_port
)
51 void MyPort2::user_unmap(const char *system_port
)
56 void MyPort2::user_start()
61 void MyPort2::user_stop()
68 #define DECODER_MACRO(module, type) \
71 TTCN_EncDec::clear_error(); \
73 pdu.decode(module::type##_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); \
74 if(TTCN_EncDec::get_last_error_type() == TTCN_EncDec::ET_NONE) { \
75 incoming_message(pdu); \
82 #define DECODER_MACRO(module, type) \
85 TTCN_EncDec::clear_error(); \
87 pdu.decode(type##_descr_, buf, TTCN_EncDec::CT_BER, BER_ACCEPT_ALL); \
88 if(TTCN_EncDec::get_last_error_type() == TTCN_EncDec::ET_NONE) { \
89 incoming_message(pdu); \
96 void MyPort2::outgoing_send(const OCTETSTRING
& send_par
)
98 TTCN_EncDec::set_error_behavior(TTCN_EncDec::ET_ALL
,
99 TTCN_EncDec::EB_WARNING
);
100 TTCN_Buffer
buf(send_par
);
102 DECODER_MACRO(Regr1
, T0
)
103 DECODER_MACRO(Regr1
, T2
)
104 DECODER_MACRO(Regr1
, T3
)
105 DECODER_MACRO(Regr1
, T4
)
106 DECODER_MACRO(Regr1
, T5
)
107 DECODER_MACRO(Regr1
, T6
)
108 DECODER_MACRO(Regr1
, T7
)
109 DECODER_MACRO(Regr1
, T8
)
110 DECODER_MACRO(Regr2
, T10
)
111 DECODER_MACRO(Regr2
, T11
)
115 } /* end of namespace */
This page took 0.042817 seconds and 5 git commands to generate.