summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/attribute.idl
blob: 9762b92bed7119b92a3a5002cce80a8d8d385ee2 (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
// $Id$

module Hello
{
  exception InternalErrorA
    {
    };
  exception InternalErrorB
    {
    };

  typedef short MyType;

  // Sender/Receiver interface
  interface MyFoo
    {
      attribute MyType rw_attrib_mytype
        getraises (InternalErrorA)
        setraises (InternalErrorB);

      attribute short rw_attrib
        getraises (InternalErrorA)
        setraises (InternalErrorB);

      attribute short rw_attrib_reverted
        getraises (InternalErrorB)
        setraises (InternalErrorA);

      attribute short rw_attribB
        getraises (InternalErrorB);

      readonly attribute short ro_attrib
        raises (InternalErrorB);
    };
};