Commit | Line | Data |
---|---|---|
d44e3c4f | 1 | /****************************************************************************** |
2 | * Copyright (c) 2000-2016 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 | * Contributors: | |
9 | * Balasko, Jeno | |
10 | * Forstner, Matyas | |
11 | * Lovassy, Arpad | |
12 | * Raduly, Csaba | |
13 | * Szabo, Janos Zoltan – initial implementation | |
14 | * | |
15 | ******************************************************************************/ | |
970ed795 EL |
16 | // This Test Port skeleton source file was generated by the |
17 | // TTCN-3 Compiler of the TTCN-3 Test Executor version 1.2.pl2 | |
18 | // for Matyas Forstner (tmpmfr@saussure) on Thu Oct 17 16:56:18 2002 | |
19 | ||
20 | ||
21 | // You may modify this file. Complete the body of empty functions and | |
22 | // add your member functions here. | |
23 | ||
24 | #include "MyPort1.hh" | |
25 | ||
26 | #ifndef OLD_NAMES | |
27 | namespace Regr { | |
28 | #endif | |
29 | ||
30 | MyPort1::MyPort1(const char *par_port_name) | |
31 | : MyPort1_BASE(par_port_name) | |
32 | { | |
33 | ||
34 | } | |
35 | ||
36 | MyPort1::~MyPort1() | |
37 | { | |
38 | ||
39 | } | |
40 | ||
41 | void MyPort1::set_parameter(const char *parameter_name, | |
42 | const char *parameter_value) | |
43 | { | |
44 | ||
45 | } | |
46 | ||
47 | void MyPort1::Event_Handler(const fd_set *read_fds, | |
48 | const fd_set *write_fds, const fd_set *error_fds, | |
49 | double time_since_last_call) | |
50 | { | |
51 | ||
52 | } | |
53 | ||
54 | void MyPort1::user_map(const char *system_port) | |
55 | { | |
56 | ||
57 | } | |
58 | ||
59 | void MyPort1::user_unmap(const char *system_port) | |
60 | { | |
61 | ||
62 | } | |
63 | ||
64 | void MyPort1::user_start() | |
65 | { | |
66 | ||
67 | } | |
68 | ||
69 | void MyPort1::user_stop() | |
70 | { | |
71 | ||
72 | } | |
73 | ||
74 | #ifndef OLD_NAMES | |
75 | ||
76 | #define SEND_MACRO(module, type) \ | |
77 | void MyPort1::outgoing_send(const module::type& send_par) \ | |
78 | { \ | |
79 | TTCN_Buffer buf; \ | |
80 | send_par.encode(module::type##_descr_, buf, \ | |
81 | TTCN_EncDec::CT_BER, BER_ENCODE_DER); \ | |
82 | OCTETSTRING os; \ | |
83 | buf.get_string(os); \ | |
84 | incoming_message(os); \ | |
85 | } | |
86 | ||
87 | #else | |
88 | ||
89 | #define SEND_MACRO(module, type) \ | |
90 | void MyPort1::outgoing_send(const type& send_par) \ | |
91 | { \ | |
92 | TTCN_Buffer buf; \ | |
93 | send_par.encode(type##_descr_, buf, \ | |
94 | TTCN_EncDec::CT_BER, BER_ENCODE_DER); \ | |
95 | OCTETSTRING os; \ | |
96 | buf.get_string(os); \ | |
97 | incoming_message(os); \ | |
98 | } | |
99 | ||
100 | #endif | |
101 | ||
102 | SEND_MACRO(Regr1, T0) | |
103 | SEND_MACRO(Regr1, T2) | |
104 | SEND_MACRO(Regr1, T3) | |
105 | SEND_MACRO(Regr1, T4) | |
106 | SEND_MACRO(Regr1, T5) | |
107 | SEND_MACRO(Regr1, T6) | |
108 | SEND_MACRO(Regr1, T7) | |
109 | SEND_MACRO(Regr1, T8) | |
110 | SEND_MACRO(Regr2, T10) | |
111 | SEND_MACRO(Regr2, T11) | |
112 | ||
113 | #ifndef OLD_NAMES | |
114 | } /* end of namespace */ | |
115 | #endif |