summaryrefslogtreecommitdiff
path: root/CIAO/tests/Bug_4009_Regression/Bug_4009_Foo.idl
blob: ed3704ec3c64e2feec750a56678092785a8a1ca5 (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
#ifndef IC_Foo_IDL
#define IC_Foo_IDL

#include <Components.idl>

#pragma ciao lem "Bug_4009_FooE.idl"

component Foo
{
};

module BarMod
{
  typedef sequence<long> TestOfLongSeq;
  typedef sequence<short>  short_sequence;
  typedef sequence<long>   long_sequence;
  typedef sequence<float>  float_sequence;
  typedef sequence<double> double_sequence;
  typedef sequence<string> string_sequence;
  typedef long long_array[5];
  typedef string string_array[5];
  typedef string<50> fixed_string;
  typedef wstring<50> fixed_wstring;

  struct Bar
  {
    short  s;
    long   l;
    float  f;
    double d;
  };

  typedef sequence<Bar, 5> BarSeq;

  struct Baz
  {
    string name;
    BarSeq my_bar_sequence;
  };

  enum DataType
  {
    dtEmpty,
    dtLong,
    dtShort
  };

  union Data switch (DataType)
  {
    case dtLong: long longData;
    case dtShort: short shortData;
  };

  enum DataType2
  {
    dtString,
    dtShortType
  };

  union Data2 switch (DataType2)
  {
    case dtString: string stringData;
    case dtShortType: short shortData;
  };

  interface FooSupport
  {
      attribute short supported_short;
  };
};

module BarMod
{
  component SequenceCompBar
    {
      attribute BarMod::TestOfLongSeq myAttribute;
    };
};

#endif