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 | * Delic, Adam | |
11 | * Forstner, Matyas | |
12 | * Koppany, Csaba | |
13 | * Lovassy, Arpad | |
14 | * Raduly, Csaba | |
15 | * Szabo, Janos Zoltan – initial implementation | |
16 | * | |
17 | ******************************************************************************/ | |
970ed795 EL |
18 | // This Test Port skeleton source file was generated by the |
19 | // TTCN-3 Compiler of the TTCN-3 Test Executor version 1.3.pl0 | |
20 | // for Matyas Forstner (tmpmfr@saussure) on Thu Apr 10 16:06:07 2003 | |
21 | ||
22 | ||
23 | // You may modify this file. Complete the body of empty functions and | |
24 | // add your member functions here. | |
25 | ||
26 | #include "MyPort1.hh" | |
27 | ||
28 | #ifndef OLD_NAMES | |
29 | using namespace X682; | |
30 | ||
31 | namespace X { | |
32 | #endif | |
33 | ||
34 | MyPort1::MyPort1(const char *par_port_name) | |
35 | : MyPort1_BASE(par_port_name) | |
36 | { | |
37 | ||
38 | } | |
39 | ||
40 | MyPort1::~MyPort1() | |
41 | { | |
42 | ||
43 | } | |
44 | ||
45 | void MyPort1::set_parameter(const char *parameter_name, | |
46 | const char *parameter_value) | |
47 | { | |
48 | ||
49 | } | |
50 | ||
51 | void MyPort1::Event_Handler(const fd_set *read_fds, | |
52 | const fd_set *write_fds, const fd_set *error_fds, | |
53 | double time_since_last_call) | |
54 | { | |
55 | ||
56 | } | |
57 | ||
58 | void MyPort1::user_map(const char *system_port) | |
59 | { | |
60 | ||
61 | } | |
62 | ||
63 | void MyPort1::user_unmap(const char *system_port) | |
64 | { | |
65 | ||
66 | } | |
67 | ||
68 | void MyPort1::user_start() | |
69 | { | |
70 | ||
71 | } | |
72 | ||
73 | void MyPort1::user_stop() | |
74 | { | |
75 | ||
76 | } | |
77 | ||
78 | void MyPort1::outgoing_send(const ErrorReturn& send_par) | |
79 | { | |
80 | TTCN_Buffer buf; | |
81 | send_par.encode(ErrorReturn_descr_, buf, | |
82 | TTCN_EncDec::CT_BER, BER_ENCODE_DER); | |
83 | OCTETSTRING os; | |
84 | buf.get_string(os); | |
85 | incoming_message(os); | |
86 | } | |
87 | ||
88 | #ifndef OLD_NAMES | |
89 | } | |
90 | #endif |