summaryrefslogtreecommitdiff
path: root/TAO/tests/OBV/Indirection/Messenger.idl
blob: ec0de56f88c9ae8673f9e6e70b5d5a5c00e78ce8 (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
// Messenger.idl

module demo {

   module value {

      module idl {

        valuetype ConfigValue
        {
          public string name;
          public any value;
        };

        typedef sequence<ConfigValue> ConfigValues;

        valuetype BaseValue
        {
          public unsigned long basic_data;
        };

        //
        // Valuetype with one-level truncatable inheritence.
        //
        valuetype TValue : truncatable BaseValue
        {
          public unsigned long data;
        };

        valuetype boxedLong   long;
        valuetype boxedString string;

        valuetype boxedValue
        {
          public boxedLong b1;
          public boxedLong b2;
        };

        valuetype Node {
          public long id;
          public Node next;
        };

        interface ValueServer {
          string receive_boxedvalue (in boxedValue b);
          string receive_long   (in boxedLong p1, in boxedLong p2);
          string receive_string (in boxedString s1, in boxedString s2);

          string receive_list   (in Node _node);
          string receive_truncatable (inout TValue v);
          string receive_sequence (in ConfigValues v);
        };

      };

   };

};