summaryrefslogtreecommitdiff
path: root/TAO/tests/OctetSeq/test.idl
blob: ceaa848800ea3db735a8ecdcf8fe59351045c29d (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

//=============================================================================
/**
 *  @file    test.idl
 *
 * Simple IDL file to test octet sequences.
 *
 *
 *  @author Carlos O'Ryan <coryan@cs.wustl.edu>
 */
//=============================================================================


module Test
{
  typedef sequence<octet> OctetSeq;
  typedef sequence<char> CharSeq;

  typedef unsigned short Index;

  exception OutOfRange {
    Index min_index;
    Index max_index;
  };

  interface Database
  {
    // = TITLE
    //   A database of octet sequences
    //
    // = DESCRIPTION
    //   Just a silly IDL file to test if the ORB can hold octet
    //   sequences intact between calls.  Regularly this wouldn't be a
    //   problem, but TAO optimizations for octet sequences make that
    //   a little trickier to ensure.
    //
    void set (in Index i,
              in OctetSeq value,
              in double verification_token,
              out double returned_token)
      raises (OutOfRange);

    OctetSeq get (in Index i)
      raises (OutOfRange);

    unsigned long get_crc (in Index i)
      raises (OutOfRange);

    oneway void shutdown ();
    // shutdown the ORB
  };
};