summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/sequence.idl
blob: 59c43b7f7157aa2a38e79804eb89929c71b3cb88 (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
// $Id$

// ============================================================================
//
// = LIBRARY
//    TAO/tests/IDL_Test
//
// = FILENAME
//    sequence.idl
//
// = DESCRIPTION
//    This file contains examples of IDL code that has 
//    caused problems in the past for the TAO IDL
//    compiler. This test is to make sure the problems
//    stay fixed.
//
// = AUTHORS
//    Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
//
// ============================================================================


// Bounded string elements of a sequence,
// require the use of CORBA_Any::to_char.

interface seqTest 
{
  typedef sequence< string<12> > dozens;

  void send_dozen (inout dozens bouquets);
};

// CDR operator declarations and definitions 
// for the sequences were getting generated
// twice. Now there's an #if !defined guard
// around them.
struct twinStruct
  {
    sequence<short> and_;
    sequence<short> or_;
  };