summaryrefslogtreecommitdiff
path: root/TAO/tests/IDL_Test/old_sequence.idl
blob: cf357e3e86a9f5498b4cf425efa8caae9da82705 (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

//=============================================================================
/**
 *  @file    old_sequence.idl
 *
 *  $Id$
 *
 *  Tests of sequence IDL constructs
 *
 *
 *  @author Andy Gokhale <gokhale@dre.vanderbilt.edu>
 */
//=============================================================================


#include "simple.idl"

typedef sequence<char,20> c20;
typedef sequence<c20,23> cc23;
typedef sequence<char,24> c24;
typedef sequence< sequence<long,10>, 10> c30;

typedef sequence<string> cstring;
struct TProgram
{
  string  path;
  cstring argv;
  cstring envp;
};

struct sfoo
{
  long f1;
  char f2;
};

typedef sfoo              sfoo_ar[20];
typedef sequence<sfoo>    f_unbounded;
typedef sequence<sfoo_ar> f_ar_unbounded;

interface TestSeq
{
  attribute f_unbounded fattr;
  typedef sequence<long,10> also_vec10;
};