blob: 5bdf1645870549fe55229c51d0660328dbe90da8 (
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
|
// $Id$
interface Cubit
{
// = TITLE
// Defines an interface that encapsulates operations that cube
// numbers.
//
// = DESCRIPTION
// This interface encapsulates operations that cube
// octets, shorts, longs, structs and unions.
struct Many
{
octet o; // + 3 bytes padding (normally) ...
long l;
short s; // + 2 bytes padding (normally) ...
};
octet cube_octet (in octet o);
// cube an octet
short cube_short (in short s);
// cube a short
long cube_long (in long l);
// cube a long
Many cube_struct (in Many values);
// cube each of the members of a struct
oneway void noop ();
// null operation
oneway void shutdown ();
// shut down the application
};
interface Cubit_Factory
{
// = TITLE
// Creates Cubit objects.
string create_cubit (in unsigned short index);
// Factory method that creates an string containing the IOR of the
// designated Cubit object.
};
|