summaryrefslogtreecommitdiff
path: root/tests/CSD_Strategy_Tests/TP_Foo_B/Foo_B.idl
blob: 01e5ddb5179670184152677791e58b38225d4248 (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
// $Id$
#ifndef FOO_B_IDL
#define FOO_B_IDL

#include "FooException.idl"
#include "Callback.idl"
 

typedef sequence<char, 32> Bounded_Var_Size;
typedef sequence<char> Unbounded_Var_Size;
typedef long Fixed_Array[20];
typedef string Var_Array [3];
typedef string<20> string_20;

struct TimeOfDay {
    short   hour;       // 0 - 23
    short   minute;     // 0 - 59
    short   second;     // 0 - 59
};
interface Foo_B 
{
  /// void return-type, no arguments
  void op1();

  /// void return-type, 1 "in" argument
  void op2(in long value);

  /// long return-type, 1 "in" argument
  long op3(in long value);

  /// one-way version of op2
  oneway void op4(in long value);

  /// Operation that always raises an exception.
  void op5() raises (FooException);

  /// Test fixed size "in" argument and the "inout" parameter.
  boolean op6(in TimeOfDay t,
              inout string message);

  /// Callback test.
  
  /// Pass the callback object and the server invoke operation on
  /// the callback object reference.
  void op7 (in Callback cb) raises (FooException);

  oneway void test_unbounded_string_arg(in string message);

  oneway void test_bounded_string_arg(in string_20 message);

  oneway void test_fixed_array_arg(in Fixed_Array message);

  oneway void test_var_array_arg(in Var_Array messages);
    
  oneway void test_bounded_var_size_arg(in Bounded_Var_Size message);

  oneway void test_unbounded_var_size_arg(in Unbounded_Var_Size message);

  oneway void test_fixed_size_arg (in TimeOfDay t);

  oneway void test_special_basic_arg(in boolean value, in long client_id);

  oneway void test_objref_arg (in Callback cb);

  /// Client calls this last.  The last client to claim that it is
  /// done will cause the server to shutdown.
  void done();
};


#endif