blob: 9be0050789758a208ac50f03f010d02ceca86d81 (
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
77
78
79
80
81
82
83
84
|
//=============================================================================
/**
* @file sequence.idl
*
* 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.
*
*
* @author Jeff Parsons <parsons@cs.wustl.edu> and TAO users.
*/
//=============================================================================
#include "tao/OctetSeq.pidl"
struct myfoostruct;
typedef sequence<myfoostruct> myfoostructseq;
struct myfoostruct
{
string str_mem;
myfoostructseq rec_mem;
};
exception nasty
{
string id;
myfoostruct rec_info;
};
// This will produce a link error if a handcraft we have added to
// tao/OctetSeqC.h is ever removed.
typedef sequence<CORBA::OctetSeq> OctetSeqSeq;
local interface seqLocal
{
};
typedef sequence<seqLocal> seqLocalSeq;
// Tests deeply nested recursive type.
module Deployment
{
struct ComponentPackageDescription;
typedef sequence < ComponentPackageDescription > ComponentPackageDescriptions;
struct ComponentAssemblyDescription {
ComponentPackageDescriptions instance;
};
typedef sequence < ComponentAssemblyDescription > ComponentAssemblyDescriptions;
struct NamedImplementationArtifact;
typedef sequence < NamedImplementationArtifact > NamedImplementationArtifacts;
struct NamedImplementationArtifact {
string str;
NamedImplementationArtifacts dependsOn;
};
struct MonolithicImplementationDescription {
NamedImplementationArtifacts primaryArtifact;
};
typedef sequence < MonolithicImplementationDescription > MonolithicImplementationDescriptions;
struct PackagedComponentImplementation {
ComponentAssemblyDescriptions assemblyImpl;
MonolithicImplementationDescriptions monolithicImpl;
};
typedef sequence < PackagedComponentImplementation > PackagedComponentImplementations;
struct ComponentPackageDescription {
string str;
PackagedComponentImplementations implementation;
};
};
|