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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
// **********************************************************************
//
// Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
#pragma once
module Test
{
const byte ByteConst1 = 10;
const short ShortConst1 = 20;
const int IntConst1 = 30;
const long LongConst1 = 40;
const byte ByteConst2 = 126;
const short ShortConst2 = 32766;
const int IntConst2 = 2147483647;
const long LongConst2 = 2147483646;
enum ByteEnum
{
benum1,
benum2,
benum3 = ByteConst1,
benum4,
benum5 = ShortConst1,
benum6,
benum7 = IntConst1,
benum8,
benum9 = LongConst1,
benum10,
benum11 = ByteConst2
};
enum ShortEnum
{
senum1 = 3,
senum2,
senum3 = ByteConst1,
senum4,
senum5 = ShortConst1,
senum6,
senum7 = IntConst1,
senum8,
senum9 = LongConst1,
senum10,
senum11 = ShortConst2
};
enum IntEnum
{
ienum1,
ienum2,
ienum3 = ByteConst1,
ienum4,
ienum5 = ShortConst1,
ienum6,
ienum7 = IntConst1,
ienum8,
ienum9 = LongConst1,
ienum10,
ienum11 = IntConst2,
ienum12 = LongConst2
};
enum SimpleEnum
{
red,
green,
blue
};
interface TestIntf
{
ByteEnum opByte(ByteEnum b1, out ByteEnum b2);
ShortEnum opShort(ShortEnum s1, out ShortEnum s2);
IntEnum opInt(IntEnum i1, out IntEnum i2);
SimpleEnum opSimple(SimpleEnum s1, out SimpleEnum s2);
void shutdown();
};
};
|