Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / commProcedure / ExtProcPort.cc
CommitLineData
970ed795 1///////////////////////////////////////////////////////////////////////////////
3abe9331 2// Copyright (c) 2000-2015 Ericsson Telecom AB
970ed795
EL
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.4.pl3
10// for Gabor Tatarka (tmpgta@duna127) on Wed Jul 9 16:13:51 2003
11
12
13// You may modify this file. Complete the body of empty functions and
14// add your member functions here.
15
16#include "ExtProcPort.hh"
17
18#ifndef OLD_NAMES
19namespace ProcPort {
20#endif
21
22ExtProcPort::ExtProcPort(const char *par_port_name)
23 : ExtProcPort_BASE(par_port_name)
24{
25
26}
27
28ExtProcPort::~ExtProcPort()
29{
30
31}
32
33void ExtProcPort::set_parameter(const char *parameter_name,
34 const char *parameter_value)
35{
36
37}
38
39void ExtProcPort::Event_Handler(const fd_set *read_fds,
40 const fd_set *write_fds, const fd_set *error_fds,
41 double time_since_last_call)
42{
43
44}
45
46void ExtProcPort::user_map(const char *system_port)
47{
48
49}
50
51void ExtProcPort::user_unmap(const char *system_port)
52{
53
54}
55
56void ExtProcPort::user_start()
57{
58
59}
60
61void ExtProcPort::user_stop()
62{
63
64}
65
66void ExtProcPort::outgoing_call(const MyProc5_call& call_par)
67{
68 double d;
69 int a,b;
70 a=call_par.A();b=call_par.B();
71 if(b==0) {
72 incoming_exception(MyProc5_exception(CHARSTRING("Divide by 0.")));
73 } else {
74 d=(double)a/(double)b;
75 MyProc5_reply tmp;
76 tmp.return_value()=d;
77 incoming_reply(tmp);
78 }
79}
80
81void ExtProcPort::outgoing_reply(const MyProc5_reply& reply_par)
82{
83
84}
85
86void ExtProcPort::outgoing_raise(const MyProc5_exception& raise_exception)
87{
88
89}
90
91#ifndef OLD_NAMES
92} /* end of namespace */
93#endif
This page took 0.026783 seconds and 5 git commands to generate.