summaryrefslogtreecommitdiff
path: root/java/test/IceXML/encoding/Test.ice
blob: f28e5be061368439b46216651425d3bd98ad9a2b (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
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
// **********************************************************************
//
// Copyright (c) 2001
// ZeroC, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef TEST_ICE
#define TEST_ICE

module Test
{

struct Struct1
{
    long l;
};

struct Struct2
{
    Struct1 s1;
};

struct Struct3
{
    long l;
    Struct2 s2;
};

struct Struct4
{
    Struct3 s3;
    long l;
};

sequence<Struct4> Struct4Seq;

dictionary<string, Struct4> StringStruct4Dict;

enum Color
{
    Red,
    Green,
    Blue
};

sequence<Color> ColorSeq;

class Class1
{
    Color c;
    string name;
};

class Class2 extends Class1
{
    Class2 r;
};

interface Interface1
{
    void if1();
};

class Class3 extends Class2 implements Interface1
{
};

exception Exception1
{
};

exception Exception2 extends Exception1
{
    string msg;
};

};

#endif