summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/struct.idl
blob: f8b0317d7cce68e09629579023d7c705ecc98916 (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
// Double forward declared struct test, created by Martin Corino <mcorino@remedy.nl>

module Test
{
  struct S3;

  struct S1
  {
    string hello;
  };

  struct S3;

  typedef sequence<S3> TS3Seq;

  struct S3
  {
    TS3Seq m_seq;
    boolean m_has_more;
  };

  struct S4;
  typedef sequence<S4> TS4Seq;

  struct S5;
  typedef sequence<S5> TS5Seq;

  struct S4
  {
    boolean a;
  };
  struct S5
  {
    boolean b;
  };

  typedef long FooType;
  struct FooStruct  {
    FooType Foo1;
    FooType Foo2;
  };

  enum S90
  {
    S90_1,
    S90_2
  };
  typedef S90 S90Array[2];
  typedef long S42[2];
  typedef string SString43[2];
  typedef S4 S4Array[2];
  struct S10
  {
    S90 s10_1;
    S42 s10_2;
    SString43 s10_3;
    S4 s10_4;
  };
};