| 1 | # $Id: IR.pm,v 1.2 1997/05/23 12:34:42 schuller Exp $ | ||
| 2 | # Copyright (c) 1997 Lunatech Research / Bart Schuller <schuller@lunatech.com> | ||
| 3 | # See the file "Artistic" in the distribution for licensing and | ||
| 4 | # (lack of) warranties. | ||
| 5 | |||
| 6 | use COPE::IR_types; | ||
| 7 | |||
| 8 | # IDL:omg.org/CORBA/IRObject:1.0 | ||
| 9 | package CORBA::IRObject; | ||
| 10 | @CORBA::IRObject::ISA=qw(CORBA::Object); | ||
| 11 | # IDL:omg.org/CORBA/IRObject/def_kind:1.0 | ||
| 12 | sub def_kind { | ||
| 13 | my($self,@rest) = @_; | ||
| 14 | return $self->_attribute('def_kind', $CORBA::DefinitionKind::_tc, @rest); | ||
| 15 | } | ||
| 16 | |||
| 17 | # IDL:omg.org/CORBA/IRObject/destroy:1.0 | ||
| 18 | sub destroy { | ||
| 19 | my($self) = @_; | ||
| 20 | my $result_ = { _type => $CORBA::_tc_void }; | ||
| 21 | my $request_ = $self->create_request( | ||
| 22 | 'operation' => 'destroy', | ||
| 23 | 'arg_list' => [ | ||
| 24 | ], | ||
| 25 | 'result' => $result_, | ||
| 26 | ); | ||
| 27 | $request_->invoke(0); | ||
| 28 | } | ||
| 29 | |||
| 30 | # IDL:omg.org/CORBA/Principal:1.0 | ||
| 31 | package CORBA::Principal; | ||
| 32 | @CORBA::Principal::ISA=qw(CORBA::Object); | ||
| 33 | # IDL:omg.org/CORBA/Contained:1.0 | ||
| 34 | package CORBA::Contained; | ||
| 35 | @CORBA::Contained::ISA=qw(CORBA::IRObject CORBA::Object); | ||
| 36 | # IDL:omg.org/CORBA/Contained/id:1.0 | ||
| 37 | sub id { | ||
| 38 | my($self,@rest) = @_; | ||
| 39 | return $self->_attribute('id', $CORBA::RepositoryId::_tc, @rest); | ||
| 40 | } | ||
| 41 | |||
| 42 | # IDL:omg.org/CORBA/Contained/name:1.0 | ||
| 43 | sub name { | ||
| 44 | my($self,@rest) = @_; | ||
| 45 | return $self->_attribute('name', $CORBA::Identifier::_tc, @rest); | ||
| 46 | } | ||
| 47 | |||
| 48 | # IDL:omg.org/CORBA/Contained/version:1.0 | ||
| 49 | sub version { | ||
| 50 | my($self,@rest) = @_; | ||
| 51 | return $self->_attribute('version', $CORBA::VersionSpec::_tc, @rest); | ||
| 52 | } | ||
| 53 | |||
| 54 | # IDL:omg.org/CORBA/Contained/defined_in:1.0 | ||
| 55 | sub defined_in { | ||
| 56 | my($self,@rest) = @_; | ||
| 57 | return $self->_attribute('defined_in', $CORBA::Container::_tc, @rest); | ||
| 58 | } | ||
| 59 | |||
| 60 | # IDL:omg.org/CORBA/Contained/absolute_name:1.0 | ||
| 61 | sub absolute_name { | ||
| 62 | my($self,@rest) = @_; | ||
| 63 | return $self->_attribute('absolute_name', $CORBA::ScopedName::_tc, @rest); | ||
| 64 | } | ||
| 65 | |||
| 66 | # IDL:omg.org/CORBA/Contained/containing_repository:1.0 | ||
| 67 | sub containing_repository { | ||
| 68 | my($self,@rest) = @_; | ||
| 69 | return $self->_attribute('containing_repository', $CORBA::Repository::_tc, @rest); | ||
| 70 | } | ||
| 71 | |||
| 72 | # IDL:omg.org/CORBA/Contained/describe:1.0 | ||
| 73 | sub describe { | ||
| 74 | my($self) = @_; | ||
| 75 | my $result_ = { _type => $CORBA::Contained::Description::_tc }; | ||
| 76 | my $request_ = $self->create_request( | ||
| 77 | 'operation' => 'describe', | ||
| 78 | 'arg_list' => [ | ||
| 79 | ], | ||
| 80 | 'result' => $result_, | ||
| 81 | ); | ||
| 82 | $request_->invoke(0); | ||
| 83 | return $result_->{_value}; | ||
| 84 | } | ||
| 85 | |||
| 86 | # IDL:omg.org/CORBA/Contained/move:1.0 | ||
| 87 | sub move { | ||
| 88 | my($self,$new_container,$new_name,$new_version) = @_; | ||
| 89 | my $result_ = { _type => $CORBA::_tc_void }; | ||
| 90 | my $request_ = $self->create_request( | ||
| 91 | 'operation' => 'move', | ||
| 92 | 'arg_list' => [ | ||
| 93 | { 'argument' => | ||
| 94 | { _type => $CORBA::Container::_tc, _value => $new_container }, | ||
| 95 | 'arg_modes' => 0, | ||
| 96 | }, | ||
| 97 | { 'argument' => | ||
| 98 | { _type => $CORBA::Identifier::_tc, _value => $new_name }, | ||
| 99 | 'arg_modes' => 0, | ||
| 100 | }, | ||
| 101 | { 'argument' => | ||
| 102 | { _type => $CORBA::VersionSpec::_tc, _value => $new_version }, | ||
| 103 | 'arg_modes' => 0, | ||
| 104 | }, | ||
| 105 | ], | ||
| 106 | 'result' => $result_, | ||
| 107 | ); | ||
| 108 | $request_->invoke(0); | ||
| 109 | } | ||
| 110 | |||
| 111 | # IDL:omg.org/CORBA/Container:1.0 | ||
| 112 | package CORBA::Container; | ||
| 113 | @CORBA::Container::ISA=qw(CORBA::IRObject CORBA::Object); | ||
| 114 | # IDL:omg.org/CORBA/Container/lookup:1.0 | ||
| 115 | sub lookup { | ||
| 116 | my($self,$search_name) = @_; | ||
| 117 | my $result_ = { _type => $CORBA::Contained::_tc }; | ||
| 118 | my $request_ = $self->create_request( | ||
| 119 | 'operation' => 'lookup', | ||
| 120 | 'arg_list' => [ | ||
| 121 | { 'argument' => | ||
| 122 | { _type => $CORBA::ScopedName::_tc, _value => $search_name }, | ||
| 123 | 'arg_modes' => 0, | ||
| 124 | }, | ||
| 125 | ], | ||
| 126 | 'result' => $result_, | ||
| 127 | ); | ||
| 128 | $request_->invoke(0); | ||
| 129 | return $result_->{_value}; | ||
| 130 | } | ||
| 131 | |||
| 132 | # IDL:omg.org/CORBA/Container/contents:1.0 | ||
| 133 | sub contents { | ||
| 134 | my($self,$limit_type,$exclude_inherited) = @_; | ||
| 135 | my $result_ = { _type => $CORBA::ContainedSeq::_tc }; | ||
| 136 | my $request_ = $self->create_request( | ||
| 137 | 'operation' => 'contents', | ||
| 138 | 'arg_list' => [ | ||
| 139 | { 'argument' => | ||
| 140 | { _type => $CORBA::DefinitionKind::_tc, _value => $limit_type }, | ||
| 141 | 'arg_modes' => 0, | ||
| 142 | }, | ||
| 143 | { 'argument' => | ||
| 144 | { _type => $CORBA::_tc_boolean, _value => $exclude_inherited }, | ||
| 145 | 'arg_modes' => 0, | ||
| 146 | }, | ||
| 147 | ], | ||
| 148 | 'result' => $result_, | ||
| 149 | ); | ||
| 150 | $request_->invoke(0); | ||
| 151 | return $result_->{_value}; | ||
| 152 | } | ||
| 153 | |||
| 154 | # IDL:omg.org/CORBA/Container/lookup_name:1.0 | ||
| 155 | sub lookup_name { | ||
| 156 | my($self,$search_name,$levels_to_search,$limit_type,$exclude_inherited) = @_; | ||
| 157 | my $result_ = { _type => $CORBA::ContainedSeq::_tc }; | ||
| 158 | my $request_ = $self->create_request( | ||
| 159 | 'operation' => 'lookup_name', | ||
| 160 | 'arg_list' => [ | ||
| 161 | { 'argument' => | ||
| 162 | { _type => $CORBA::Identifier::_tc, _value => $search_name }, | ||
| 163 | 'arg_modes' => 0, | ||
| 164 | }, | ||
| 165 | { 'argument' => | ||
| 166 | { _type => $CORBA::_tc_long, _value => $levels_to_search }, | ||
| 167 | 'arg_modes' => 0, | ||
| 168 | }, | ||
| 169 | { 'argument' => | ||
| 170 | { _type => $CORBA::DefinitionKind::_tc, _value => $limit_type }, | ||
| 171 | 'arg_modes' => 0, | ||
| 172 | }, | ||
| 173 | { 'argument' => | ||
| 174 | { _type => $CORBA::_tc_boolean, _value => $exclude_inherited }, | ||
| 175 | 'arg_modes' => 0, | ||
| 176 | }, | ||
| 177 | ], | ||
| 178 | 'result' => $result_, | ||
| 179 | ); | ||
| 180 | $request_->invoke(0); | ||
| 181 | return $result_->{_value}; | ||
| 182 | } | ||
| 183 | |||
| 184 | # IDL:omg.org/CORBA/Container/describe_contents:1.0 | ||
| 185 | sub describe_contents { | ||
| 186 | my($self,$limit_type,$exclude_inherited,$max_returned_objs) = @_; | ||
| 187 | my $result_ = { _type => $CORBA::Container::DescriptionSeq::_tc }; | ||
| 188 | my $request_ = $self->create_request( | ||
| 189 | 'operation' => 'describe_contents', | ||
| 190 | 'arg_list' => [ | ||
| 191 | { 'argument' => | ||
| 192 | { _type => $CORBA::DefinitionKind::_tc, _value => $limit_type }, | ||
| 193 | 'arg_modes' => 0, | ||
| 194 | }, | ||
| 195 | { 'argument' => | ||
| 196 | { _type => $CORBA::_tc_boolean, _value => $exclude_inherited }, | ||
| 197 | 'arg_modes' => 0, | ||
| 198 | }, | ||
| 199 | { 'argument' => | ||
| 200 | { _type => $CORBA::_tc_long, _value => $max_returned_objs }, | ||
| 201 | 'arg_modes' => 0, | ||
| 202 | }, | ||
| 203 | ], | ||
| 204 | 'result' => $result_, | ||
| 205 | ); | ||
| 206 | $request_->invoke(0); | ||
| 207 | return $result_->{_value}; | ||
| 208 | } | ||
| 209 | |||
| 210 | # IDL:omg.org/CORBA/Container/create_module:1.0 | ||
| 211 | sub create_module { | ||
| 212 | my($self,$id,$name,$version) = @_; | ||
| 213 | my $result_ = { _type => $CORBA::ModuleDef::_tc }; | ||
| 214 | my $request_ = $self->create_request( | ||
| 215 | 'operation' => 'create_module', | ||
| 216 | 'arg_list' => [ | ||
| 217 | { 'argument' => | ||
| 218 | { _type => $CORBA::RepositoryId::_tc, _value => $id }, | ||
| 219 | 'arg_modes' => 0, | ||
| 220 | }, | ||
| 221 | { 'argument' => | ||
| 222 | { _type => $CORBA::Identifier::_tc, _value => $name }, | ||
| 223 | 'arg_modes' => 0, | ||
| 224 | }, | ||
| 225 | { 'argument' => | ||
| 226 | { _type => $CORBA::VersionSpec::_tc, _value => $version }, | ||
| 227 | 'arg_modes' => 0, | ||
| 228 | }, | ||
| 229 | ], | ||
| 230 | 'result' => $result_, | ||
| 231 | ); | ||
| 232 | $request_->invoke(0); | ||
| 233 | return $result_->{_value}; | ||
| 234 | } | ||
| 235 | |||
| 236 | # IDL:omg.org/CORBA/Container/create_constant:1.0 | ||
| 237 | sub create_constant { | ||
| 238 | my($self,$id,$name,$version,$type,$value) = @_; | ||
| 239 | my $result_ = { _type => $CORBA::ConstantDef::_tc }; | ||
| 240 | my $request_ = $self->create_request( | ||
| 241 | 'operation' => 'create_constant', | ||
| 242 | 'arg_list' => [ | ||
| 243 | { 'argument' => | ||
| 244 | { _type => $CORBA::RepositoryId::_tc, _value => $id }, | ||
| 245 | 'arg_modes' => 0, | ||
| 246 | }, | ||
| 247 | { 'argument' => | ||
| 248 | { _type => $CORBA::Identifier::_tc, _value => $name }, | ||
| 249 | 'arg_modes' => 0, | ||
| 250 | }, | ||
| 251 | { 'argument' => | ||
| 252 | { _type => $CORBA::VersionSpec::_tc, _value => $version }, | ||
| 253 | 'arg_modes' => 0, | ||
| 254 | }, | ||
| 255 | { 'argument' => | ||
| 256 | { _type => $CORBA::IDLType::_tc, _value => $type }, | ||
| 257 | 'arg_modes' => 0, | ||
| 258 | }, | ||
| 259 | { 'argument' => | ||
| 260 | { _type => $CORBA::_tc_any, _value => $value }, | ||
| 261 | 'arg_modes' => 0, | ||
| 262 | }, | ||
| 263 | ], | ||
| 264 | 'result' => $result_, | ||
| 265 | ); | ||
| 266 | $request_->invoke(0); | ||
| 267 | return $result_->{_value}; | ||
| 268 | } | ||
| 269 | |||
| 270 | # IDL:omg.org/CORBA/Container/create_struct:1.0 | ||
| 271 | sub create_struct { | ||
| 272 | my($self,$id,$name,$version,$members) = @_; | ||
| 273 | my $result_ = { _type => $CORBA::StructDef::_tc }; | ||
| 274 | my $request_ = $self->create_request( | ||
| 275 | 'operation' => 'create_struct', | ||
| 276 | 'arg_list' => [ | ||
| 277 | { 'argument' => | ||
| 278 | { _type => $CORBA::RepositoryId::_tc, _value => $id }, | ||
| 279 | 'arg_modes' => 0, | ||
| 280 | }, | ||
| 281 | { 'argument' => | ||
| 282 | { _type => $CORBA::Identifier::_tc, _value => $name }, | ||
| 283 | 'arg_modes' => 0, | ||
| 284 | }, | ||
| 285 | { 'argument' => | ||
| 286 | { _type => $CORBA::VersionSpec::_tc, _value => $version }, | ||
| 287 | 'arg_modes' => 0, | ||
| 288 | }, | ||
| 289 | { 'argument' => | ||
| 290 | { _type => $CORBA::StructMemberSeq::_tc, _value => $members }, | ||
| 291 | 'arg_modes' => 0, | ||
| 292 | }, | ||
| 293 | ], | ||
| 294 | 'result' => $result_, | ||
| 295 | ); | ||
| 296 | $request_->invoke(0); | ||
| 297 | return $result_->{_value}; | ||
| 298 | } | ||
| 299 | |||
| 300 | # IDL:omg.org/CORBA/Container/create_union:1.0 | ||
| 301 | sub create_union { | ||
| 302 | my($self,$id,$name,$version,$discriminator_type,$members) = @_; | ||
| 303 | my $result_ = { _type => $CORBA::UnionDef::_tc }; | ||
| 304 | my $request_ = $self->create_request( | ||
| 305 | 'operation' => 'create_union', | ||
| 306 | 'arg_list' => [ | ||
| 307 | { 'argument' => | ||
| 308 | { _type => $CORBA::RepositoryId::_tc, _value => $id }, | ||
| 309 | 'arg_modes' => 0, | ||
| 310 | }, | ||
| 311 | { 'argument' => | ||
| 312 | { _type => $CORBA::Identifier::_tc, _value => $name }, | ||
| 313 | 'arg_modes' => 0, | ||
| 314 | }, | ||
| 315 | { 'argument' => | ||
| 316 | { _type => $CORBA::VersionSpec::_tc, _value => $version }, | ||
| 317 | 'arg_modes' => 0, | ||
| 318 | }, | ||
| 319 | { 'argument' => | ||
| 320 | { _type => $CORBA::IDLType::_tc, _value => $discriminator_type }, | ||
| 321 | 'arg_modes' => 0, | ||
| 322 | }, | ||
| 323 | { 'argument' => | ||
| 324 | { _type => $CORBA::UnionMemberSeq::_tc, _value => $members }, | ||
| 325 | 'arg_modes' => 0, | ||
| 326 | }, | ||
| 327 | ], | ||
| 328 | 'result' => $result_, | ||
| 329 | ); | ||
| 330 | $request_->invoke(0); | ||
| 331 | return $result_->{_value}; | ||
| 332 | } | ||
| 333 | |||
| 334 | # IDL:omg.org/CORBA/Container/create_enum:1.0 | ||
| 335 | sub create_enum { | ||
| 336 | my($self,$id,$name,$version,$members) = @_; | ||
| 337 | my $result_ = { _type => $CORBA::EnumDef::_tc }; | ||
| 338 | my $request_ = $self->create_request( | ||
| 339 | 'operation' => 'create_enum', | ||
| 340 | 'arg_list' => [ | ||
| 341 | { 'argument' => | ||
| 342 | { _type => $CORBA::RepositoryId::_tc, _value => $id }, | ||
| 343 | 'arg_modes' => 0, | ||
| 344 | }, | ||
| 345 | { 'argument' => | ||
| 346 | { _type => $CORBA::Identifier::_tc, _value => $name }, | ||
| 347 | 'arg_modes' => 0, | ||
| 348 | }, | ||
| 349 | { 'argument' => | ||
| 350 | { _type => $CORBA::VersionSpec::_tc, _value => $version }, | ||
| 351 | 'arg_modes' => 0, | ||
| 352 | }, | ||
| 353 | { 'argument' => | ||
| 354 | { _type => $CORBA::EnumMemberSeq::_tc, _value => $members }, | ||
| 355 | 'arg_modes' => 0, | ||
| 356 | }, | ||
| 357 | ], | ||
| 358 | 'result' => $result_, | ||
| 359 | ); | ||
| 360 | $request_->invoke(0); | ||
| 361 | return $result_->{_value}; | ||
| 362 | } | ||
| 363 | |||
| 364 | # IDL:omg.org/CORBA/Container/create_alias:1.0 | ||
| 365 | sub create_alias { | ||
| 366 | my($self,$id,$name,$version,$original_type) = @_; | ||
| 367 | my $result_ = { _type => $CORBA::AliasDef::_tc }; | ||
| 368 | my $request_ = $self->create_request( | ||
| 369 | 'operation' => 'create_alias', | ||
| 370 | 'arg_list' => [ | ||
| 371 | { 'argument' => | ||
| 372 | { _type => $CORBA::RepositoryId::_tc, _value => $id }, | ||
| 373 | 'arg_modes' => 0, | ||
| 374 | }, | ||
| 375 | { 'argument' => | ||
| 376 | { _type => $CORBA::Identifier::_tc, _value => $name }, | ||
| 377 | 'arg_modes' => 0, | ||
| 378 | }, | ||
| 379 | { 'argument' => | ||
| 380 | { _type => $CORBA::VersionSpec::_tc, _value => $version }, | ||
| 381 | 'arg_modes' => 0, | ||
| 382 | }, | ||
| 383 | { 'argument' => | ||
| 384 | { _type => $CORBA::IDLType::_tc, _value => $original_type }, | ||
| 385 | 'arg_modes' => 0, | ||
| 386 | }, | ||
| 387 | ], | ||
| 388 | 'result' => $result_, | ||
| 389 | ); | ||
| 390 | $request_->invoke(0); | ||
| 391 | return $result_->{_value}; | ||
| 392 | } | ||
| 393 | |||
| 394 | # IDL:omg.org/CORBA/Container/create_interface:1.0 | ||
| 395 | sub create_interface { | ||
| 396 | my($self,$id,$name,$version,$base_interfaces) = @_; | ||
| 397 | my $result_ = { _type => $CORBA::InterfaceDef::_tc }; | ||
| 398 | my $request_ = $self->create_request( | ||
| 399 | 'operation' => 'create_interface', | ||
| 400 | 'arg_list' => [ | ||
| 401 | { 'argument' => | ||
| 402 | { _type => $CORBA::RepositoryId::_tc, _value => $id }, | ||
| 403 | 'arg_modes' => 0, | ||
| 404 | }, | ||
| 405 | { 'argument' => | ||
| 406 | { _type => $CORBA::Identifier::_tc, _value => $name }, | ||
| 407 | 'arg_modes' => 0, | ||
| 408 | }, | ||
| 409 | { 'argument' => | ||
| 410 | { _type => $CORBA::VersionSpec::_tc, _value => $version }, | ||
| 411 | 'arg_modes' => 0, | ||
| 412 | }, | ||
| 413 | { 'argument' => | ||
| 414 | { _type => $CORBA::InterfaceDefSeq::_tc, _value => $base_interfaces }, | ||
| 415 | 'arg_modes' => 0, | ||
| 416 | }, | ||
| 417 | ], | ||
| 418 | 'result' => $result_, | ||
| 419 | ); | ||
| 420 | $request_->invoke(0); | ||
| 421 | return $result_->{_value}; | ||
| 422 | } | ||
| 423 | |||
| 424 | # IDL:omg.org/CORBA/IDLType:1.0 | ||
| 425 | package CORBA::IDLType; | ||
| 426 | @CORBA::IDLType::ISA=qw(CORBA::IRObject CORBA::Object); | ||
| 427 | # IDL:omg.org/CORBA/IDLType/type:1.0 | ||
| 428 | sub type { | ||
| 429 | my($self,@rest) = @_; | ||
| 430 | return $self->_attribute('type', $CORBA::_tc_TypeCode, @rest); | ||
| 431 | } | ||
| 432 | |||
| 433 | # IDL:omg.org/CORBA/Repository:1.0 | ||
| 434 | package CORBA::Repository; | ||
| 435 | @CORBA::Repository::ISA=qw(CORBA::Container CORBA::Object); | ||
| 436 | # IDL:omg.org/CORBA/Repository/lookup_id:1.0 | ||
| 437 | sub lookup_id { | ||
| 438 | my($self,$search_id) = @_; | ||
| 439 | my $result_ = { _type => $CORBA::Contained::_tc }; | ||
| 440 | my $request_ = $self->create_request( | ||
| 441 | 'operation' => 'lookup_id', | ||
| 442 | 'arg_list' => [ | ||
| 443 | { 'argument' => | ||
| 444 | { _type => $CORBA::RepositoryId::_tc, _value => $search_id }, | ||
| 445 | 'arg_modes' => 0, | ||
| 446 | }, | ||
| 447 | ], | ||
| 448 | 'result' => $result_, | ||
| 449 | ); | ||
| 450 | $request_->invoke(0); | ||
| 451 | return $result_->{_value}; | ||
| 452 | } | ||
| 453 | |||
| 454 | # IDL:omg.org/CORBA/Repository/get_primitive:1.0 | ||
| 455 | sub get_primitive { | ||
| 456 | my($self,$kind) = @_; | ||
| 457 | my $result_ = { _type => $CORBA::PrimitiveDef::_tc }; | ||
| 458 | my $request_ = $self->create_request( | ||
| 459 | 'operation' => 'get_primitive', | ||
| 460 | 'arg_list' => [ | ||
| 461 | { 'argument' => | ||
| 462 | { _type => $CORBA::PrimitiveKind::_tc, _value => $kind }, | ||
| 463 | 'arg_modes' => 0, | ||
| 464 | }, | ||
| 465 | ], | ||
| 466 | 'result' => $result_, | ||
| 467 | ); | ||
| 468 | $request_->invoke(0); | ||
| 469 | return $result_->{_value}; | ||
| 470 | } | ||
| 471 | |||
| 472 | # IDL:omg.org/CORBA/Repository/create_string:1.0 | ||
| 473 | sub create_string { | ||
| 474 | my($self,$bound) = @_; | ||
| 475 | my $result_ = { _type => $CORBA::StringDef::_tc }; | ||
| 476 | my $request_ = $self->create_request( | ||
| 477 | 'operation' => 'create_string', | ||
| 478 | 'arg_list' => [ | ||
| 479 | { 'argument' => | ||
| 480 | { _type => $CORBA::_tc_ulong, _value => $bound }, | ||
| 481 | 'arg_modes' => 0, | ||
| 482 | }, | ||
| 483 | ], | ||
| 484 | 'result' => $result_, | ||
| 485 | ); | ||
| 486 | $request_->invoke(0); | ||
| 487 | return $result_->{_value}; | ||
| 488 | } | ||
| 489 | |||
| 490 | # IDL:omg.org/CORBA/Repository/create_sequence:1.0 | ||
| 491 | sub create_sequence { | ||
| 492 | my($self,$bound,$element_type) = @_; | ||
| 493 | my $result_ = { _type => $CORBA::SequenceDef::_tc }; | ||
| 494 | my $request_ = $self->create_request( | ||
| 495 | 'operation' => 'create_sequence', | ||
| 496 | 'arg_list' => [ | ||
| 497 | { 'argument' => | ||
| 498 | { _type => $CORBA::_tc_ulong, _value => $bound }, | ||
| 499 | 'arg_modes' => 0, | ||
| 500 | }, | ||
| 501 | { 'argument' => | ||
| 502 | { _type => $CORBA::IDLType::_tc, _value => $element_type }, | ||
| 503 | 'arg_modes' => 0, | ||
| 504 | }, | ||
| 505 | ], | ||
| 506 | 'result' => $result_, | ||
| 507 | ); | ||
| 508 | $request_->invoke(0); | ||
| 509 | return $result_->{_value}; | ||
| 510 | } | ||
| 511 | |||
| 512 | # IDL:omg.org/CORBA/Repository/create_array:1.0 | ||
| 513 | sub create_array { | ||
| 514 | my($self,$length,$element_type) = @_; | ||
| 515 | my $result_ = { _type => $CORBA::ArrayDef::_tc }; | ||
| 516 | my $request_ = $self->create_request( | ||
| 517 | 'operation' => 'create_array', | ||
| 518 | 'arg_list' => [ | ||
| 519 | { 'argument' => | ||
| 520 | { _type => $CORBA::_tc_ulong, _value => $length }, | ||
| 521 | 'arg_modes' => 0, | ||
| 522 | }, | ||
| 523 | { 'argument' => | ||
| 524 | { _type => $CORBA::IDLType::_tc, _value => $element_type }, | ||
| 525 | 'arg_modes' => 0, | ||
| 526 | }, | ||
| 527 | ], | ||
| 528 | 'result' => $result_, | ||
| 529 | ); | ||
| 530 | $request_->invoke(0); | ||
| 531 | return $result_->{_value}; | ||
| 532 | } | ||
| 533 | |||
| 534 | # IDL:omg.org/CORBA/ModuleDef:1.0 | ||
| 535 | package CORBA::ModuleDef; | ||
| 536 | @CORBA::ModuleDef::ISA=qw(CORBA::Container CORBA::Contained CORBA::Object); | ||
| 537 | # IDL:omg.org/CORBA/ConstantDef:1.0 | ||
| 538 | package CORBA::ConstantDef; | ||
| 539 | @CORBA::ConstantDef::ISA=qw(CORBA::Contained CORBA::Object); | ||
| 540 | # IDL:omg.org/CORBA/ConstantDef/type:1.0 | ||
| 541 | sub type { | ||
| 542 | my($self,@rest) = @_; | ||
| 543 | return $self->_attribute('type', $CORBA::_tc_TypeCode, @rest); | ||
| 544 | } | ||
| 545 | |||
| 546 | # IDL:omg.org/CORBA/ConstantDef/type_def:1.0 | ||
| 547 | sub type_def { | ||
| 548 | my($self,@rest) = @_; | ||
| 549 | return $self->_attribute('type_def', $CORBA::IDLType::_tc, @rest); | ||
| 550 | } | ||
| 551 | |||
| 552 | # IDL:omg.org/CORBA/ConstantDef/value:1.0 | ||
| 553 | sub value { | ||
| 554 | my($self,@rest) = @_; | ||
| 555 | return $self->_attribute('value', $CORBA::_tc_any, @rest); | ||
| 556 | } | ||
| 557 | |||
| 558 | # IDL:omg.org/CORBA/TypedefDef:1.0 | ||
| 559 | package CORBA::TypedefDef; | ||
| 560 | @CORBA::TypedefDef::ISA=qw(CORBA::Contained CORBA::IDLType CORBA::Object); | ||
| 561 | # IDL:omg.org/CORBA/StructDef:1.0 | ||
| 562 | package CORBA::StructDef; | ||
| 563 | @CORBA::StructDef::ISA=qw(CORBA::TypedefDef CORBA::Object); | ||
| 564 | # IDL:omg.org/CORBA/StructDef/members:1.0 | ||
| 565 | sub members { | ||
| 566 | my($self,@rest) = @_; | ||
| 567 | return $self->_attribute('members', $CORBA::StructMemberSeq::_tc, @rest); | ||
| 568 | } | ||
| 569 | |||
| 570 | # IDL:omg.org/CORBA/UnionDef:1.0 | ||
| 571 | package CORBA::UnionDef; | ||
| 572 | @CORBA::UnionDef::ISA=qw(CORBA::TypedefDef CORBA::Object); | ||
| 573 | # IDL:omg.org/CORBA/UnionDef/discriminator_type:1.0 | ||
| 574 | sub discriminator_type { | ||
| 575 | my($self,@rest) = @_; | ||
| 576 | return $self->_attribute('discriminator_type', $CORBA::_tc_TypeCode, @rest); | ||
| 577 | } | ||
| 578 | |||
| 579 | # IDL:omg.org/CORBA/UnionDef/discriminator_type_def:1.0 | ||
| 580 | sub discriminator_type_def { | ||
| 581 | my($self,@rest) = @_; | ||
| 582 | return $self->_attribute('discriminator_type_def', $CORBA::IDLType::_tc, @rest); | ||
| 583 | } | ||
| 584 | |||
| 585 | # IDL:omg.org/CORBA/UnionDef/members:1.0 | ||
| 586 | sub members { | ||
| 587 | my($self,@rest) = @_; | ||
| 588 | return $self->_attribute('members', $CORBA::UnionMemberSeq::_tc, @rest); | ||
| 589 | } | ||
| 590 | |||
| 591 | # IDL:omg.org/CORBA/EnumDef:1.0 | ||
| 592 | package CORBA::EnumDef; | ||
| 593 | @CORBA::EnumDef::ISA=qw(CORBA::TypedefDef CORBA::Object); | ||
| 594 | # IDL:omg.org/CORBA/EnumDef/members:1.0 | ||
| 595 | sub members { | ||
| 596 | my($self,@rest) = @_; | ||
| 597 | return $self->_attribute('members', $CORBA::EnumMemberSeq::_tc, @rest); | ||
| 598 | } | ||
| 599 | |||
| 600 | # IDL:omg.org/CORBA/AliasDef:1.0 | ||
| 601 | package CORBA::AliasDef; | ||
| 602 | @CORBA::AliasDef::ISA=qw(CORBA::TypedefDef CORBA::Object); | ||
| 603 | # IDL:omg.org/CORBA/AliasDef/original_type_def:1.0 | ||
| 604 | sub original_type_def { | ||
| 605 | my($self,@rest) = @_; | ||
| 606 | return $self->_attribute('original_type_def', $CORBA::IDLType::_tc, @rest); | ||
| 607 | } | ||
| 608 | |||
| 609 | # IDL:omg.org/CORBA/PrimitiveDef:1.0 | ||
| 610 | package CORBA::PrimitiveDef; | ||
| 611 | @CORBA::PrimitiveDef::ISA=qw(CORBA::IDLType CORBA::Object); | ||
| 612 | # IDL:omg.org/CORBA/PrimitiveDef/kind:1.0 | ||
| 613 | sub kind { | ||
| 614 | my($self,@rest) = @_; | ||
| 615 | return $self->_attribute('kind', $CORBA::PrimitiveKind::_tc, @rest); | ||
| 616 | } | ||
| 617 | |||
| 618 | # IDL:omg.org/CORBA/StringDef:1.0 | ||
| 619 | package CORBA::StringDef; | ||
| 620 | @CORBA::StringDef::ISA=qw(CORBA::IDLType CORBA::Object); | ||
| 621 | # IDL:omg.org/CORBA/StringDef/bound:1.0 | ||
| 622 | sub bound { | ||
| 623 | my($self,@rest) = @_; | ||
| 624 | return $self->_attribute('bound', $CORBA::_tc_ulong, @rest); | ||
| 625 | } | ||
| 626 | |||
| 627 | # IDL:omg.org/CORBA/SequenceDef:1.0 | ||
| 628 | package CORBA::SequenceDef; | ||
| 629 | @CORBA::SequenceDef::ISA=qw(CORBA::IDLType CORBA::Object); | ||
| 630 | # IDL:omg.org/CORBA/SequenceDef/bound:1.0 | ||
| 631 | sub bound { | ||
| 632 | my($self,@rest) = @_; | ||
| 633 | return $self->_attribute('bound', $CORBA::_tc_ulong, @rest); | ||
| 634 | } | ||
| 635 | |||
| 636 | # IDL:omg.org/CORBA/SequenceDef/element_type:1.0 | ||
| 637 | sub element_type { | ||
| 638 | my($self,@rest) = @_; | ||
| 639 | return $self->_attribute('element_type', $CORBA::_tc_TypeCode, @rest); | ||
| 640 | } | ||
| 641 | |||
| 642 | # IDL:omg.org/CORBA/SequenceDef/element_type_def:1.0 | ||
| 643 | sub element_type_def { | ||
| 644 | my($self,@rest) = @_; | ||
| 645 | return $self->_attribute('element_type_def', $CORBA::IDLType::_tc, @rest); | ||
| 646 | } | ||
| 647 | |||
| 648 | # IDL:omg.org/CORBA/ArrayDef:1.0 | ||
| 649 | package CORBA::ArrayDef; | ||
| 650 | @CORBA::ArrayDef::ISA=qw(CORBA::IDLType CORBA::Object); | ||
| 651 | # IDL:omg.org/CORBA/ArrayDef/length:1.0 | ||
| 652 | sub length { | ||
| 653 | my($self,@rest) = @_; | ||
| 654 | return $self->_attribute('length', $CORBA::_tc_ulong, @rest); | ||
| 655 | } | ||
| 656 | |||
| 657 | # IDL:omg.org/CORBA/ArrayDef/element_type:1.0 | ||
| 658 | sub element_type { | ||
| 659 | my($self,@rest) = @_; | ||
| 660 | return $self->_attribute('element_type', $CORBA::_tc_TypeCode, @rest); | ||
| 661 | } | ||
| 662 | |||
| 663 | # IDL:omg.org/CORBA/ArrayDef/element_type_def:1.0 | ||
| 664 | sub element_type_def { | ||
| 665 | my($self,@rest) = @_; | ||
| 666 | return $self->_attribute('element_type_def', $CORBA::IDLType::_tc, @rest); | ||
| 667 | } | ||
| 668 | |||
| 669 | # IDL:omg.org/CORBA/ExceptionDef:1.0 | ||
| 670 | package CORBA::ExceptionDef; | ||
| 671 | @CORBA::ExceptionDef::ISA=qw(CORBA::Contained CORBA::Object); | ||
| 672 | # IDL:omg.org/CORBA/ExceptionDef/type:1.0 | ||
| 673 | sub type { | ||
| 674 | my($self,@rest) = @_; | ||
| 675 | return $self->_attribute('type', $CORBA::_tc_TypeCode, @rest); | ||
| 676 | } | ||
| 677 | |||
| 678 | # IDL:omg.org/CORBA/ExceptionDef/members:1.0 | ||
| 679 | sub members { | ||
| 680 | my($self,@rest) = @_; | ||
| 681 | return $self->_attribute('members', $CORBA::StructMemberSeq::_tc, @rest); | ||
| 682 | } | ||
| 683 | |||
| 684 | # IDL:omg.org/CORBA/AttributeDef:1.0 | ||
| 685 | package CORBA::AttributeDef; | ||
| 686 | @CORBA::AttributeDef::ISA=qw(CORBA::Contained CORBA::Object); | ||
| 687 | # IDL:omg.org/CORBA/AttributeDef/type:1.0 | ||
| 688 | sub type { | ||
| 689 | my($self,@rest) = @_; | ||
| 690 | return $self->_attribute('type', $CORBA::_tc_TypeCode, @rest); | ||
| 691 | } | ||
| 692 | |||
| 693 | # IDL:omg.org/CORBA/AttributeDef/type_def:1.0 | ||
| 694 | sub type_def { | ||
| 695 | my($self,@rest) = @_; | ||
| 696 | return $self->_attribute('type_def', $CORBA::IDLType::_tc, @rest); | ||
| 697 | } | ||
| 698 | |||
| 699 | # IDL:omg.org/CORBA/AttributeDef/mode:1.0 | ||
| 700 | sub mode { | ||
| 701 | my($self,@rest) = @_; | ||
| 702 | return $self->_attribute('mode', $CORBA::AttributeMode::_tc, @rest); | ||
| 703 | } | ||
| 704 | |||
| 705 | # IDL:omg.org/CORBA/OperationDef:1.0 | ||
| 706 | package CORBA::OperationDef; | ||
| 707 | @CORBA::OperationDef::ISA=qw(CORBA::Contained CORBA::Object); | ||
| 708 | # IDL:omg.org/CORBA/OperationDef/result:1.0 | ||
| 709 | sub result { | ||
| 710 | my($self,@rest) = @_; | ||
| 711 | return $self->_attribute('result', $CORBA::_tc_TypeCode, @rest); | ||
| 712 | } | ||
| 713 | |||
| 714 | # IDL:omg.org/CORBA/OperationDef/result_def:1.0 | ||
| 715 | sub result_def { | ||
| 716 | my($self,@rest) = @_; | ||
| 717 | return $self->_attribute('result_def', $CORBA::IDLType::_tc, @rest); | ||
| 718 | } | ||
| 719 | |||
| 720 | # IDL:omg.org/CORBA/OperationDef/params:1.0 | ||
| 721 | sub params { | ||
| 722 | my($self,@rest) = @_; | ||
| 723 | return $self->_attribute('params', $CORBA::ParDescriptionSeq::_tc, @rest); | ||
| 724 | } | ||
| 725 | |||
| 726 | # IDL:omg.org/CORBA/OperationDef/mode:1.0 | ||
| 727 | sub mode { | ||
| 728 | my($self,@rest) = @_; | ||
| 729 | return $self->_attribute('mode', $CORBA::OperationMode::_tc, @rest); | ||
| 730 | } | ||
| 731 | |||
| 732 | # IDL:omg.org/CORBA/OperationDef/contexts:1.0 | ||
| 733 | sub contexts { | ||
| 734 | my($self,@rest) = @_; | ||
| 735 | return $self->_attribute('contexts', $CORBA::ContextIdSeq::_tc, @rest); | ||
| 736 | } | ||
| 737 | |||
| 738 | # IDL:omg.org/CORBA/OperationDef/exceptions:1.0 | ||
| 739 | sub exceptions { | ||
| 740 | my($self,@rest) = @_; | ||
| 741 | return $self->_attribute('exceptions', $CORBA::ExceptionDefSeq::_tc, @rest); | ||
| 742 | } | ||
| 743 | |||
| 744 | # IDL:omg.org/CORBA/InterfaceDef:1.0 | ||
| 745 | package CORBA::InterfaceDef; | ||
| 746 | @CORBA::InterfaceDef::ISA=qw(CORBA::Container CORBA::Contained CORBA::IDLType CORBA::Object); | ||
| 747 | # IDL:omg.org/CORBA/InterfaceDef/base_interfaces:1.0 | ||
| 748 | sub base_interfaces { | ||
| 749 | my($self,@rest) = @_; | ||
| 750 | return $self->_attribute('base_interfaces', $CORBA::InterfaceDefSeq::_tc, @rest); | ||
| 751 | } | ||
| 752 | |||
| 753 | # IDL:omg.org/CORBA/InterfaceDef/is_a:1.0 | ||
| 754 | sub is_a { | ||
| 755 | my($self,$interface_id) = @_; | ||
| 756 | my $result_ = { _type => $CORBA::_tc_boolean }; | ||
| 757 | my $request_ = $self->create_request( | ||
| 758 | 'operation' => 'is_a', | ||
| 759 | 'arg_list' => [ | ||
| 760 | { 'argument' => | ||
| 761 | { _type => $CORBA::RepositoryId::_tc, _value => $interface_id }, | ||
| 762 | 'arg_modes' => 0, | ||
| 763 | }, | ||
| 764 | ], | ||
| 765 | 'result' => $result_, | ||
| 766 | ); | ||
| 767 | $request_->invoke(0); | ||
| 768 | return $result_->{_value}; | ||
| 769 | } | ||
| 770 | |||
| 771 | # IDL:omg.org/CORBA/InterfaceDef/describe_interface:1.0 | ||
| 772 | sub describe_interface { | ||
| 773 | my($self) = @_; | ||
| 774 | my $result_ = { _type => $CORBA::InterfaceDef::FullInterfaceDescription::_tc }; | ||
| 775 | my $request_ = $self->create_request( | ||
| 776 | 'operation' => 'describe_interface', | ||
| 777 | 'arg_list' => [ | ||
| 778 | ], | ||
| 779 | 'result' => $result_, | ||
| 780 | ); | ||
| 781 | $request_->invoke(0); | ||
| 782 | return $result_->{_value}; | ||
| 783 | } | ||
| 784 | |||
| 785 | # IDL:omg.org/CORBA/InterfaceDef/create_attribute:1.0 | ||
| 786 | sub create_attribute { | ||
| 787 | my($self,$id,$name,$version,$type,$mode) = @_; | ||
| 788 | my $result_ = { _type => $CORBA::AttributeDef::_tc }; | ||
| 789 | my $request_ = $self->create_request( | ||
| 790 | 'operation' => 'create_attribute', | ||
| 791 | 'arg_list' => [ | ||
| 792 | { 'argument' => | ||
| 793 | { _type => $CORBA::RepositoryId::_tc, _value => $id }, | ||
| 794 | 'arg_modes' => 0, | ||
| 795 | }, | ||
| 796 | { 'argument' => | ||
| 797 | { _type => $CORBA::Identifier::_tc, _value => $name }, | ||
| 798 | 'arg_modes' => 0, | ||
| 799 | }, | ||
| 800 | { 'argument' => | ||
| 801 | { _type => $CORBA::VersionSpec::_tc, _value => $version }, | ||
| 802 | 'arg_modes' => 0, | ||
| 803 | }, | ||
| 804 | { 'argument' => | ||
| 805 | { _type => $CORBA::IDLType::_tc, _value => $type }, | ||
| 806 | 'arg_modes' => 0, | ||
| 807 | }, | ||
| 808 | { 'argument' => | ||
| 809 | { _type => $CORBA::AttributeMode::_tc, _value => $mode }, | ||
| 810 | 'arg_modes' => 0, | ||
| 811 | }, | ||
| 812 | ], | ||
| 813 | 'result' => $result_, | ||
| 814 | ); | ||
| 815 | $request_->invoke(0); | ||
| 816 | return $result_->{_value}; | ||
| 817 | } | ||
| 818 | |||
| 819 | # IDL:omg.org/CORBA/InterfaceDef/create_operation:1.0 | ||
| 820 | sub create_operation { | ||
| 821 | my($self,$id,$name,$version,$result,$mode,$params,$exceptions,$contexts) = @_; | ||
| 822 | my $result_ = { _type => $CORBA::OperationDef::_tc }; | ||
| 823 | my $request_ = $self->create_request( | ||
| 824 | 'operation' => 'create_operation', | ||
| 825 | 'arg_list' => [ | ||
| 826 | { 'argument' => | ||
| 827 | { _type => $CORBA::RepositoryId::_tc, _value => $id }, | ||
| 828 | 'arg_modes' => 0, | ||
| 829 | }, | ||
| 830 | { 'argument' => | ||
| 831 | { _type => $CORBA::Identifier::_tc, _value => $name }, | ||
| 832 | 'arg_modes' => 0, | ||
| 833 | }, | ||
| 834 | { 'argument' => | ||
| 835 | { _type => $CORBA::VersionSpec::_tc, _value => $version }, | ||
| 836 | 'arg_modes' => 0, | ||
| 837 | }, | ||
| 838 | { 'argument' => | ||
| 839 | { _type => $CORBA::IDLType::_tc, _value => $result }, | ||
| 840 | 'arg_modes' => 0, | ||
| 841 | }, | ||
| 842 | { 'argument' => | ||
| 843 | { _type => $CORBA::OperationMode::_tc, _value => $mode }, | ||
| 844 | 'arg_modes' => 0, | ||
| 845 | }, | ||
| 846 | { 'argument' => | ||
| 847 | { _type => $CORBA::ParDescriptionSeq::_tc, _value => $params }, | ||
| 848 | 'arg_modes' => 0, | ||
| 849 | }, | ||
| 850 | { 'argument' => | ||
| 851 | { _type => $CORBA::ExceptionDefSeq::_tc, _value => $exceptions }, | ||
| 852 | 'arg_modes' => 0, | ||
| 853 | }, | ||
| 854 | { 'argument' => | ||
| 855 | { _type => $CORBA::ContextIdSeq::_tc, _value => $contexts }, | ||
| 856 | 'arg_modes' => 0, | ||
| 857 | }, | ||
| 858 | ], | ||
| 859 | 'result' => $result_, | ||
| 860 | ); | ||
| 861 | $request_->invoke(0); | ||
| 862 | return $result_->{_value}; | ||
| 863 | } | ||
| 864 | |||
| 865 | |||
| 866 | 1; |