blob: bf7b61790c93385d548859c22d173ca28003ced5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// $Id$
#include "tao/corba.h"
#include "cubit_i.h"
Cubit_i::Cubit_i (void)
{
}
Cubit_i::~Cubit_i (void)
{
}
CORBA::Octet
Cubit_i::cube_octet (CORBA::Octet o,
CORBA::Environment &)
{
//ACE_ERROR (( LM_ERROR, " {%t}\n"));
return (CORBA::Octet) (o * o * o);
}
CORBA::Short
Cubit_i::cube_short (CORBA::Short s,
CORBA::Environment &)
{
return (CORBA::Short) (s * s * s);
}
CORBA::Long
Cubit_i::cube_long (CORBA::Long l,
CORBA::Environment &)
{
return (CORBA::Long) (l * l * l);
}
Cubit::Many
Cubit_i::cube_struct (const Cubit::Many &values,
CORBA::Environment &)
{
Cubit::Many out_values;
out_values.o = values.o * values.o * values.o;
out_values.s = values.s * values.s * values.s;
out_values.l = values.l * values.l * values.l;
return out_values;
}
void
Cubit_i::noop (CORBA::Environment &)
{
// does nothing.
}
void Cubit_i::shutdown (CORBA::Environment &)
{
TAO_ORB_Core_instance ()->orb ()->shutdown ();
}
|