Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / IDL_Test / dif2.idl
blob65cf571156c1ed9d793ce5baf94880cf259a8e48
2 //=============================================================================
3 /**
4 * @file dif2.idl
6 * Tests of interface operations and attributes in IDL constructs
9 * @author Andy Gokhale <gokhale@dre.vanderbilt.edu>
11 //=============================================================================
14 module OldDif2
16 interface ex1
18 void op0 ();
20 float op1 (in float f,
21 out double d,
22 inout long l);
24 double op2 (in double d,
25 out long l,
26 inout short s);
28 long op3 (in long l,
29 out short s,
30 inout unsigned long ul);
32 short op4 (in short s,
33 out unsigned long ul,
34 inout unsigned short us);
36 unsigned long op5 (inout unsigned long ul,
37 in unsigned short us,
38 out char c,
39 in boolean b);
41 unsigned short op6 (out unsigned short us,
42 inout char c);
45 interface ex2 : ex1
47 // Operations continued from ex1.
48 char op7 (in char c,
49 out boolean b,
50 inout octet o);
52 boolean op8 (out boolean b,
53 in octet o);
55 octet op9 (inout octet o,
56 out string s,
57 in string <10> ls,
58 inout long l);
60 string op10 (in string s,
61 out string <10> ls);
63 string <10> op11 (inout string <10> ls,
64 out long l);
66 long op12 (in long l);
69 interface ex3 : ex1
71 readonly attribute float float_attribute;
73 attribute double double_attribute;
75 readonly attribute long long_attribute;
77 attribute short short_attribute;
79 readonly attribute unsigned long unsigned_long_attribute;
82 interface ex4 : ex2, ex3
84 attribute unsigned short unsigned_short_attribute;
86 readonly attribute char char_attribute;
88 attribute boolean boolean_attribute;
90 readonly attribute octet octet_attribute;
92 attribute string string_attribute;
94 readonly attribute string <10> limited_string_attribute;
96 readonly attribute ex4 an_object_attribute;