| 1 | # ex: set ro: | ||
| 2 | # This file was generated (by D:\Perl\site\bin/idl2pm). DO NOT modify it. | ||
| 3 | # From file : IOP.idl, 5190 octets, Fri Oct 05 19:47:18 2007 | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | package main; | ||
| 9 | |||
| 10 | use CORBA::Perl::CORBA; | ||
| 11 | use Carp; | ||
| 12 | |||
| 13 | # | ||
| 14 | # begin of module CORBA::Perl::IOP | ||
| 15 | # | ||
| 16 | |||
| 17 | package CORBA::Perl::IOP; | ||
| 18 | |||
| 19 | use Carp; | ||
| 20 | use CORBA::Perl::CORBA; | ||
| 21 | |||
| 22 | # CORBA::Perl::IOP::ProfileId (typedef) | ||
| 23 | sub ProfileId__marshal { | ||
| 24 | my ($r_buffer, $value) = @_; | ||
| 25 | croak "undefined value for 'ProfileId'.\n" | ||
| 26 | unless (defined $value); | ||
| 27 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value); | ||
| 28 | } | ||
| 29 | |||
| 30 | sub ProfileId__demarshal { | ||
| 31 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 32 | return CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 33 | } | ||
| 34 | |||
| 35 | sub ProfileId__stringify { | ||
| 36 | my ($value, $tab) = @_; | ||
| 37 | croak "undefined value for 'ProfileId'.\n" | ||
| 38 | unless (defined $value); | ||
| 39 | return CORBA::Perl::CORBA::unsigned_long__stringify($value, $tab); | ||
| 40 | } | ||
| 41 | |||
| 42 | sub ProfileId__id () { | ||
| 43 | return "IDL:omg.org/IOP/ProfileId:1.0"; | ||
| 44 | } | ||
| 45 | |||
| 46 | # CORBA::Perl::IOP::TAG_INTERNET_IOP | ||
| 47 | sub TAG_INTERNET_IOP () { | ||
| 48 | return 0; | ||
| 49 | } | ||
| 50 | |||
| 51 | # CORBA::Perl::IOP::TAG_MULTIPLE_COMPONENTS | ||
| 52 | sub TAG_MULTIPLE_COMPONENTS () { | ||
| 53 | return 1; | ||
| 54 | } | ||
| 55 | |||
| 56 | # CORBA::Perl::IOP::TAG_SCCP_IOP | ||
| 57 | sub TAG_SCCP_IOP () { | ||
| 58 | return 2; | ||
| 59 | } | ||
| 60 | |||
| 61 | # CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet (sequence) | ||
| 62 | sub sequence_CORBA_Perl_CORBA_octet__marshal { | ||
| 63 | my ($r_buffer, $value, $max) = @_; | ||
| 64 | croak "undefined value for 'sequence_CORBA_Perl_CORBA_octet'.\n" | ||
| 65 | unless (defined $value); | ||
| 66 | croak "value '$value' is not a string.\n" | ||
| 67 | if (ref $value); | ||
| 68 | my $len = length($value); | ||
| 69 | croak "too long sequence for 'sequence_CORBA_Perl_CORBA_octet' (max:$max).\n" | ||
| 70 | if (defined $max and $len > $max); | ||
| 71 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $len); | ||
| 72 | $$r_buffer .= $value; | ||
| 73 | } | ||
| 74 | |||
| 75 | sub sequence_CORBA_Perl_CORBA_octet__demarshal { | ||
| 76 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 77 | my $len = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 78 | my @seq = (); | ||
| 79 | my $str = substr $$r_buffer, $$r_offset, $len; | ||
| 80 | $$r_offset += $len; | ||
| 81 | return $str; | ||
| 82 | } | ||
| 83 | |||
| 84 | sub sequence_CORBA_Perl_CORBA_octet__stringify { | ||
| 85 | my ($value, $tab, $max) = @_; | ||
| 86 | $tab = q{} unless (defined $tab); | ||
| 87 | croak "undefined value for 'sequence_CORBA_Perl_CORBA_octet'.\n" | ||
| 88 | unless (defined $value); | ||
| 89 | $value = [map ord, split //, $value]; | ||
| 90 | my $len = scalar(@{$value}); | ||
| 91 | croak "too long sequence for 'sequence_CORBA_Perl_CORBA_octet' (max:$max).\n" | ||
| 92 | if (defined $max and $len > $max); | ||
| 93 | my $str = '{'; | ||
| 94 | my $first = 1; | ||
| 95 | foreach (@{$value}) { | ||
| 96 | if ($first) { | ||
| 97 | $first = 0; | ||
| 98 | } | ||
| 99 | else { | ||
| 100 | $str .= ','; | ||
| 101 | } | ||
| 102 | $str .= CORBA::Perl::CORBA::octet__stringify($_, $tab . q{ } x 2); | ||
| 103 | } | ||
| 104 | $str .= '}'; | ||
| 105 | return $str; | ||
| 106 | } | ||
| 107 | |||
| 108 | # CORBA::Perl::IOP::TaggedProfile (struct) | ||
| 109 | sub TaggedProfile__marshal { | ||
| 110 | my ($r_buffer, $value) = @_; | ||
| 111 | croak "undefined value for 'TaggedProfile'.\n" | ||
| 112 | unless (defined $value); | ||
| 113 | croak "invalid struct for 'TaggedProfile' (not a HASH reference).\n" | ||
| 114 | unless (ref $value eq 'HASH'); | ||
| 115 | croak "no member 'tag' in structure 'TaggedProfile'.\n" | ||
| 116 | unless (exists $value->{tag}); | ||
| 117 | croak "no member 'profile_data' in structure 'TaggedProfile'.\n" | ||
| 118 | unless (exists $value->{profile_data}); | ||
| 119 | CORBA::Perl::IOP::ProfileId__marshal($r_buffer, $value->{tag}); | ||
| 120 | CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet__marshal($r_buffer, $value->{profile_data}); | ||
| 121 | } | ||
| 122 | |||
| 123 | sub TaggedProfile__demarshal { | ||
| 124 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 125 | my $value = {}; | ||
| 126 | $value->{tag} = CORBA::Perl::IOP::ProfileId__demarshal($r_buffer, $r_offset, $endian); | ||
| 127 | $value->{profile_data} = CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 128 | return $value; | ||
| 129 | } | ||
| 130 | |||
| 131 | sub TaggedProfile__stringify { | ||
| 132 | my ($value, $tab) = @_; | ||
| 133 | $tab = q{} unless defined ($tab); | ||
| 134 | croak "undefined value for 'TaggedProfile'.\n" | ||
| 135 | unless (defined $value); | ||
| 136 | croak "invalid struct for 'TaggedProfile' (not a HASH reference).\n" | ||
| 137 | unless (ref $value eq 'HASH'); | ||
| 138 | croak "no member 'tag' in structure 'TaggedProfile'.\n" | ||
| 139 | unless (exists $value->{tag}); | ||
| 140 | croak "no member 'profile_data' in structure 'TaggedProfile'.\n" | ||
| 141 | unless (exists $value->{profile_data}); | ||
| 142 | my $str = "struct TaggedProfile {"; | ||
| 143 | $str .= "\n$tab ProfileId tag = "; | ||
| 144 | $str .= CORBA::Perl::IOP::ProfileId__stringify($value->{tag}, $tab . " "); | ||
| 145 | $str .= ','; | ||
| 146 | $str .= "\n$tab sequence_CORBA_Perl_CORBA_octet profile_data = "; | ||
| 147 | $str .= CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet__stringify($value->{profile_data}, $tab . " "); | ||
| 148 | $str .= "\n$tab}"; | ||
| 149 | return $str; | ||
| 150 | } | ||
| 151 | |||
| 152 | sub TaggedProfile__id () { | ||
| 153 | return "IDL:omg.org/IOP/TaggedProfile:1.0"; | ||
| 154 | } | ||
| 155 | |||
| 156 | # CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_TaggedProfile (sequence) | ||
| 157 | sub sequence_CORBA_Perl_IOP_TaggedProfile__marshal { | ||
| 158 | my ($r_buffer, $value, $max) = @_; | ||
| 159 | croak "undefined value for 'sequence_CORBA_Perl_IOP_TaggedProfile'.\n" | ||
| 160 | unless (defined $value); | ||
| 161 | my $len = scalar(@{$value}); | ||
| 162 | croak "too long sequence for 'sequence_CORBA_Perl_IOP_TaggedProfile' (max:$max).\n" | ||
| 163 | if (defined $max and $len > $max); | ||
| 164 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $len); | ||
| 165 | foreach (@{$value}) { | ||
| 166 | CORBA::Perl::IOP::TaggedProfile__marshal($r_buffer, $_); | ||
| 167 | } | ||
| 168 | } | ||
| 169 | |||
| 170 | sub sequence_CORBA_Perl_IOP_TaggedProfile__demarshal { | ||
| 171 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 172 | my $len = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 173 | my @seq = (); | ||
| 174 | while ($len--) { | ||
| 175 | push @seq,CORBA::Perl::IOP::TaggedProfile__demarshal($r_buffer, $r_offset, $endian); | ||
| 176 | } | ||
| 177 | return \@seq; | ||
| 178 | } | ||
| 179 | |||
| 180 | sub sequence_CORBA_Perl_IOP_TaggedProfile__stringify { | ||
| 181 | my ($value, $tab, $max) = @_; | ||
| 182 | $tab = q{} unless (defined $tab); | ||
| 183 | croak "undefined value for 'sequence_CORBA_Perl_IOP_TaggedProfile'.\n" | ||
| 184 | unless (defined $value); | ||
| 185 | my $len = scalar(@{$value}); | ||
| 186 | croak "too long sequence for 'sequence_CORBA_Perl_IOP_TaggedProfile' (max:$max).\n" | ||
| 187 | if (defined $max and $len > $max); | ||
| 188 | my $str = '{'; | ||
| 189 | my $first = 1; | ||
| 190 | foreach (@{$value}) { | ||
| 191 | if ($first) { | ||
| 192 | $first = 0; | ||
| 193 | } | ||
| 194 | else { | ||
| 195 | $str .= ','; | ||
| 196 | } | ||
| 197 | $str .= "\n$tab "; | ||
| 198 | $str .= CORBA::Perl::IOP::TaggedProfile__stringify($_, $tab . q{ } x 2); | ||
| 199 | } | ||
| 200 | $str .= "\n$tab"; | ||
| 201 | $str .= '}'; | ||
| 202 | return $str; | ||
| 203 | } | ||
| 204 | |||
| 205 | # CORBA::Perl::IOP::IOR (struct) | ||
| 206 | sub IOR__marshal { | ||
| 207 | my ($r_buffer, $value) = @_; | ||
| 208 | croak "undefined value for 'IOR'.\n" | ||
| 209 | unless (defined $value); | ||
| 210 | croak "invalid struct for 'IOR' (not a HASH reference).\n" | ||
| 211 | unless (ref $value eq 'HASH'); | ||
| 212 | croak "no member 'type_id' in structure 'IOR'.\n" | ||
| 213 | unless (exists $value->{type_id}); | ||
| 214 | croak "no member 'profiles' in structure 'IOR'.\n" | ||
| 215 | unless (exists $value->{profiles}); | ||
| 216 | CORBA::Perl::CORBA::string__marshal($r_buffer, $value->{type_id}); | ||
| 217 | CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_TaggedProfile__marshal($r_buffer, $value->{profiles}); | ||
| 218 | } | ||
| 219 | |||
| 220 | sub IOR__demarshal { | ||
| 221 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 222 | my $value = {}; | ||
| 223 | $value->{type_id} = CORBA::Perl::CORBA::string__demarshal($r_buffer, $r_offset, $endian); | ||
| 224 | $value->{profiles} = CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_TaggedProfile__demarshal($r_buffer, $r_offset, $endian); | ||
| 225 | return $value; | ||
| 226 | } | ||
| 227 | |||
| 228 | sub IOR__stringify { | ||
| 229 | my ($value, $tab) = @_; | ||
| 230 | $tab = q{} unless defined ($tab); | ||
| 231 | croak "undefined value for 'IOR'.\n" | ||
| 232 | unless (defined $value); | ||
| 233 | croak "invalid struct for 'IOR' (not a HASH reference).\n" | ||
| 234 | unless (ref $value eq 'HASH'); | ||
| 235 | croak "no member 'type_id' in structure 'IOR'.\n" | ||
| 236 | unless (exists $value->{type_id}); | ||
| 237 | croak "no member 'profiles' in structure 'IOR'.\n" | ||
| 238 | unless (exists $value->{profiles}); | ||
| 239 | my $str = "struct IOR {"; | ||
| 240 | $str .= "\n$tab string type_id = "; | ||
| 241 | $str .= CORBA::Perl::CORBA::string__stringify($value->{type_id}, $tab . " "); | ||
| 242 | $str .= ','; | ||
| 243 | $str .= "\n$tab sequence_CORBA_Perl_IOP_TaggedProfile profiles = "; | ||
| 244 | $str .= CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_TaggedProfile__stringify($value->{profiles}, $tab . " "); | ||
| 245 | $str .= "\n$tab}"; | ||
| 246 | return $str; | ||
| 247 | } | ||
| 248 | |||
| 249 | sub IOR__id () { | ||
| 250 | return "IDL:omg.org/IOP/IOR:1.0"; | ||
| 251 | } | ||
| 252 | |||
| 253 | # CORBA::Perl::IOP::ComponentId (typedef) | ||
| 254 | sub ComponentId__marshal { | ||
| 255 | my ($r_buffer, $value) = @_; | ||
| 256 | croak "undefined value for 'ComponentId'.\n" | ||
| 257 | unless (defined $value); | ||
| 258 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value); | ||
| 259 | } | ||
| 260 | |||
| 261 | sub ComponentId__demarshal { | ||
| 262 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 263 | return CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 264 | } | ||
| 265 | |||
| 266 | sub ComponentId__stringify { | ||
| 267 | my ($value, $tab) = @_; | ||
| 268 | croak "undefined value for 'ComponentId'.\n" | ||
| 269 | unless (defined $value); | ||
| 270 | return CORBA::Perl::CORBA::unsigned_long__stringify($value, $tab); | ||
| 271 | } | ||
| 272 | |||
| 273 | sub ComponentId__id () { | ||
| 274 | return "IDL:omg.org/IOP/ComponentId:1.0"; | ||
| 275 | } | ||
| 276 | |||
| 277 | # CORBA::Perl::IOP::TaggedComponent (struct) | ||
| 278 | sub TaggedComponent__marshal { | ||
| 279 | my ($r_buffer, $value) = @_; | ||
| 280 | croak "undefined value for 'TaggedComponent'.\n" | ||
| 281 | unless (defined $value); | ||
| 282 | croak "invalid struct for 'TaggedComponent' (not a HASH reference).\n" | ||
| 283 | unless (ref $value eq 'HASH'); | ||
| 284 | croak "no member 'tag' in structure 'TaggedComponent'.\n" | ||
| 285 | unless (exists $value->{tag}); | ||
| 286 | croak "no member 'component_data' in structure 'TaggedComponent'.\n" | ||
| 287 | unless (exists $value->{component_data}); | ||
| 288 | CORBA::Perl::IOP::ComponentId__marshal($r_buffer, $value->{tag}); | ||
| 289 | CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet__marshal($r_buffer, $value->{component_data}); | ||
| 290 | } | ||
| 291 | |||
| 292 | sub TaggedComponent__demarshal { | ||
| 293 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 294 | my $value = {}; | ||
| 295 | $value->{tag} = CORBA::Perl::IOP::ComponentId__demarshal($r_buffer, $r_offset, $endian); | ||
| 296 | $value->{component_data} = CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 297 | return $value; | ||
| 298 | } | ||
| 299 | |||
| 300 | sub TaggedComponent__stringify { | ||
| 301 | my ($value, $tab) = @_; | ||
| 302 | $tab = q{} unless defined ($tab); | ||
| 303 | croak "undefined value for 'TaggedComponent'.\n" | ||
| 304 | unless (defined $value); | ||
| 305 | croak "invalid struct for 'TaggedComponent' (not a HASH reference).\n" | ||
| 306 | unless (ref $value eq 'HASH'); | ||
| 307 | croak "no member 'tag' in structure 'TaggedComponent'.\n" | ||
| 308 | unless (exists $value->{tag}); | ||
| 309 | croak "no member 'component_data' in structure 'TaggedComponent'.\n" | ||
| 310 | unless (exists $value->{component_data}); | ||
| 311 | my $str = "struct TaggedComponent {"; | ||
| 312 | $str .= "\n$tab ComponentId tag = "; | ||
| 313 | $str .= CORBA::Perl::IOP::ComponentId__stringify($value->{tag}, $tab . " "); | ||
| 314 | $str .= ','; | ||
| 315 | $str .= "\n$tab sequence_CORBA_Perl_CORBA_octet component_data = "; | ||
| 316 | $str .= CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet__stringify($value->{component_data}, $tab . " "); | ||
| 317 | $str .= "\n$tab}"; | ||
| 318 | return $str; | ||
| 319 | } | ||
| 320 | |||
| 321 | sub TaggedComponent__id () { | ||
| 322 | return "IDL:omg.org/IOP/TaggedComponent:1.0"; | ||
| 323 | } | ||
| 324 | |||
| 325 | # CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_TaggedComponent (sequence) | ||
| 326 | sub sequence_CORBA_Perl_IOP_TaggedComponent__marshal { | ||
| 327 | my ($r_buffer, $value, $max) = @_; | ||
| 328 | croak "undefined value for 'sequence_CORBA_Perl_IOP_TaggedComponent'.\n" | ||
| 329 | unless (defined $value); | ||
| 330 | my $len = scalar(@{$value}); | ||
| 331 | croak "too long sequence for 'sequence_CORBA_Perl_IOP_TaggedComponent' (max:$max).\n" | ||
| 332 | if (defined $max and $len > $max); | ||
| 333 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $len); | ||
| 334 | foreach (@{$value}) { | ||
| 335 | CORBA::Perl::IOP::TaggedComponent__marshal($r_buffer, $_); | ||
| 336 | } | ||
| 337 | } | ||
| 338 | |||
| 339 | sub sequence_CORBA_Perl_IOP_TaggedComponent__demarshal { | ||
| 340 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 341 | my $len = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 342 | my @seq = (); | ||
| 343 | while ($len--) { | ||
| 344 | push @seq,CORBA::Perl::IOP::TaggedComponent__demarshal($r_buffer, $r_offset, $endian); | ||
| 345 | } | ||
| 346 | return \@seq; | ||
| 347 | } | ||
| 348 | |||
| 349 | sub sequence_CORBA_Perl_IOP_TaggedComponent__stringify { | ||
| 350 | my ($value, $tab, $max) = @_; | ||
| 351 | $tab = q{} unless (defined $tab); | ||
| 352 | croak "undefined value for 'sequence_CORBA_Perl_IOP_TaggedComponent'.\n" | ||
| 353 | unless (defined $value); | ||
| 354 | my $len = scalar(@{$value}); | ||
| 355 | croak "too long sequence for 'sequence_CORBA_Perl_IOP_TaggedComponent' (max:$max).\n" | ||
| 356 | if (defined $max and $len > $max); | ||
| 357 | my $str = '{'; | ||
| 358 | my $first = 1; | ||
| 359 | foreach (@{$value}) { | ||
| 360 | if ($first) { | ||
| 361 | $first = 0; | ||
| 362 | } | ||
| 363 | else { | ||
| 364 | $str .= ','; | ||
| 365 | } | ||
| 366 | $str .= "\n$tab "; | ||
| 367 | $str .= CORBA::Perl::IOP::TaggedComponent__stringify($_, $tab . q{ } x 2); | ||
| 368 | } | ||
| 369 | $str .= "\n$tab"; | ||
| 370 | $str .= '}'; | ||
| 371 | return $str; | ||
| 372 | } | ||
| 373 | |||
| 374 | # CORBA::Perl::IOP::MultipleComponentProfile (typedef) | ||
| 375 | sub MultipleComponentProfile__marshal { | ||
| 376 | my ($r_buffer, $value) = @_; | ||
| 377 | croak "undefined value for 'MultipleComponentProfile'.\n" | ||
| 378 | unless (defined $value); | ||
| 379 | CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_TaggedComponent__marshal($r_buffer, $value); | ||
| 380 | } | ||
| 381 | |||
| 382 | sub MultipleComponentProfile__demarshal { | ||
| 383 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 384 | return CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_TaggedComponent__demarshal($r_buffer, $r_offset, $endian); | ||
| 385 | } | ||
| 386 | |||
| 387 | sub MultipleComponentProfile__stringify { | ||
| 388 | my ($value, $tab) = @_; | ||
| 389 | croak "undefined value for 'MultipleComponentProfile'.\n" | ||
| 390 | unless (defined $value); | ||
| 391 | return CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_TaggedComponent__stringify($value, $tab); | ||
| 392 | } | ||
| 393 | |||
| 394 | sub MultipleComponentProfile__id () { | ||
| 395 | return "IDL:omg.org/IOP/MultipleComponentProfile:1.0"; | ||
| 396 | } | ||
| 397 | |||
| 398 | # CORBA::Perl::IOP::TAG_ORB_TYPE | ||
| 399 | sub TAG_ORB_TYPE () { | ||
| 400 | return 0; | ||
| 401 | } | ||
| 402 | |||
| 403 | # CORBA::Perl::IOP::TAG_CODE_SETS | ||
| 404 | sub TAG_CODE_SETS () { | ||
| 405 | return 1; | ||
| 406 | } | ||
| 407 | |||
| 408 | # CORBA::Perl::IOP::TAG_POLICIES | ||
| 409 | sub TAG_POLICIES () { | ||
| 410 | return 2; | ||
| 411 | } | ||
| 412 | |||
| 413 | # CORBA::Perl::IOP::TAG_ALTERNATE_IIOP_ADDRESS | ||
| 414 | sub TAG_ALTERNATE_IIOP_ADDRESS () { | ||
| 415 | return 3; | ||
| 416 | } | ||
| 417 | |||
| 418 | # CORBA::Perl::IOP::TAG_ASSOCIATION_OPTIONS | ||
| 419 | sub TAG_ASSOCIATION_OPTIONS () { | ||
| 420 | return 13; | ||
| 421 | } | ||
| 422 | |||
| 423 | # CORBA::Perl::IOP::TAG_SEC_NAME | ||
| 424 | sub TAG_SEC_NAME () { | ||
| 425 | return 14; | ||
| 426 | } | ||
| 427 | |||
| 428 | # CORBA::Perl::IOP::TAG_SPKM_1_SEC_MECH | ||
| 429 | sub TAG_SPKM_1_SEC_MECH () { | ||
| 430 | return 15; | ||
| 431 | } | ||
| 432 | |||
| 433 | # CORBA::Perl::IOP::TAG_SPKM_2_SEC_MECH | ||
| 434 | sub TAG_SPKM_2_SEC_MECH () { | ||
| 435 | return 16; | ||
| 436 | } | ||
| 437 | |||
| 438 | # CORBA::Perl::IOP::TAG_KerberosV5_SEC_MECH | ||
| 439 | sub TAG_KerberosV5_SEC_MECH () { | ||
| 440 | return 17; | ||
| 441 | } | ||
| 442 | |||
| 443 | # CORBA::Perl::IOP::TAG_CSI_ECMA_Secret_SEC_MECH | ||
| 444 | sub TAG_CSI_ECMA_Secret_SEC_MECH () { | ||
| 445 | return 18; | ||
| 446 | } | ||
| 447 | |||
| 448 | # CORBA::Perl::IOP::TAG_CSI_ECMA_Hybrid_SEC_MECH | ||
| 449 | sub TAG_CSI_ECMA_Hybrid_SEC_MECH () { | ||
| 450 | return 19; | ||
| 451 | } | ||
| 452 | |||
| 453 | # CORBA::Perl::IOP::TAG_SSL_SEC_TRANS | ||
| 454 | sub TAG_SSL_SEC_TRANS () { | ||
| 455 | return 20; | ||
| 456 | } | ||
| 457 | |||
| 458 | # CORBA::Perl::IOP::TAG_CSI_ECMA_Public_SEC_MECH | ||
| 459 | sub TAG_CSI_ECMA_Public_SEC_MECH () { | ||
| 460 | return 21; | ||
| 461 | } | ||
| 462 | |||
| 463 | # CORBA::Perl::IOP::TAG_GENERIC_SEC_MECH | ||
| 464 | sub TAG_GENERIC_SEC_MECH () { | ||
| 465 | return 22; | ||
| 466 | } | ||
| 467 | |||
| 468 | # CORBA::Perl::IOP::TAG_FIREWALL_TRANS | ||
| 469 | sub TAG_FIREWALL_TRANS () { | ||
| 470 | return 23; | ||
| 471 | } | ||
| 472 | |||
| 473 | # CORBA::Perl::IOP::TAG_SCCP_CONTACT_INFO | ||
| 474 | sub TAG_SCCP_CONTACT_INFO () { | ||
| 475 | return 24; | ||
| 476 | } | ||
| 477 | |||
| 478 | # CORBA::Perl::IOP::TAG_JAVA_CODEBASE | ||
| 479 | sub TAG_JAVA_CODEBASE () { | ||
| 480 | return 25; | ||
| 481 | } | ||
| 482 | |||
| 483 | # CORBA::Perl::IOP::TAG_TRANSACTION_POLICY | ||
| 484 | sub TAG_TRANSACTION_POLICY () { | ||
| 485 | return 26; | ||
| 486 | } | ||
| 487 | |||
| 488 | # CORBA::Perl::IOP::TAG_MESSAGE_ROUTER | ||
| 489 | sub TAG_MESSAGE_ROUTER () { | ||
| 490 | return 30; | ||
| 491 | } | ||
| 492 | |||
| 493 | # CORBA::Perl::IOP::TAG_OTS_POLICY | ||
| 494 | sub TAG_OTS_POLICY () { | ||
| 495 | return 31; | ||
| 496 | } | ||
| 497 | |||
| 498 | # CORBA::Perl::IOP::TAG_INV_POLICY | ||
| 499 | sub TAG_INV_POLICY () { | ||
| 500 | return 32; | ||
| 501 | } | ||
| 502 | |||
| 503 | # CORBA::Perl::IOP::TAG_CSI_SEC_MECH_LIST | ||
| 504 | sub TAG_CSI_SEC_MECH_LIST () { | ||
| 505 | return 33; | ||
| 506 | } | ||
| 507 | |||
| 508 | # CORBA::Perl::IOP::TAG_NULL_TAG | ||
| 509 | sub TAG_NULL_TAG () { | ||
| 510 | return 34; | ||
| 511 | } | ||
| 512 | |||
| 513 | # CORBA::Perl::IOP::TAG_SECIOP_SEC_TRANS | ||
| 514 | sub TAG_SECIOP_SEC_TRANS () { | ||
| 515 | return 35; | ||
| 516 | } | ||
| 517 | |||
| 518 | # CORBA::Perl::IOP::TAG_TLS_SEC_TRANS | ||
| 519 | sub TAG_TLS_SEC_TRANS () { | ||
| 520 | return 36; | ||
| 521 | } | ||
| 522 | |||
| 523 | # CORBA::Perl::IOP::TAG_ACTIVITY_POLICY | ||
| 524 | sub TAG_ACTIVITY_POLICY () { | ||
| 525 | return 37; | ||
| 526 | } | ||
| 527 | |||
| 528 | # CORBA::Perl::IOP::TAG_COMPLETE_OBJECT_KEY | ||
| 529 | sub TAG_COMPLETE_OBJECT_KEY () { | ||
| 530 | return 5; | ||
| 531 | } | ||
| 532 | |||
| 533 | # CORBA::Perl::IOP::TAG_ENDPOINT_ID_POSITION | ||
| 534 | sub TAG_ENDPOINT_ID_POSITION () { | ||
| 535 | return 6; | ||
| 536 | } | ||
| 537 | |||
| 538 | # CORBA::Perl::IOP::TAG_LOCATION_POLICY | ||
| 539 | sub TAG_LOCATION_POLICY () { | ||
| 540 | return 12; | ||
| 541 | } | ||
| 542 | |||
| 543 | # CORBA::Perl::IOP::TAG_DCE_STRING_BINDING | ||
| 544 | sub TAG_DCE_STRING_BINDING () { | ||
| 545 | return 100; | ||
| 546 | } | ||
| 547 | |||
| 548 | # CORBA::Perl::IOP::TAG_DCE_BINDING_NAME | ||
| 549 | sub TAG_DCE_BINDING_NAME () { | ||
| 550 | return 101; | ||
| 551 | } | ||
| 552 | |||
| 553 | # CORBA::Perl::IOP::TAG_DCE_NO_PIPES | ||
| 554 | sub TAG_DCE_NO_PIPES () { | ||
| 555 | return 102; | ||
| 556 | } | ||
| 557 | |||
| 558 | # CORBA::Perl::IOP::TAG_DCE_SEC_MECH | ||
| 559 | sub TAG_DCE_SEC_MECH () { | ||
| 560 | return 103; | ||
| 561 | } | ||
| 562 | |||
| 563 | # CORBA::Perl::IOP::TAG_INET_SEC_TRANS | ||
| 564 | sub TAG_INET_SEC_TRANS () { | ||
| 565 | return 123; | ||
| 566 | } | ||
| 567 | |||
| 568 | # CORBA::Perl::IOP::ServiceId (typedef) | ||
| 569 | sub ServiceId__marshal { | ||
| 570 | my ($r_buffer, $value) = @_; | ||
| 571 | croak "undefined value for 'ServiceId'.\n" | ||
| 572 | unless (defined $value); | ||
| 573 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value); | ||
| 574 | } | ||
| 575 | |||
| 576 | sub ServiceId__demarshal { | ||
| 577 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 578 | return CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 579 | } | ||
| 580 | |||
| 581 | sub ServiceId__stringify { | ||
| 582 | my ($value, $tab) = @_; | ||
| 583 | croak "undefined value for 'ServiceId'.\n" | ||
| 584 | unless (defined $value); | ||
| 585 | return CORBA::Perl::CORBA::unsigned_long__stringify($value, $tab); | ||
| 586 | } | ||
| 587 | |||
| 588 | sub ServiceId__id () { | ||
| 589 | return "IDL:omg.org/IOP/ServiceId:1.0"; | ||
| 590 | } | ||
| 591 | |||
| 592 | # CORBA::Perl::IOP::ServiceContext (struct) | ||
| 593 | sub ServiceContext__marshal { | ||
| 594 | my ($r_buffer, $value) = @_; | ||
| 595 | croak "undefined value for 'ServiceContext'.\n" | ||
| 596 | unless (defined $value); | ||
| 597 | croak "invalid struct for 'ServiceContext' (not a HASH reference).\n" | ||
| 598 | unless (ref $value eq 'HASH'); | ||
| 599 | croak "no member 'context_id' in structure 'ServiceContext'.\n" | ||
| 600 | unless (exists $value->{context_id}); | ||
| 601 | croak "no member 'context_data' in structure 'ServiceContext'.\n" | ||
| 602 | unless (exists $value->{context_data}); | ||
| 603 | CORBA::Perl::IOP::ServiceId__marshal($r_buffer, $value->{context_id}); | ||
| 604 | CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet__marshal($r_buffer, $value->{context_data}); | ||
| 605 | } | ||
| 606 | |||
| 607 | sub ServiceContext__demarshal { | ||
| 608 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 609 | my $value = {}; | ||
| 610 | $value->{context_id} = CORBA::Perl::IOP::ServiceId__demarshal($r_buffer, $r_offset, $endian); | ||
| 611 | $value->{context_data} = CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 612 | return $value; | ||
| 613 | } | ||
| 614 | |||
| 615 | sub ServiceContext__stringify { | ||
| 616 | my ($value, $tab) = @_; | ||
| 617 | $tab = q{} unless defined ($tab); | ||
| 618 | croak "undefined value for 'ServiceContext'.\n" | ||
| 619 | unless (defined $value); | ||
| 620 | croak "invalid struct for 'ServiceContext' (not a HASH reference).\n" | ||
| 621 | unless (ref $value eq 'HASH'); | ||
| 622 | croak "no member 'context_id' in structure 'ServiceContext'.\n" | ||
| 623 | unless (exists $value->{context_id}); | ||
| 624 | croak "no member 'context_data' in structure 'ServiceContext'.\n" | ||
| 625 | unless (exists $value->{context_data}); | ||
| 626 | my $str = "struct ServiceContext {"; | ||
| 627 | $str .= "\n$tab ServiceId context_id = "; | ||
| 628 | $str .= CORBA::Perl::IOP::ServiceId__stringify($value->{context_id}, $tab . " "); | ||
| 629 | $str .= ','; | ||
| 630 | $str .= "\n$tab sequence_CORBA_Perl_CORBA_octet context_data = "; | ||
| 631 | $str .= CORBA::Perl::IOP::sequence_CORBA_Perl_CORBA_octet__stringify($value->{context_data}, $tab . " "); | ||
| 632 | $str .= "\n$tab}"; | ||
| 633 | return $str; | ||
| 634 | } | ||
| 635 | |||
| 636 | sub ServiceContext__id () { | ||
| 637 | return "IDL:omg.org/IOP/ServiceContext:1.0"; | ||
| 638 | } | ||
| 639 | |||
| 640 | # CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_ServiceContext (sequence) | ||
| 641 | sub sequence_CORBA_Perl_IOP_ServiceContext__marshal { | ||
| 642 | my ($r_buffer, $value, $max) = @_; | ||
| 643 | croak "undefined value for 'sequence_CORBA_Perl_IOP_ServiceContext'.\n" | ||
| 644 | unless (defined $value); | ||
| 645 | my $len = scalar(@{$value}); | ||
| 646 | croak "too long sequence for 'sequence_CORBA_Perl_IOP_ServiceContext' (max:$max).\n" | ||
| 647 | if (defined $max and $len > $max); | ||
| 648 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $len); | ||
| 649 | foreach (@{$value}) { | ||
| 650 | CORBA::Perl::IOP::ServiceContext__marshal($r_buffer, $_); | ||
| 651 | } | ||
| 652 | } | ||
| 653 | |||
| 654 | sub sequence_CORBA_Perl_IOP_ServiceContext__demarshal { | ||
| 655 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 656 | my $len = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 657 | my @seq = (); | ||
| 658 | while ($len--) { | ||
| 659 | push @seq,CORBA::Perl::IOP::ServiceContext__demarshal($r_buffer, $r_offset, $endian); | ||
| 660 | } | ||
| 661 | return \@seq; | ||
| 662 | } | ||
| 663 | |||
| 664 | sub sequence_CORBA_Perl_IOP_ServiceContext__stringify { | ||
| 665 | my ($value, $tab, $max) = @_; | ||
| 666 | $tab = q{} unless (defined $tab); | ||
| 667 | croak "undefined value for 'sequence_CORBA_Perl_IOP_ServiceContext'.\n" | ||
| 668 | unless (defined $value); | ||
| 669 | my $len = scalar(@{$value}); | ||
| 670 | croak "too long sequence for 'sequence_CORBA_Perl_IOP_ServiceContext' (max:$max).\n" | ||
| 671 | if (defined $max and $len > $max); | ||
| 672 | my $str = '{'; | ||
| 673 | my $first = 1; | ||
| 674 | foreach (@{$value}) { | ||
| 675 | if ($first) { | ||
| 676 | $first = 0; | ||
| 677 | } | ||
| 678 | else { | ||
| 679 | $str .= ','; | ||
| 680 | } | ||
| 681 | $str .= "\n$tab "; | ||
| 682 | $str .= CORBA::Perl::IOP::ServiceContext__stringify($_, $tab . q{ } x 2); | ||
| 683 | } | ||
| 684 | $str .= "\n$tab"; | ||
| 685 | $str .= '}'; | ||
| 686 | return $str; | ||
| 687 | } | ||
| 688 | |||
| 689 | # CORBA::Perl::IOP::ServiceContextList (typedef) | ||
| 690 | sub ServiceContextList__marshal { | ||
| 691 | my ($r_buffer, $value) = @_; | ||
| 692 | croak "undefined value for 'ServiceContextList'.\n" | ||
| 693 | unless (defined $value); | ||
| 694 | CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_ServiceContext__marshal($r_buffer, $value); | ||
| 695 | } | ||
| 696 | |||
| 697 | sub ServiceContextList__demarshal { | ||
| 698 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 699 | return CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_ServiceContext__demarshal($r_buffer, $r_offset, $endian); | ||
| 700 | } | ||
| 701 | |||
| 702 | sub ServiceContextList__stringify { | ||
| 703 | my ($value, $tab) = @_; | ||
| 704 | croak "undefined value for 'ServiceContextList'.\n" | ||
| 705 | unless (defined $value); | ||
| 706 | return CORBA::Perl::IOP::sequence_CORBA_Perl_IOP_ServiceContext__stringify($value, $tab); | ||
| 707 | } | ||
| 708 | |||
| 709 | sub ServiceContextList__id () { | ||
| 710 | return "IDL:omg.org/IOP/ServiceContextList:1.0"; | ||
| 711 | } | ||
| 712 | |||
| 713 | # CORBA::Perl::IOP::TransactionService | ||
| 714 | sub TransactionService () { | ||
| 715 | return 0; | ||
| 716 | } | ||
| 717 | |||
| 718 | # CORBA::Perl::IOP::CodeSets | ||
| 719 | sub CodeSets () { | ||
| 720 | return 1; | ||
| 721 | } | ||
| 722 | |||
| 723 | # CORBA::Perl::IOP::ChainBypassCheck | ||
| 724 | sub ChainBypassCheck () { | ||
| 725 | return 2; | ||
| 726 | } | ||
| 727 | |||
| 728 | # CORBA::Perl::IOP::ChainBypassInfo | ||
| 729 | sub ChainBypassInfo () { | ||
| 730 | return 3; | ||
| 731 | } | ||
| 732 | |||
| 733 | # CORBA::Perl::IOP::LogicalThreadId | ||
| 734 | sub LogicalThreadId () { | ||
| 735 | return 4; | ||
| 736 | } | ||
| 737 | |||
| 738 | # CORBA::Perl::IOP::BI_DIR_IIOP | ||
| 739 | sub BI_DIR_IIOP () { | ||
| 740 | return 5; | ||
| 741 | } | ||
| 742 | |||
| 743 | # CORBA::Perl::IOP::SendingContextRunTime | ||
| 744 | sub SendingContextRunTime () { | ||
| 745 | return 6; | ||
| 746 | } | ||
| 747 | |||
| 748 | # CORBA::Perl::IOP::INVOCATION_POLICIES | ||
| 749 | sub INVOCATION_POLICIES () { | ||
| 750 | return 7; | ||
| 751 | } | ||
| 752 | |||
| 753 | # CORBA::Perl::IOP::FORWARDED_IDENTITY | ||
| 754 | sub FORWARDED_IDENTITY () { | ||
| 755 | return 8; | ||
| 756 | } | ||
| 757 | |||
| 758 | # CORBA::Perl::IOP::UnknownExceptionInfo | ||
| 759 | sub UnknownExceptionInfo () { | ||
| 760 | return 9; | ||
| 761 | } | ||
| 762 | |||
| 763 | # CORBA::Perl::IOP::RTCorbaPriority | ||
| 764 | sub RTCorbaPriority () { | ||
| 765 | return 10; | ||
| 766 | } | ||
| 767 | |||
| 768 | # CORBA::Perl::IOP::RTCorbaPriorityRange | ||
| 769 | sub RTCorbaPriorityRange () { | ||
| 770 | return 11; | ||
| 771 | } | ||
| 772 | |||
| 773 | # CORBA::Perl::IOP::FT_GROUP_VERSION | ||
| 774 | sub FT_GROUP_VERSION () { | ||
| 775 | return 12; | ||
| 776 | } | ||
| 777 | |||
| 778 | # CORBA::Perl::IOP::FT_REQUEST | ||
| 779 | sub FT_REQUEST () { | ||
| 780 | return 13; | ||
| 781 | } | ||
| 782 | |||
| 783 | # CORBA::Perl::IOP::ExceptionDetailMessage | ||
| 784 | sub ExceptionDetailMessage () { | ||
| 785 | return 14; | ||
| 786 | } | ||
| 787 | |||
| 788 | # CORBA::Perl::IOP::SecurityAttributeService | ||
| 789 | sub SecurityAttributeService () { | ||
| 790 | return 15; | ||
| 791 | } | ||
| 792 | |||
| 793 | # CORBA::Perl::IOP::ActivityService | ||
| 794 | sub ActivityService () { | ||
| 795 | return 16; | ||
| 796 | } | ||
| 797 | |||
| 798 | |||
| 799 | # | ||
| 800 | # end of module CORBA::Perl::IOP | ||
| 801 | # | ||
| 802 | |||
| 803 | package main; | ||
| 804 | |||
| 805 | 1; | ||
| 806 | |||
| 807 | # end of file : IOP.pm | ||
| 808 | |||
| 809 | # Local variables: | ||
| 810 | # buffer-read-only: t | ||
| 811 | # End: |