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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
//
// $Id$
//
// ================================================================
//
// = LIBRARY
// TAO_IFR_Client
//
// = FILENAME
// IFR_Extended.pidl
//
// = DESCRIPTION
// This file was used to generate the code in IFR_ExtendedC.{h,i,cpp}.
// The original file Interface.idl was split into four pieces, to
// keep the generated files to a manageable size and reduce build
// time. This IDL file contains all the interfaces and other data
// types related to fixed types and valuetypes.
//
// The command used to generate code from this IDL file is:
//
// tao_idl -Ge 1 -I.. \
// -Wb,export_macro=TAO_IFR_Client_Export \
// -Wb,export_include=ifr_client_export.h \
// -Wb,pre_include="ace/pre.h" \
// -Wb,post_include="ace/post.h" \
// IFR_ExtendedC.pidl
//
// Only the stub files are used in the TAO_IFR_Client library. The
// skeleton files can be deleted from this directory.
//
// No patching of the generated stub files is necessary.
//
// To generate the skeleton files for the IFR Service, the command is:
//
// tao_idl -o ../../orbsvcs/orbsvcs/IFRService -Ge 1 \
// -Wb,pre_include="ace/pre.h" \
// -Wb,post_include="ace/post.h" \
// IFR_ExtendedC.pidl
//
// The only modification necessary to the skelton files is to
// change
//
// #include "IFR_ExtendedC.h"
//
// to
//
// #include "tao/IFR_Client/IFR_ExtendedC.h"
//
// in IFR_ExtendedS.h. The stub files may be deleted from the IFRService
// directory.
//
// ================================================================
#ifndef _IFR_EXTENDED_IDL_
#define _IFR_EXTENDED_IDL_
#include "IFR_Basic.pidl"
module CORBA
{
// Already defined in corbafwd.h, included from orb.idl.
/*
typedef short ValueModifier;
const ValueModifier VM_NONE = 0;
const ValueModifier VM_CUSTOM = 1;
const ValueModifier VM_ABSTRACT = 2;
const ValueModifier VM_TRUNCATABLE = 3;
typedef short Visibility;
const Visibility PRIVATE_MEMBER = 0;
const Visibility PUBLIC_MEMBER = 1;
*/
interface FixedDef : IDLType
{
attribute unsigned short digits;
attribute short scale;
};
struct ValueMember
{
Identifier name;
RepositoryId id;
RepositoryId defined_in;
VersionSpec version;
TypeCode type;
IDLType type_def;
Visibility access;
};
typedef sequence <ValueMember> ValueMemberSeq;
interface ValueMemberDef : Contained
{
readonly attribute TypeCode type;
attribute IDLType type_def;
attribute Visibility access;
};
interface ValueDef : Container,
Contained,
IDLType
{
// read/write interface
attribute InterfaceDefSeq supported_interfaces;
attribute InitializerSeq initializers;
attribute ValueDef base_value;
attribute ValueDefSeq abstract_base_values;
// read interface
attribute boolean is_abstract;
attribute boolean is_custom;
attribute boolean is_truncatable;
boolean is_a (
in RepositoryId id
);
struct FullValueDescription
{
Identifier name;
RepositoryId id;
boolean is_abstract;
boolean is_custom;
RepositoryId defined_in;
VersionSpec version;
OpDescriptionSeq operations;
AttrDescriptionSeq attributes;
ValueMemberSeq members;
InitializerSeq initializers;
RepositoryIdSeq supported_interfaces;
RepositoryIdSeq abstract_base_values;
boolean is_truncatable;
RepositoryId base_value;
TypeCode type;
};
FullValueDescription describe_value ();
ValueMemberDef create_value_member (
in RepositoryId id,
in Identifier name,
in VersionSpec version,
in IDLType type,
in Visibility access
);
AttributeDef create_attribute (
in RepositoryId id,
in Identifier name,
in VersionSpec version,
in IDLType type,
in AttributeMode mode
);
OperationDef create_operation (
in RepositoryId id,
in Identifier name,
in VersionSpec version,
in IDLType result,
in OperationMode mode,
in ParDescriptionSeq params,
in ExceptionDefSeq exceptions,
in ContextIdSeq contexts
);
};
struct ValueDescription
{
Identifier name;
RepositoryId id;
boolean is_abstract;
boolean is_custom;
RepositoryId defined_in;
VersionSpec version;
RepositoryIdSeq supported_interfaces;
RepositoryIdSeq abstract_base_values;
boolean is_truncatable;
RepositoryId base_value;
};
interface ExtValueDef : ValueDef
{
// read/write interface
attribute ExtInitializerSeq ext_initializers;
// read interface
struct ExtFullValueDescription
{
Identifier name;
RepositoryId id;
boolean is_abstract;
boolean is_custom;
RepositoryId defined_in;
VersionSpec version;
OpDescriptionSeq operations;
ExtAttrDescriptionSeq attributes;
ValueMemberSeq members;
ExtInitializerSeq initializers;
RepositoryIdSeq supported_interfaces;
RepositoryIdSeq abstract_base_values;
boolean is_truncatable;
RepositoryId base_value;
TypeCode type;
};
ExtFullValueDescription describe_ext_value ();
// write interface
ExtAttributeDef create_ext_attribute (
in RepositoryId id,
in Identifier name,
in VersionSpec version,
in IDLType type,
in AttributeMode mode,
in ExceptionDefSeq get_exceptions,
in ExceptionDefSeq set_exceptions
);
};
interface ValueBoxDef : TypedefDef
{
attribute IDLType original_type_def;
};
};
#endif /* _IFR_EXTENDED_IDL_ */
|