summaryrefslogtreecommitdiff
path: root/java/test/Ice/translator/TestSingleModuleWithPackage5.ice
blob: 569becd21a64107a90b15eccb2ea9aefbd1a8803 (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
// **********************************************************************
//
// Copyright (c) 2003-2014 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.
//
// **********************************************************************

// Test: use SingleModuleWithPackage types from (same) single module definitions

#include <SingleModuleWithPackage.ice>

module M
{

const smwpEnum smwpTest5Constant = smwpE1;

struct smwpTest5Struct
{
    smwpEnum e;
    smwpStruct s;
    smwpStructSeq seq;
    smwpStringStructDict dict;
    smwpClass c;
    smwpInterface i;
};

sequence<smwpStruct> smwpTest5StructSeq;

dictionary<smwpStruct, smwpBaseClass> smwpTest5StructClassSeq;

interface smwpTest5Interface extends smwpInterface {};

exception smwpTest5Exception extends smwpException
{
    smwpEnum e1;
    smwpStruct s1;
    smwpStructSeq seq1;
    smwpStringStructDict dict1;
    smwpClass c1;
    smwpInterface i1;
};

class smwpTest5Class extends smwpBaseClass implements smwpBaseInterface
{
    smwpStruct
    smwpTest5Op1(smwpEnum i1,
                 smwpStruct i2,
                 smwpStructSeq i3,
                 smwpStringStructDict i4,
                 smwpInterface i5,
                 smwpClass i6,
                 out smwpEnum o1,
                 out smwpStruct o2,
                 out smwpStructSeq o3,
                 out smwpStringStructDict o4,
                 out smwpInterface o5,
                 out smwpClass o6)
        throws smwpException;

    ["amd"]
    smwpStruct
    smwpTest5Op3(smwpEnum i1,
                 smwpStruct i2,
                 smwpStructSeq i3,
                 smwpStringStructDict i4,
                 smwpInterface i5,
                 smwpClass i6,
                 out smwpEnum o1,
                 out smwpStruct o2,
                 out smwpStructSeq o3,
                 out smwpStringStructDict o4,
                 out smwpInterface o5,
                 out smwpClass o6)
        throws smwpException;
};

};