summaryrefslogtreecommitdiff
path: root/TAO/tests/DII_Collocation_Tests/twoway/Test.idl
blob: f248f37c6980eb41900e21d9d9cf6ecf008ee4aa (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
//
// $Id$
//

/// Put the interfaces in a module, to avoid global namespace pollution
module Test
{
  const unsigned long FIX_ARRAY_SIZE = 10;
  const unsigned long VAR_ARRAY_SIZE = 3;
  const unsigned long BOUNDED_STRING_SIZE = 10;
  const unsigned long BOUNDED_VAR_SIZE = 10;

  typedef sequence<char, BOUNDED_VAR_SIZE> Bounded_Var_Size_Arg;
  typedef sequence<char> Unbounded_Var_Size_Arg;
  typedef long Fixed_Array[FIX_ARRAY_SIZE];
  typedef string Var_Array [VAR_ARRAY_SIZE];

  struct TimeOfDay {
    short   hour;       // 0 - 23
    short   minute;     // 0 - 59
    short   second;     // 0 - 59
  };

  interface Simple_Test
  {
    void test_method(inout unsigned long error_count);
  };

  /// A very simple interface
  interface Hello
  {
     void test_basic_arg(in long inval, out long outval);

     void test_unbounded_string_arg(in string message);

     void test_bounded_string_arg(in string<BOUNDED_STRING_SIZE> message);

     void test_fixed_array_arg(in Fixed_Array message);

     void test_var_array_arg(in Var_Array messages);

     void test_bounded_var_size_arg(in Bounded_Var_Size_Arg message);

     void test_unbounded_var_size_arg(in Unbounded_Var_Size_Arg message);

     void test_fixed_size_arg (in TimeOfDay t);

     void test_special_basic_arg(in char value);

     void test_objref_arg (in Simple_Test test);

     void test_object_arg (in Object o);
    
     void test_args_1 (in Object arg1, 
                             in char arg2, 
                             in Simple_Test arg3);

     void test_args_2 (in string arg1, 
                             in Fixed_Array arg2, 
                             in TimeOfDay arg3);

     void test_args_3 (in string<BOUNDED_STRING_SIZE> arg1, 
                             in Bounded_Var_Size_Arg arg2, 
                             in Unbounded_Var_Size_Arg arg3,
                             in Var_Array arg4);
      
    /// Return a simple string
    string get_string ();
  
    /// A method to shutdown the ORB
    /**
     * This method is used to simplify the test shutdown process
     */
    oneway void shutdown ();
  };
};