Sync with 5.1.0
[deliverable/titan.core.git] / regression_test / intOper / PCOType.cc
CommitLineData
970ed795
EL
1///////////////////////////////////////////////////////////////////////////////
2// Copyright (c) 2000-2014 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.pre4 build 5
10// for (eferkov@E0017083EF5F5) on Wed Aug 20 21:06:45 2008
11
12// You may modify this file. Complete the body of empty functions and
13// add your member functions here.
14
15#include "PCOType.hh"
16
17#ifndef OLD_NAMES
18namespace TintOper {
19#define PCOTYPE_NS PCOType::
20#else
21#define PCOTYPE_NS
22#endif
23
24BOOLEAN MyConverter()
25{
26 INTEGER myint("2147483648");
27 if (myint.get_long_long_val() != 2147483648) return false;
28 myint.set_long_long_val(65536); if (myint.get_long_long_val() != 65536) return false;
29 myint.set_long_long_val(2147483648); if (myint.get_long_long_val() != 2147483648) return false;
30 myint.set_long_long_val(-2147483648); if (myint.get_long_long_val() != -2147483648) return false;
31 myint.set_long_long_val(2147483647); if (myint.get_long_long_val() != 2147483647) return false;
32 myint.set_long_long_val(2547483648); if (myint.get_long_long_val() != 2547483648) return false;
33 myint.set_long_long_val(8589934592LL); if (myint.get_long_long_val() != 8589934592LL) return false;
34 myint.set_long_long_val(17179869184LL); if (myint.get_long_long_val() != 17179869184LL) return false;
35 myint.set_long_long_val(-8223372036854775808LL); if (myint.get_long_long_val() != -8223372036854775808LL) return false;
36 // LLONG_MAX = 2^63 + 1
37 myint.set_long_long_val(9223372036854775807LL); if (myint.get_long_long_val() != 9223372036854775807LL) return false;
38 { INTEGER myint_tmp("9223372036854775807");
39 if (myint_tmp != myint) return false; }
40 // LLONG_MIN = -2^63 + 1
41 myint.set_long_long_val(-9223372036854775807LL); if (myint.get_long_long_val() != -9223372036854775807LL) return false;
42 { INTEGER myint_tmp("73786976294838206464"); // 2^66
43 if (myint_tmp.get_long_long_val() != 0) return false; }
44 { INTEGER myint_tmp("73786976294838206465"); // 2^66 + 1
45 if (myint_tmp.get_long_long_val() != 1) return false; }
46 myint.set_long_long_val(4294967296LL); if (myint.get_long_long_val() != 4294967296LL) return false;
47 myint.set_long_long_val(-4294967296LL); if (myint.get_long_long_val() != -4294967296LL) return false;
48 myint.set_long_long_val(4294967297LL); if (myint.get_long_long_val() != 4294967297LL) return false;
49 myint.set_long_long_val(-4294967297LL); if (myint.get_long_long_val() != -4294967297LL) return false;
50 myint.set_long_long_val(4294967295UL); if (myint.get_long_long_val() != 4294967295UL) return false;
51 myint.set_long_long_val(-4294967295); if (myint.get_long_long_val() != -4294967295) return false;
52 return true;
53}
54
55PCOType::PCOType(const char *par_port_name)
56 : PCOType_BASE(par_port_name)
57{
58
59}
60
61PCOType::~PCOType()
62{
63
64}
65
66void PCOType::set_parameter(const char *parameter_name,
67 const char *parameter_value)
68{
69
70}
71
72/*void PCOType::Handle_Fd_Event(int fd, boolean is_readable,
73 boolean is_writable, boolean is_error) {}*/
74
75void PCOType::Handle_Fd_Event_Error(int fd)
76{
77
78}
79
80void PCOType::Handle_Fd_Event_Writable(int fd)
81{
82
83}
84
85void PCOType::Handle_Fd_Event_Readable(int fd)
86{
87
88}
89
90/*void PCOType::Handle_Timeout(double time_since_last_call) {}*/
91
92void PCOType::user_map(const char *system_port)
93{
94
95}
96
97void PCOType::user_unmap(const char *system_port)
98{
99
100}
101
102void PCOType::user_start()
103{
104
105}
106
107void PCOType::user_stop()
108{
109
110}
111
112void PCOType::outgoing_send(const INTEGER& send_par)
113{
114
115}
116
117void PCOType::outgoing_send(const eint1& send_par)
118{
119
120}
121
122void PCOType::outgoing_send(const rint1& send_par)
123{
124
125}
126
127#ifndef OLD_NAMES
128} /* end of namespace */
129#endif
130
This page took 0.027135 seconds and 5 git commands to generate.