summaryrefslogtreecommitdiff
path: root/modules/CIAO/tests/IDL_Test/Keywords/Keyword_Clash.idl
blob: d78b200cddd7e3cdca6ea36aae816e4f236a2acc (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// $Id$
/**
 * @file Keyword_Clash.idl
 * @author Jeff Parsons <j.parsons@vanderbilt.edu>
 *
 * Tests handling of C++ keywords and escaped identifiers (IDL
 * keywords) in generating CIAO servant code and executor IDL.
 */

#ifndef KEYWORD_CLASH_IDL
#define KEYWORD_CLASH_IDL

#include "Components.idl"

module _interface
{
  interface _attribute
  {
    exception _inout {};
  };
};

module static
{
  module _readonly
  {
    module protected
    {
      interface virtual
      {
      };

      interface _port
      {
      };

      interface _alias
      {
      };

      interface _mirrorport
      {
      };

      interface _porttype
      {
      };

      interface _connector
      {
      };

      eventtype _eventtype
      {
        private virtual _public;
      };
    };
  };
};

eventtype _eventtype
{
  public string _factory;
  private string friend;
  public string _wstring;
};

interface _oneway {};

module _component
{
  component _out supports static::_readonly::protected::virtual
  {
    provides _interface::_attribute _local;
    provides _oneway else;
    provides static::_readonly::protected::virtual while;

    attribute long _abstract;

    uses multiple _interface::_attribute if;
    uses multiple _oneway mutable;
    uses multiple static::_readonly::protected::virtual register;

    uses _interface::_attribute _union;
    uses _oneway _struct;
    uses static::_readonly::protected::virtual volatile;

    publishes _eventtype _object;
    publishes static::_readonly::protected::_eventtype do;

    consumes _eventtype _const;
    consumes static::_readonly::protected::_eventtype const_cast;

    emits _eventtype class;
    emits static::_readonly::protected::_eventtype delete;
  };

  home new manages _out
  {
    static::_readonly::protected::virtual
    catch (
        inout static::_readonly::protected::_eventtype try)
      raises (_interface::_attribute::_inout);

    finder continue (in _interface::_attribute _inout);
  };
};

#endif /* KEYWORD_CLASH_IDL */