| 1 | # ex: set ro: | ||
| 2 | # This file was generated (by D:\Perl\site\bin/idl2pm). DO NOT modify it. | ||
| 3 | # From file : GIOP.idl, 9058 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 | use CORBA::Perl::IOP; | ||
| 14 | |||
| 15 | # | ||
| 16 | # begin of module CORBA::Perl::GIOP | ||
| 17 | # | ||
| 18 | |||
| 19 | package CORBA::Perl::GIOP; | ||
| 20 | |||
| 21 | use Carp; | ||
| 22 | use CORBA::Perl::CORBA; | ||
| 23 | |||
| 24 | # CORBA::Perl::GIOP::Version (struct) | ||
| 25 | sub Version__marshal { | ||
| 26 | my ($r_buffer, $value) = @_; | ||
| 27 | croak "undefined value for 'Version'.\n" | ||
| 28 | unless (defined $value); | ||
| 29 | croak "invalid struct for 'Version' (not a HASH reference).\n" | ||
| 30 | unless (ref $value eq 'HASH'); | ||
| 31 | croak "no member 'major' in structure 'Version'.\n" | ||
| 32 | unless (exists $value->{major}); | ||
| 33 | croak "no member 'minor' in structure 'Version'.\n" | ||
| 34 | unless (exists $value->{minor}); | ||
| 35 | CORBA::Perl::CORBA::octet__marshal($r_buffer, $value->{major}); | ||
| 36 | CORBA::Perl::CORBA::octet__marshal($r_buffer, $value->{minor}); | ||
| 37 | } | ||
| 38 | |||
| 39 | sub Version__demarshal { | ||
| 40 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 41 | my $value = {}; | ||
| 42 | $value->{major} = CORBA::Perl::CORBA::octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 43 | $value->{minor} = CORBA::Perl::CORBA::octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 44 | return $value; | ||
| 45 | } | ||
| 46 | |||
| 47 | sub Version__stringify { | ||
| 48 | my ($value, $tab) = @_; | ||
| 49 | $tab = q{} unless defined ($tab); | ||
| 50 | croak "undefined value for 'Version'.\n" | ||
| 51 | unless (defined $value); | ||
| 52 | croak "invalid struct for 'Version' (not a HASH reference).\n" | ||
| 53 | unless (ref $value eq 'HASH'); | ||
| 54 | croak "no member 'major' in structure 'Version'.\n" | ||
| 55 | unless (exists $value->{major}); | ||
| 56 | croak "no member 'minor' in structure 'Version'.\n" | ||
| 57 | unless (exists $value->{minor}); | ||
| 58 | my $str = "struct Version {"; | ||
| 59 | $str .= "\n$tab octet major = "; | ||
| 60 | $str .= CORBA::Perl::CORBA::octet__stringify($value->{major}, $tab . " "); | ||
| 61 | $str .= ','; | ||
| 62 | $str .= "\n$tab octet minor = "; | ||
| 63 | $str .= CORBA::Perl::CORBA::octet__stringify($value->{minor}, $tab . " "); | ||
| 64 | $str .= "\n$tab}"; | ||
| 65 | return $str; | ||
| 66 | } | ||
| 67 | |||
| 68 | sub Version__id () { | ||
| 69 | return "IDL:omg.org/GIOP/Version:1.0"; | ||
| 70 | } | ||
| 71 | |||
| 72 | # CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet (sequence) | ||
| 73 | sub sequence_CORBA_Perl_CORBA_octet__marshal { | ||
| 74 | my ($r_buffer, $value, $max) = @_; | ||
| 75 | croak "undefined value for 'sequence_CORBA_Perl_CORBA_octet'.\n" | ||
| 76 | unless (defined $value); | ||
| 77 | croak "value '$value' is not a string.\n" | ||
| 78 | if (ref $value); | ||
| 79 | my $len = length($value); | ||
| 80 | croak "too long sequence for 'sequence_CORBA_Perl_CORBA_octet' (max:$max).\n" | ||
| 81 | if (defined $max and $len > $max); | ||
| 82 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $len); | ||
| 83 | $$r_buffer .= $value; | ||
| 84 | } | ||
| 85 | |||
| 86 | sub sequence_CORBA_Perl_CORBA_octet__demarshal { | ||
| 87 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 88 | my $len = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 89 | my @seq = (); | ||
| 90 | my $str = substr $$r_buffer, $$r_offset, $len; | ||
| 91 | $$r_offset += $len; | ||
| 92 | return $str; | ||
| 93 | } | ||
| 94 | |||
| 95 | sub sequence_CORBA_Perl_CORBA_octet__stringify { | ||
| 96 | my ($value, $tab, $max) = @_; | ||
| 97 | $tab = q{} unless (defined $tab); | ||
| 98 | croak "undefined value for 'sequence_CORBA_Perl_CORBA_octet'.\n" | ||
| 99 | unless (defined $value); | ||
| 100 | $value = [map ord, split //, $value]; | ||
| 101 | my $len = scalar(@{$value}); | ||
| 102 | croak "too long sequence for 'sequence_CORBA_Perl_CORBA_octet' (max:$max).\n" | ||
| 103 | if (defined $max and $len > $max); | ||
| 104 | my $str = '{'; | ||
| 105 | my $first = 1; | ||
| 106 | foreach (@{$value}) { | ||
| 107 | if ($first) { | ||
| 108 | $first = 0; | ||
| 109 | } | ||
| 110 | else { | ||
| 111 | $str .= ','; | ||
| 112 | } | ||
| 113 | $str .= CORBA::Perl::CORBA::octet__stringify($_, $tab . q{ } x 2); | ||
| 114 | } | ||
| 115 | $str .= '}'; | ||
| 116 | return $str; | ||
| 117 | } | ||
| 118 | |||
| 119 | # CORBA::Perl::GIOP::Principal (typedef) | ||
| 120 | sub Principal__marshal { | ||
| 121 | my ($r_buffer, $value) = @_; | ||
| 122 | croak "undefined value for 'Principal'.\n" | ||
| 123 | unless (defined $value); | ||
| 124 | CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__marshal($r_buffer, $value); | ||
| 125 | } | ||
| 126 | |||
| 127 | sub Principal__demarshal { | ||
| 128 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 129 | return CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 130 | } | ||
| 131 | |||
| 132 | sub Principal__stringify { | ||
| 133 | my ($value, $tab) = @_; | ||
| 134 | croak "undefined value for 'Principal'.\n" | ||
| 135 | unless (defined $value); | ||
| 136 | return CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__stringify($value, $tab); | ||
| 137 | } | ||
| 138 | |||
| 139 | sub Principal__id () { | ||
| 140 | return "IDL:omg.org/GIOP/Principal:1.0"; | ||
| 141 | } | ||
| 142 | |||
| 143 | # CORBA::Perl::GIOP::MsgType_1_1 (enum) | ||
| 144 | sub MsgType_1_1__marshal { | ||
| 145 | my ($r_buffer, $value) = @_; | ||
| 146 | if (0) { | ||
| 147 | } | ||
| 148 | elsif ($value eq 'Request') { | ||
| 149 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 0); | ||
| 150 | } | ||
| 151 | elsif ($value eq 'Reply') { | ||
| 152 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 1); | ||
| 153 | } | ||
| 154 | elsif ($value eq 'CancelRequest') { | ||
| 155 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 2); | ||
| 156 | } | ||
| 157 | elsif ($value eq 'LocateRequest') { | ||
| 158 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 3); | ||
| 159 | } | ||
| 160 | elsif ($value eq 'LocateReply') { | ||
| 161 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 4); | ||
| 162 | } | ||
| 163 | elsif ($value eq 'CloseConnection') { | ||
| 164 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 5); | ||
| 165 | } | ||
| 166 | elsif ($value eq 'MessageError') { | ||
| 167 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 6); | ||
| 168 | } | ||
| 169 | elsif ($value eq 'Fragment') { | ||
| 170 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 7); | ||
| 171 | } | ||
| 172 | else { | ||
| 173 | croak "bad value for 'CORBA::Perl::GIOP::MsgType_1_1'.\n"; | ||
| 174 | } | ||
| 175 | } | ||
| 176 | |||
| 177 | sub MsgType_1_1__demarshal { | ||
| 178 | my $value = CORBA::Perl::CORBA::unsigned_long__demarshal(@_); | ||
| 179 | if (0) { | ||
| 180 | } | ||
| 181 | elsif ($value == 0) { | ||
| 182 | return 'Request'; | ||
| 183 | } | ||
| 184 | elsif ($value == 1) { | ||
| 185 | return 'Reply'; | ||
| 186 | } | ||
| 187 | elsif ($value == 2) { | ||
| 188 | return 'CancelRequest'; | ||
| 189 | } | ||
| 190 | elsif ($value == 3) { | ||
| 191 | return 'LocateRequest'; | ||
| 192 | } | ||
| 193 | elsif ($value == 4) { | ||
| 194 | return 'LocateReply'; | ||
| 195 | } | ||
| 196 | elsif ($value == 5) { | ||
| 197 | return 'CloseConnection'; | ||
| 198 | } | ||
| 199 | elsif ($value == 6) { | ||
| 200 | return 'MessageError'; | ||
| 201 | } | ||
| 202 | elsif ($value == 7) { | ||
| 203 | return 'Fragment'; | ||
| 204 | } | ||
| 205 | else { | ||
| 206 | croak "bad value for 'CORBA::Perl::GIOP::MsgType_1_1'.\n"; | ||
| 207 | } | ||
| 208 | } | ||
| 209 | |||
| 210 | sub MsgType_1_1__stringify { | ||
| 211 | my ($value) = @_; | ||
| 212 | return $value; | ||
| 213 | } | ||
| 214 | |||
| 215 | sub MsgType_1_1__id () { | ||
| 216 | return "IDL:omg.org/GIOP/MsgType_1_1:1.0"; | ||
| 217 | } | ||
| 218 | |||
| 219 | sub Request () { | ||
| 220 | return 'Request'; | ||
| 221 | } | ||
| 222 | sub Reply () { | ||
| 223 | return 'Reply'; | ||
| 224 | } | ||
| 225 | sub CancelRequest () { | ||
| 226 | return 'CancelRequest'; | ||
| 227 | } | ||
| 228 | sub LocateRequest () { | ||
| 229 | return 'LocateRequest'; | ||
| 230 | } | ||
| 231 | sub LocateReply () { | ||
| 232 | return 'LocateReply'; | ||
| 233 | } | ||
| 234 | sub CloseConnection () { | ||
| 235 | return 'CloseConnection'; | ||
| 236 | } | ||
| 237 | sub MessageError () { | ||
| 238 | return 'MessageError'; | ||
| 239 | } | ||
| 240 | sub Fragment () { | ||
| 241 | return 'Fragment'; | ||
| 242 | } | ||
| 243 | |||
| 244 | # CORBA::Perl::GIOP::MsgType_1_2 (typedef) | ||
| 245 | sub MsgType_1_2__marshal { | ||
| 246 | my ($r_buffer, $value) = @_; | ||
| 247 | croak "undefined value for 'MsgType_1_2'.\n" | ||
| 248 | unless (defined $value); | ||
| 249 | CORBA::Perl::GIOP::MsgType_1_1__marshal($r_buffer, $value); | ||
| 250 | } | ||
| 251 | |||
| 252 | sub MsgType_1_2__demarshal { | ||
| 253 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 254 | return CORBA::Perl::GIOP::MsgType_1_1__demarshal($r_buffer, $r_offset, $endian); | ||
| 255 | } | ||
| 256 | |||
| 257 | sub MsgType_1_2__stringify { | ||
| 258 | my ($value, $tab) = @_; | ||
| 259 | croak "undefined value for 'MsgType_1_2'.\n" | ||
| 260 | unless (defined $value); | ||
| 261 | return CORBA::Perl::GIOP::MsgType_1_1__stringify($value, $tab); | ||
| 262 | } | ||
| 263 | |||
| 264 | sub MsgType_1_2__id () { | ||
| 265 | return "IDL:omg.org/GIOP/MsgType_1_2:1.0"; | ||
| 266 | } | ||
| 267 | |||
| 268 | # CORBA::Perl::GIOP::MsgType_1_3 (typedef) | ||
| 269 | sub MsgType_1_3__marshal { | ||
| 270 | my ($r_buffer, $value) = @_; | ||
| 271 | croak "undefined value for 'MsgType_1_3'.\n" | ||
| 272 | unless (defined $value); | ||
| 273 | CORBA::Perl::GIOP::MsgType_1_1__marshal($r_buffer, $value); | ||
| 274 | } | ||
| 275 | |||
| 276 | sub MsgType_1_3__demarshal { | ||
| 277 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 278 | return CORBA::Perl::GIOP::MsgType_1_1__demarshal($r_buffer, $r_offset, $endian); | ||
| 279 | } | ||
| 280 | |||
| 281 | sub MsgType_1_3__stringify { | ||
| 282 | my ($value, $tab) = @_; | ||
| 283 | croak "undefined value for 'MsgType_1_3'.\n" | ||
| 284 | unless (defined $value); | ||
| 285 | return CORBA::Perl::GIOP::MsgType_1_1__stringify($value, $tab); | ||
| 286 | } | ||
| 287 | |||
| 288 | sub MsgType_1_3__id () { | ||
| 289 | return "IDL:omg.org/GIOP/MsgType_1_3:1.0"; | ||
| 290 | } | ||
| 291 | |||
| 292 | # CORBA::Perl::GIOP::MessageHeader_1_0 (struct) | ||
| 293 | sub MessageHeader_1_0__marshal { | ||
| 294 | my ($r_buffer, $value) = @_; | ||
| 295 | croak "undefined value for 'MessageHeader_1_0'.\n" | ||
| 296 | unless (defined $value); | ||
| 297 | croak "invalid struct for 'MessageHeader_1_0' (not a HASH reference).\n" | ||
| 298 | unless (ref $value eq 'HASH'); | ||
| 299 | croak "no member 'magic' in structure 'MessageHeader_1_0'.\n" | ||
| 300 | unless (exists $value->{magic}); | ||
| 301 | croak "no member 'GIOP_version' in structure 'MessageHeader_1_0'.\n" | ||
| 302 | unless (exists $value->{GIOP_version}); | ||
| 303 | croak "no member 'byte_order' in structure 'MessageHeader_1_0'.\n" | ||
| 304 | unless (exists $value->{byte_order}); | ||
| 305 | croak "no member 'message_type' in structure 'MessageHeader_1_0'.\n" | ||
| 306 | unless (exists $value->{message_type}); | ||
| 307 | croak "no member 'message_size' in structure 'MessageHeader_1_0'.\n" | ||
| 308 | unless (exists $value->{message_size}); | ||
| 309 | local $_ = $value->{magic}; | ||
| 310 | croak "bad size of array 'magic'.\n" | ||
| 311 | unless (scalar(@{$_}) == 4); | ||
| 312 | foreach (@{$_}) { | ||
| 313 | CORBA::Perl::CORBA::char__marshal($r_buffer, $_); | ||
| 314 | } | ||
| 315 | CORBA::Perl::GIOP::Version__marshal($r_buffer, $value->{GIOP_version}); | ||
| 316 | CORBA::Perl::CORBA::boolean__marshal($r_buffer, $value->{byte_order}); | ||
| 317 | CORBA::Perl::CORBA::octet__marshal($r_buffer, $value->{message_type}); | ||
| 318 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{message_size}); | ||
| 319 | } | ||
| 320 | |||
| 321 | sub MessageHeader_1_0__demarshal { | ||
| 322 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 323 | my $value = {}; | ||
| 324 | my @magic_array1 = (); | ||
| 325 | for (my $idx1 = 0; $idx1 < 4; $idx1++) { | ||
| 326 | push @magic_array1, CORBA::Perl::CORBA::char__demarshal($r_buffer, $r_offset, $endian); | ||
| 327 | } | ||
| 328 | $value->{magic} = \@magic_array1; | ||
| 329 | $value->{GIOP_version} = CORBA::Perl::GIOP::Version__demarshal($r_buffer, $r_offset, $endian); | ||
| 330 | $value->{byte_order} = CORBA::Perl::CORBA::boolean__demarshal($r_buffer, $r_offset, $endian); | ||
| 331 | $value->{message_type} = CORBA::Perl::CORBA::octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 332 | $value->{message_size} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 333 | return $value; | ||
| 334 | } | ||
| 335 | |||
| 336 | sub MessageHeader_1_0__stringify { | ||
| 337 | my ($value, $tab) = @_; | ||
| 338 | $tab = q{} unless defined ($tab); | ||
| 339 | croak "undefined value for 'MessageHeader_1_0'.\n" | ||
| 340 | unless (defined $value); | ||
| 341 | croak "invalid struct for 'MessageHeader_1_0' (not a HASH reference).\n" | ||
| 342 | unless (ref $value eq 'HASH'); | ||
| 343 | croak "no member 'magic' in structure 'MessageHeader_1_0'.\n" | ||
| 344 | unless (exists $value->{magic}); | ||
| 345 | croak "no member 'GIOP_version' in structure 'MessageHeader_1_0'.\n" | ||
| 346 | unless (exists $value->{GIOP_version}); | ||
| 347 | croak "no member 'byte_order' in structure 'MessageHeader_1_0'.\n" | ||
| 348 | unless (exists $value->{byte_order}); | ||
| 349 | croak "no member 'message_type' in structure 'MessageHeader_1_0'.\n" | ||
| 350 | unless (exists $value->{message_type}); | ||
| 351 | croak "no member 'message_size' in structure 'MessageHeader_1_0'.\n" | ||
| 352 | unless (exists $value->{message_size}); | ||
| 353 | my $str = "struct MessageHeader_1_0 {"; | ||
| 354 | $str .= "\n$tab char[] magic = "; | ||
| 355 | local $_ = $value->{magic}; | ||
| 356 | croak "bad size of array 'magic'.\n" | ||
| 357 | unless (scalar(@{$_}) == 4); | ||
| 358 | $str .= "{"; | ||
| 359 | my $first1 = 1; | ||
| 360 | foreach (@{$_}) { | ||
| 361 | if ($first1) { | ||
| 362 | $first1 = 0; | ||
| 363 | } | ||
| 364 | else { | ||
| 365 | $str .= ","; | ||
| 366 | } | ||
| 367 | $str .= CORBA::Perl::CORBA::char__stringify($_, $tab . " "); | ||
| 368 | } | ||
| 369 | $str .= "}"; | ||
| 370 | $str .= ','; | ||
| 371 | $str .= "\n$tab Version GIOP_version = "; | ||
| 372 | $str .= CORBA::Perl::GIOP::Version__stringify($value->{GIOP_version}, $tab . " "); | ||
| 373 | $str .= ','; | ||
| 374 | $str .= "\n$tab boolean byte_order = "; | ||
| 375 | $str .= CORBA::Perl::CORBA::boolean__stringify($value->{byte_order}, $tab . " "); | ||
| 376 | $str .= ','; | ||
| 377 | $str .= "\n$tab octet message_type = "; | ||
| 378 | $str .= CORBA::Perl::CORBA::octet__stringify($value->{message_type}, $tab . " "); | ||
| 379 | $str .= ','; | ||
| 380 | $str .= "\n$tab unsigned_long message_size = "; | ||
| 381 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{message_size}, $tab . " "); | ||
| 382 | $str .= "\n$tab}"; | ||
| 383 | return $str; | ||
| 384 | } | ||
| 385 | |||
| 386 | sub MessageHeader_1_0__id () { | ||
| 387 | return "IDL:omg.org/GIOP/MessageHeader_1_0:1.0"; | ||
| 388 | } | ||
| 389 | |||
| 390 | # CORBA::Perl::GIOP::MessageHeader_1_1 (struct) | ||
| 391 | sub MessageHeader_1_1__marshal { | ||
| 392 | my ($r_buffer, $value) = @_; | ||
| 393 | croak "undefined value for 'MessageHeader_1_1'.\n" | ||
| 394 | unless (defined $value); | ||
| 395 | croak "invalid struct for 'MessageHeader_1_1' (not a HASH reference).\n" | ||
| 396 | unless (ref $value eq 'HASH'); | ||
| 397 | croak "no member 'magic' in structure 'MessageHeader_1_1'.\n" | ||
| 398 | unless (exists $value->{magic}); | ||
| 399 | croak "no member 'GIOP_version' in structure 'MessageHeader_1_1'.\n" | ||
| 400 | unless (exists $value->{GIOP_version}); | ||
| 401 | croak "no member 'flags' in structure 'MessageHeader_1_1'.\n" | ||
| 402 | unless (exists $value->{flags}); | ||
| 403 | croak "no member 'message_type' in structure 'MessageHeader_1_1'.\n" | ||
| 404 | unless (exists $value->{message_type}); | ||
| 405 | croak "no member 'message_size' in structure 'MessageHeader_1_1'.\n" | ||
| 406 | unless (exists $value->{message_size}); | ||
| 407 | local $_ = $value->{magic}; | ||
| 408 | croak "bad size of array 'magic'.\n" | ||
| 409 | unless (scalar(@{$_}) == 4); | ||
| 410 | foreach (@{$_}) { | ||
| 411 | CORBA::Perl::CORBA::char__marshal($r_buffer, $_); | ||
| 412 | } | ||
| 413 | CORBA::Perl::GIOP::Version__marshal($r_buffer, $value->{GIOP_version}); | ||
| 414 | CORBA::Perl::CORBA::octet__marshal($r_buffer, $value->{flags}); | ||
| 415 | CORBA::Perl::CORBA::octet__marshal($r_buffer, $value->{message_type}); | ||
| 416 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{message_size}); | ||
| 417 | } | ||
| 418 | |||
| 419 | sub MessageHeader_1_1__demarshal { | ||
| 420 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 421 | my $value = {}; | ||
| 422 | my @magic_array1 = (); | ||
| 423 | for (my $idx1 = 0; $idx1 < 4; $idx1++) { | ||
| 424 | push @magic_array1, CORBA::Perl::CORBA::char__demarshal($r_buffer, $r_offset, $endian); | ||
| 425 | } | ||
| 426 | $value->{magic} = \@magic_array1; | ||
| 427 | $value->{GIOP_version} = CORBA::Perl::GIOP::Version__demarshal($r_buffer, $r_offset, $endian); | ||
| 428 | $value->{flags} = CORBA::Perl::CORBA::octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 429 | $value->{message_type} = CORBA::Perl::CORBA::octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 430 | $value->{message_size} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 431 | return $value; | ||
| 432 | } | ||
| 433 | |||
| 434 | sub MessageHeader_1_1__stringify { | ||
| 435 | my ($value, $tab) = @_; | ||
| 436 | $tab = q{} unless defined ($tab); | ||
| 437 | croak "undefined value for 'MessageHeader_1_1'.\n" | ||
| 438 | unless (defined $value); | ||
| 439 | croak "invalid struct for 'MessageHeader_1_1' (not a HASH reference).\n" | ||
| 440 | unless (ref $value eq 'HASH'); | ||
| 441 | croak "no member 'magic' in structure 'MessageHeader_1_1'.\n" | ||
| 442 | unless (exists $value->{magic}); | ||
| 443 | croak "no member 'GIOP_version' in structure 'MessageHeader_1_1'.\n" | ||
| 444 | unless (exists $value->{GIOP_version}); | ||
| 445 | croak "no member 'flags' in structure 'MessageHeader_1_1'.\n" | ||
| 446 | unless (exists $value->{flags}); | ||
| 447 | croak "no member 'message_type' in structure 'MessageHeader_1_1'.\n" | ||
| 448 | unless (exists $value->{message_type}); | ||
| 449 | croak "no member 'message_size' in structure 'MessageHeader_1_1'.\n" | ||
| 450 | unless (exists $value->{message_size}); | ||
| 451 | my $str = "struct MessageHeader_1_1 {"; | ||
| 452 | $str .= "\n$tab char[] magic = "; | ||
| 453 | local $_ = $value->{magic}; | ||
| 454 | croak "bad size of array 'magic'.\n" | ||
| 455 | unless (scalar(@{$_}) == 4); | ||
| 456 | $str .= "{"; | ||
| 457 | my $first1 = 1; | ||
| 458 | foreach (@{$_}) { | ||
| 459 | if ($first1) { | ||
| 460 | $first1 = 0; | ||
| 461 | } | ||
| 462 | else { | ||
| 463 | $str .= ","; | ||
| 464 | } | ||
| 465 | $str .= CORBA::Perl::CORBA::char__stringify($_, $tab . " "); | ||
| 466 | } | ||
| 467 | $str .= "}"; | ||
| 468 | $str .= ','; | ||
| 469 | $str .= "\n$tab Version GIOP_version = "; | ||
| 470 | $str .= CORBA::Perl::GIOP::Version__stringify($value->{GIOP_version}, $tab . " "); | ||
| 471 | $str .= ','; | ||
| 472 | $str .= "\n$tab octet flags = "; | ||
| 473 | $str .= CORBA::Perl::CORBA::octet__stringify($value->{flags}, $tab . " "); | ||
| 474 | $str .= ','; | ||
| 475 | $str .= "\n$tab octet message_type = "; | ||
| 476 | $str .= CORBA::Perl::CORBA::octet__stringify($value->{message_type}, $tab . " "); | ||
| 477 | $str .= ','; | ||
| 478 | $str .= "\n$tab unsigned_long message_size = "; | ||
| 479 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{message_size}, $tab . " "); | ||
| 480 | $str .= "\n$tab}"; | ||
| 481 | return $str; | ||
| 482 | } | ||
| 483 | |||
| 484 | sub MessageHeader_1_1__id () { | ||
| 485 | return "IDL:omg.org/GIOP/MessageHeader_1_1:1.0"; | ||
| 486 | } | ||
| 487 | |||
| 488 | # CORBA::Perl::GIOP::MessageHeader_1_2 (typedef) | ||
| 489 | sub MessageHeader_1_2__marshal { | ||
| 490 | my ($r_buffer, $value) = @_; | ||
| 491 | croak "undefined value for 'MessageHeader_1_2'.\n" | ||
| 492 | unless (defined $value); | ||
| 493 | CORBA::Perl::GIOP::MessageHeader_1_1__marshal($r_buffer, $value); | ||
| 494 | } | ||
| 495 | |||
| 496 | sub MessageHeader_1_2__demarshal { | ||
| 497 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 498 | return CORBA::Perl::GIOP::MessageHeader_1_1__demarshal($r_buffer, $r_offset, $endian); | ||
| 499 | } | ||
| 500 | |||
| 501 | sub MessageHeader_1_2__stringify { | ||
| 502 | my ($value, $tab) = @_; | ||
| 503 | croak "undefined value for 'MessageHeader_1_2'.\n" | ||
| 504 | unless (defined $value); | ||
| 505 | return CORBA::Perl::GIOP::MessageHeader_1_1__stringify($value, $tab); | ||
| 506 | } | ||
| 507 | |||
| 508 | sub MessageHeader_1_2__id () { | ||
| 509 | return "IDL:omg.org/GIOP/MessageHeader_1_2:1.0"; | ||
| 510 | } | ||
| 511 | |||
| 512 | # CORBA::Perl::GIOP::MessageHeader_1_3 (typedef) | ||
| 513 | sub MessageHeader_1_3__marshal { | ||
| 514 | my ($r_buffer, $value) = @_; | ||
| 515 | croak "undefined value for 'MessageHeader_1_3'.\n" | ||
| 516 | unless (defined $value); | ||
| 517 | CORBA::Perl::GIOP::MessageHeader_1_1__marshal($r_buffer, $value); | ||
| 518 | } | ||
| 519 | |||
| 520 | sub MessageHeader_1_3__demarshal { | ||
| 521 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 522 | return CORBA::Perl::GIOP::MessageHeader_1_1__demarshal($r_buffer, $r_offset, $endian); | ||
| 523 | } | ||
| 524 | |||
| 525 | sub MessageHeader_1_3__stringify { | ||
| 526 | my ($value, $tab) = @_; | ||
| 527 | croak "undefined value for 'MessageHeader_1_3'.\n" | ||
| 528 | unless (defined $value); | ||
| 529 | return CORBA::Perl::GIOP::MessageHeader_1_1__stringify($value, $tab); | ||
| 530 | } | ||
| 531 | |||
| 532 | sub MessageHeader_1_3__id () { | ||
| 533 | return "IDL:omg.org/GIOP/MessageHeader_1_3:1.0"; | ||
| 534 | } | ||
| 535 | |||
| 536 | # CORBA::Perl::GIOP::RequestHeader_1_0 (struct) | ||
| 537 | sub RequestHeader_1_0__marshal { | ||
| 538 | my ($r_buffer, $value) = @_; | ||
| 539 | croak "undefined value for 'RequestHeader_1_0'.\n" | ||
| 540 | unless (defined $value); | ||
| 541 | croak "invalid struct for 'RequestHeader_1_0' (not a HASH reference).\n" | ||
| 542 | unless (ref $value eq 'HASH'); | ||
| 543 | croak "no member 'service_context' in structure 'RequestHeader_1_0'.\n" | ||
| 544 | unless (exists $value->{service_context}); | ||
| 545 | croak "no member 'request_id' in structure 'RequestHeader_1_0'.\n" | ||
| 546 | unless (exists $value->{request_id}); | ||
| 547 | croak "no member 'response_expected' in structure 'RequestHeader_1_0'.\n" | ||
| 548 | unless (exists $value->{response_expected}); | ||
| 549 | croak "no member 'object_key' in structure 'RequestHeader_1_0'.\n" | ||
| 550 | unless (exists $value->{object_key}); | ||
| 551 | croak "no member 'operation' in structure 'RequestHeader_1_0'.\n" | ||
| 552 | unless (exists $value->{operation}); | ||
| 553 | croak "no member 'requesting_principal' in structure 'RequestHeader_1_0'.\n" | ||
| 554 | unless (exists $value->{requesting_principal}); | ||
| 555 | CORBA::Perl::IOP::ServiceContextList__marshal($r_buffer, $value->{service_context}); | ||
| 556 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{request_id}); | ||
| 557 | CORBA::Perl::CORBA::boolean__marshal($r_buffer, $value->{response_expected}); | ||
| 558 | CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__marshal($r_buffer, $value->{object_key}); | ||
| 559 | CORBA::Perl::CORBA::string__marshal($r_buffer, $value->{operation}); | ||
| 560 | CORBA::Perl::GIOP::Principal__marshal($r_buffer, $value->{requesting_principal}); | ||
| 561 | } | ||
| 562 | |||
| 563 | sub RequestHeader_1_0__demarshal { | ||
| 564 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 565 | my $value = {}; | ||
| 566 | $value->{service_context} = CORBA::Perl::IOP::ServiceContextList__demarshal($r_buffer, $r_offset, $endian); | ||
| 567 | $value->{request_id} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 568 | $value->{response_expected} = CORBA::Perl::CORBA::boolean__demarshal($r_buffer, $r_offset, $endian); | ||
| 569 | $value->{object_key} = CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 570 | $value->{operation} = CORBA::Perl::CORBA::string__demarshal($r_buffer, $r_offset, $endian); | ||
| 571 | $value->{requesting_principal} = CORBA::Perl::GIOP::Principal__demarshal($r_buffer, $r_offset, $endian); | ||
| 572 | return $value; | ||
| 573 | } | ||
| 574 | |||
| 575 | sub RequestHeader_1_0__stringify { | ||
| 576 | my ($value, $tab) = @_; | ||
| 577 | $tab = q{} unless defined ($tab); | ||
| 578 | croak "undefined value for 'RequestHeader_1_0'.\n" | ||
| 579 | unless (defined $value); | ||
| 580 | croak "invalid struct for 'RequestHeader_1_0' (not a HASH reference).\n" | ||
| 581 | unless (ref $value eq 'HASH'); | ||
| 582 | croak "no member 'service_context' in structure 'RequestHeader_1_0'.\n" | ||
| 583 | unless (exists $value->{service_context}); | ||
| 584 | croak "no member 'request_id' in structure 'RequestHeader_1_0'.\n" | ||
| 585 | unless (exists $value->{request_id}); | ||
| 586 | croak "no member 'response_expected' in structure 'RequestHeader_1_0'.\n" | ||
| 587 | unless (exists $value->{response_expected}); | ||
| 588 | croak "no member 'object_key' in structure 'RequestHeader_1_0'.\n" | ||
| 589 | unless (exists $value->{object_key}); | ||
| 590 | croak "no member 'operation' in structure 'RequestHeader_1_0'.\n" | ||
| 591 | unless (exists $value->{operation}); | ||
| 592 | croak "no member 'requesting_principal' in structure 'RequestHeader_1_0'.\n" | ||
| 593 | unless (exists $value->{requesting_principal}); | ||
| 594 | my $str = "struct RequestHeader_1_0 {"; | ||
| 595 | $str .= "\n$tab ServiceContextList service_context = "; | ||
| 596 | $str .= CORBA::Perl::IOP::ServiceContextList__stringify($value->{service_context}, $tab . " "); | ||
| 597 | $str .= ','; | ||
| 598 | $str .= "\n$tab unsigned_long request_id = "; | ||
| 599 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{request_id}, $tab . " "); | ||
| 600 | $str .= ','; | ||
| 601 | $str .= "\n$tab boolean response_expected = "; | ||
| 602 | $str .= CORBA::Perl::CORBA::boolean__stringify($value->{response_expected}, $tab . " "); | ||
| 603 | $str .= ','; | ||
| 604 | $str .= "\n$tab sequence_CORBA_Perl_CORBA_octet object_key = "; | ||
| 605 | $str .= CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__stringify($value->{object_key}, $tab . " "); | ||
| 606 | $str .= ','; | ||
| 607 | $str .= "\n$tab string operation = "; | ||
| 608 | $str .= CORBA::Perl::CORBA::string__stringify($value->{operation}, $tab . " "); | ||
| 609 | $str .= ','; | ||
| 610 | $str .= "\n$tab Principal requesting_principal = "; | ||
| 611 | $str .= CORBA::Perl::GIOP::Principal__stringify($value->{requesting_principal}, $tab . " "); | ||
| 612 | $str .= "\n$tab}"; | ||
| 613 | return $str; | ||
| 614 | } | ||
| 615 | |||
| 616 | sub RequestHeader_1_0__id () { | ||
| 617 | return "IDL:omg.org/GIOP/RequestHeader_1_0:1.0"; | ||
| 618 | } | ||
| 619 | |||
| 620 | # CORBA::Perl::GIOP::RequestHeader_1_1 (struct) | ||
| 621 | sub RequestHeader_1_1__marshal { | ||
| 622 | my ($r_buffer, $value) = @_; | ||
| 623 | croak "undefined value for 'RequestHeader_1_1'.\n" | ||
| 624 | unless (defined $value); | ||
| 625 | croak "invalid struct for 'RequestHeader_1_1' (not a HASH reference).\n" | ||
| 626 | unless (ref $value eq 'HASH'); | ||
| 627 | croak "no member 'service_context' in structure 'RequestHeader_1_1'.\n" | ||
| 628 | unless (exists $value->{service_context}); | ||
| 629 | croak "no member 'request_id' in structure 'RequestHeader_1_1'.\n" | ||
| 630 | unless (exists $value->{request_id}); | ||
| 631 | croak "no member 'response_expected' in structure 'RequestHeader_1_1'.\n" | ||
| 632 | unless (exists $value->{response_expected}); | ||
| 633 | croak "no member 'reserved' in structure 'RequestHeader_1_1'.\n" | ||
| 634 | unless (exists $value->{reserved}); | ||
| 635 | croak "no member 'object_key' in structure 'RequestHeader_1_1'.\n" | ||
| 636 | unless (exists $value->{object_key}); | ||
| 637 | croak "no member 'operation' in structure 'RequestHeader_1_1'.\n" | ||
| 638 | unless (exists $value->{operation}); | ||
| 639 | croak "no member 'requesting_principal' in structure 'RequestHeader_1_1'.\n" | ||
| 640 | unless (exists $value->{requesting_principal}); | ||
| 641 | CORBA::Perl::IOP::ServiceContextList__marshal($r_buffer, $value->{service_context}); | ||
| 642 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{request_id}); | ||
| 643 | CORBA::Perl::CORBA::boolean__marshal($r_buffer, $value->{response_expected}); | ||
| 644 | local $_ = $value->{reserved}; | ||
| 645 | croak "bad size of array 'reserved'.\n" | ||
| 646 | unless (scalar(@{$_}) == 3); | ||
| 647 | foreach (@{$_}) { | ||
| 648 | CORBA::Perl::CORBA::octet__marshal($r_buffer, $_); | ||
| 649 | } | ||
| 650 | CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__marshal($r_buffer, $value->{object_key}); | ||
| 651 | CORBA::Perl::CORBA::string__marshal($r_buffer, $value->{operation}); | ||
| 652 | CORBA::Perl::GIOP::Principal__marshal($r_buffer, $value->{requesting_principal}); | ||
| 653 | } | ||
| 654 | |||
| 655 | sub RequestHeader_1_1__demarshal { | ||
| 656 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 657 | my $value = {}; | ||
| 658 | $value->{service_context} = CORBA::Perl::IOP::ServiceContextList__demarshal($r_buffer, $r_offset, $endian); | ||
| 659 | $value->{request_id} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 660 | $value->{response_expected} = CORBA::Perl::CORBA::boolean__demarshal($r_buffer, $r_offset, $endian); | ||
| 661 | my @reserved_array1 = (); | ||
| 662 | for (my $idx1 = 0; $idx1 < 3; $idx1++) { | ||
| 663 | push @reserved_array1, CORBA::Perl::CORBA::octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 664 | } | ||
| 665 | $value->{reserved} = \@reserved_array1; | ||
| 666 | $value->{object_key} = CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 667 | $value->{operation} = CORBA::Perl::CORBA::string__demarshal($r_buffer, $r_offset, $endian); | ||
| 668 | $value->{requesting_principal} = CORBA::Perl::GIOP::Principal__demarshal($r_buffer, $r_offset, $endian); | ||
| 669 | return $value; | ||
| 670 | } | ||
| 671 | |||
| 672 | sub RequestHeader_1_1__stringify { | ||
| 673 | my ($value, $tab) = @_; | ||
| 674 | $tab = q{} unless defined ($tab); | ||
| 675 | croak "undefined value for 'RequestHeader_1_1'.\n" | ||
| 676 | unless (defined $value); | ||
| 677 | croak "invalid struct for 'RequestHeader_1_1' (not a HASH reference).\n" | ||
| 678 | unless (ref $value eq 'HASH'); | ||
| 679 | croak "no member 'service_context' in structure 'RequestHeader_1_1'.\n" | ||
| 680 | unless (exists $value->{service_context}); | ||
| 681 | croak "no member 'request_id' in structure 'RequestHeader_1_1'.\n" | ||
| 682 | unless (exists $value->{request_id}); | ||
| 683 | croak "no member 'response_expected' in structure 'RequestHeader_1_1'.\n" | ||
| 684 | unless (exists $value->{response_expected}); | ||
| 685 | croak "no member 'reserved' in structure 'RequestHeader_1_1'.\n" | ||
| 686 | unless (exists $value->{reserved}); | ||
| 687 | croak "no member 'object_key' in structure 'RequestHeader_1_1'.\n" | ||
| 688 | unless (exists $value->{object_key}); | ||
| 689 | croak "no member 'operation' in structure 'RequestHeader_1_1'.\n" | ||
| 690 | unless (exists $value->{operation}); | ||
| 691 | croak "no member 'requesting_principal' in structure 'RequestHeader_1_1'.\n" | ||
| 692 | unless (exists $value->{requesting_principal}); | ||
| 693 | my $str = "struct RequestHeader_1_1 {"; | ||
| 694 | $str .= "\n$tab ServiceContextList service_context = "; | ||
| 695 | $str .= CORBA::Perl::IOP::ServiceContextList__stringify($value->{service_context}, $tab . " "); | ||
| 696 | $str .= ','; | ||
| 697 | $str .= "\n$tab unsigned_long request_id = "; | ||
| 698 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{request_id}, $tab . " "); | ||
| 699 | $str .= ','; | ||
| 700 | $str .= "\n$tab boolean response_expected = "; | ||
| 701 | $str .= CORBA::Perl::CORBA::boolean__stringify($value->{response_expected}, $tab . " "); | ||
| 702 | $str .= ','; | ||
| 703 | $str .= "\n$tab octet[] reserved = "; | ||
| 704 | local $_ = $value->{reserved}; | ||
| 705 | croak "bad size of array 'reserved'.\n" | ||
| 706 | unless (scalar(@{$_}) == 3); | ||
| 707 | $str .= "{"; | ||
| 708 | my $first1 = 1; | ||
| 709 | foreach (@{$_}) { | ||
| 710 | if ($first1) { | ||
| 711 | $first1 = 0; | ||
| 712 | } | ||
| 713 | else { | ||
| 714 | $str .= ","; | ||
| 715 | } | ||
| 716 | $str .= CORBA::Perl::CORBA::octet__stringify($_, $tab . " "); | ||
| 717 | } | ||
| 718 | $str .= "}"; | ||
| 719 | $str .= ','; | ||
| 720 | $str .= "\n$tab sequence_CORBA_Perl_CORBA_octet object_key = "; | ||
| 721 | $str .= CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__stringify($value->{object_key}, $tab . " "); | ||
| 722 | $str .= ','; | ||
| 723 | $str .= "\n$tab string operation = "; | ||
| 724 | $str .= CORBA::Perl::CORBA::string__stringify($value->{operation}, $tab . " "); | ||
| 725 | $str .= ','; | ||
| 726 | $str .= "\n$tab Principal requesting_principal = "; | ||
| 727 | $str .= CORBA::Perl::GIOP::Principal__stringify($value->{requesting_principal}, $tab . " "); | ||
| 728 | $str .= "\n$tab}"; | ||
| 729 | return $str; | ||
| 730 | } | ||
| 731 | |||
| 732 | sub RequestHeader_1_1__id () { | ||
| 733 | return "IDL:omg.org/GIOP/RequestHeader_1_1:1.0"; | ||
| 734 | } | ||
| 735 | |||
| 736 | # CORBA::Perl::GIOP::AddressingDisposition (typedef) | ||
| 737 | sub AddressingDisposition__marshal { | ||
| 738 | my ($r_buffer, $value) = @_; | ||
| 739 | croak "undefined value for 'AddressingDisposition'.\n" | ||
| 740 | unless (defined $value); | ||
| 741 | CORBA::Perl::CORBA::short__marshal($r_buffer, $value); | ||
| 742 | } | ||
| 743 | |||
| 744 | sub AddressingDisposition__demarshal { | ||
| 745 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 746 | return CORBA::Perl::CORBA::short__demarshal($r_buffer, $r_offset, $endian); | ||
| 747 | } | ||
| 748 | |||
| 749 | sub AddressingDisposition__stringify { | ||
| 750 | my ($value, $tab) = @_; | ||
| 751 | croak "undefined value for 'AddressingDisposition'.\n" | ||
| 752 | unless (defined $value); | ||
| 753 | return CORBA::Perl::CORBA::short__stringify($value, $tab); | ||
| 754 | } | ||
| 755 | |||
| 756 | sub AddressingDisposition__id () { | ||
| 757 | return "IDL:omg.org/GIOP/AddressingDisposition:1.0"; | ||
| 758 | } | ||
| 759 | |||
| 760 | # CORBA::Perl::GIOP::KeyAddr | ||
| 761 | sub KeyAddr () { | ||
| 762 | return 0; | ||
| 763 | } | ||
| 764 | |||
| 765 | # CORBA::Perl::GIOP::ProfileAddr | ||
| 766 | sub ProfileAddr () { | ||
| 767 | return 1; | ||
| 768 | } | ||
| 769 | |||
| 770 | # CORBA::Perl::GIOP::ReferenceAddr | ||
| 771 | sub ReferenceAddr () { | ||
| 772 | return 2; | ||
| 773 | } | ||
| 774 | |||
| 775 | # CORBA::Perl::GIOP::IORAddressingInfo (struct) | ||
| 776 | sub IORAddressingInfo__marshal { | ||
| 777 | my ($r_buffer, $value) = @_; | ||
| 778 | croak "undefined value for 'IORAddressingInfo'.\n" | ||
| 779 | unless (defined $value); | ||
| 780 | croak "invalid struct for 'IORAddressingInfo' (not a HASH reference).\n" | ||
| 781 | unless (ref $value eq 'HASH'); | ||
| 782 | croak "no member 'selected_profile_index' in structure 'IORAddressingInfo'.\n" | ||
| 783 | unless (exists $value->{selected_profile_index}); | ||
| 784 | croak "no member 'ior' in structure 'IORAddressingInfo'.\n" | ||
| 785 | unless (exists $value->{ior}); | ||
| 786 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{selected_profile_index}); | ||
| 787 | CORBA::Perl::IOP::IOR__marshal($r_buffer, $value->{ior}); | ||
| 788 | } | ||
| 789 | |||
| 790 | sub IORAddressingInfo__demarshal { | ||
| 791 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 792 | my $value = {}; | ||
| 793 | $value->{selected_profile_index} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 794 | $value->{ior} = CORBA::Perl::IOP::IOR__demarshal($r_buffer, $r_offset, $endian); | ||
| 795 | return $value; | ||
| 796 | } | ||
| 797 | |||
| 798 | sub IORAddressingInfo__stringify { | ||
| 799 | my ($value, $tab) = @_; | ||
| 800 | $tab = q{} unless defined ($tab); | ||
| 801 | croak "undefined value for 'IORAddressingInfo'.\n" | ||
| 802 | unless (defined $value); | ||
| 803 | croak "invalid struct for 'IORAddressingInfo' (not a HASH reference).\n" | ||
| 804 | unless (ref $value eq 'HASH'); | ||
| 805 | croak "no member 'selected_profile_index' in structure 'IORAddressingInfo'.\n" | ||
| 806 | unless (exists $value->{selected_profile_index}); | ||
| 807 | croak "no member 'ior' in structure 'IORAddressingInfo'.\n" | ||
| 808 | unless (exists $value->{ior}); | ||
| 809 | my $str = "struct IORAddressingInfo {"; | ||
| 810 | $str .= "\n$tab unsigned_long selected_profile_index = "; | ||
| 811 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{selected_profile_index}, $tab . " "); | ||
| 812 | $str .= ','; | ||
| 813 | $str .= "\n$tab IOR ior = "; | ||
| 814 | $str .= CORBA::Perl::IOP::IOR__stringify($value->{ior}, $tab . " "); | ||
| 815 | $str .= "\n$tab}"; | ||
| 816 | return $str; | ||
| 817 | } | ||
| 818 | |||
| 819 | sub IORAddressingInfo__id () { | ||
| 820 | return "IDL:omg.org/GIOP/IORAddressingInfo:1.0"; | ||
| 821 | } | ||
| 822 | |||
| 823 | # CORBA::Perl::GIOP::TargetAddress (union) | ||
| 824 | sub TargetAddress__marshal { | ||
| 825 | my ($r_buffer, $union) = @_; | ||
| 826 | croak "undefined value for 'TargetAddress'.\n" | ||
| 827 | unless (defined $union); | ||
| 828 | croak "invalid union for 'TargetAddress' (not a ARRAY reference).\n" | ||
| 829 | unless (ref $union eq 'ARRAY'); | ||
| 830 | croak "invalid union 'TargetAddress'.\n" | ||
| 831 | unless (scalar(@{$union}) == 2); | ||
| 832 | my $d = ${$union}[0]; | ||
| 833 | my $value = ${$union}[1]; | ||
| 834 | CORBA::Perl::GIOP::AddressingDisposition__marshal($r_buffer,$d); | ||
| 835 | if (0) { | ||
| 836 | # empty | ||
| 837 | } | ||
| 838 | elsif ($d == CORBA::Perl::GIOP::KeyAddr()) { | ||
| 839 | CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__marshal($r_buffer, $value); | ||
| 840 | } | ||
| 841 | elsif ($d == CORBA::Perl::GIOP::ProfileAddr()) { | ||
| 842 | CORBA::Perl::IOP::TaggedProfile__marshal($r_buffer, $value); | ||
| 843 | } | ||
| 844 | elsif ($d == CORBA::Perl::GIOP::ReferenceAddr()) { | ||
| 845 | CORBA::Perl::GIOP::IORAddressingInfo__marshal($r_buffer, $value); | ||
| 846 | } | ||
| 847 | else { | ||
| 848 | croak "invalid discriminator ($d) for 'TargetAddress'.\n"; | ||
| 849 | } | ||
| 850 | } | ||
| 851 | |||
| 852 | sub TargetAddress__demarshal { | ||
| 853 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 854 | my $value = undef; | ||
| 855 | my $d = CORBA::Perl::GIOP::AddressingDisposition__demarshal($r_buffer,$r_offset,$endian); | ||
| 856 | if (0) { | ||
| 857 | # empty | ||
| 858 | } | ||
| 859 | elsif ($d == CORBA::Perl::GIOP::KeyAddr()) { | ||
| 860 | $value = CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 861 | } | ||
| 862 | elsif ($d == CORBA::Perl::GIOP::ProfileAddr()) { | ||
| 863 | $value = CORBA::Perl::IOP::TaggedProfile__demarshal($r_buffer, $r_offset, $endian); | ||
| 864 | } | ||
| 865 | elsif ($d == CORBA::Perl::GIOP::ReferenceAddr()) { | ||
| 866 | $value = CORBA::Perl::GIOP::IORAddressingInfo__demarshal($r_buffer, $r_offset, $endian); | ||
| 867 | } | ||
| 868 | else { | ||
| 869 | croak "invalid discriminator ($d) for 'TargetAddress'.\n"; | ||
| 870 | } | ||
| 871 | return [$d, $value]; | ||
| 872 | } | ||
| 873 | |||
| 874 | sub TargetAddress__stringify { | ||
| 875 | my ($union, $tab) = @_; | ||
| 876 | $tab = q{} unless defined ($tab); | ||
| 877 | croak "undefined value for 'TargetAddress'.\n" | ||
| 878 | unless (defined $union); | ||
| 879 | croak "invalid union for 'TargetAddress' (not a ARRAY reference).\n" | ||
| 880 | unless (ref $union eq 'ARRAY'); | ||
| 881 | croak "invalid union 'TargetAddress'.\n" | ||
| 882 | unless (scalar(@{$union}) == 2); | ||
| 883 | my $d = ${$union}[0]; | ||
| 884 | my $value = ${$union}[1]; | ||
| 885 | my $str = "union TargetAddress {"; | ||
| 886 | if (0) { | ||
| 887 | # empty | ||
| 888 | } | ||
| 889 | elsif ($d == CORBA::Perl::GIOP::KeyAddr()) { | ||
| 890 | $str .= "\n$tab sequence_CORBA_Perl_CORBA_octet object_key = "; | ||
| 891 | $str .= CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__stringify($value, $tab . " "); | ||
| 892 | } | ||
| 893 | elsif ($d == CORBA::Perl::GIOP::ProfileAddr()) { | ||
| 894 | $str .= "\n$tab TaggedProfile profile = "; | ||
| 895 | $str .= CORBA::Perl::IOP::TaggedProfile__stringify($value, $tab . " "); | ||
| 896 | } | ||
| 897 | elsif ($d == CORBA::Perl::GIOP::ReferenceAddr()) { | ||
| 898 | $str .= "\n$tab IORAddressingInfo ior = "; | ||
| 899 | $str .= CORBA::Perl::GIOP::IORAddressingInfo__stringify($value, $tab . " "); | ||
| 900 | } | ||
| 901 | else { | ||
| 902 | croak "invalid discriminator ($d) for 'TargetAddress'.\n"; | ||
| 903 | } | ||
| 904 | $str .= "\n$tab}"; | ||
| 905 | return $str; | ||
| 906 | } | ||
| 907 | |||
| 908 | sub TargetAddress__id () { | ||
| 909 | return "IDL:omg.org/GIOP/TargetAddress:1.0"; | ||
| 910 | } | ||
| 911 | |||
| 912 | # CORBA::Perl::GIOP::RequestHeader_1_2 (struct) | ||
| 913 | sub RequestHeader_1_2__marshal { | ||
| 914 | my ($r_buffer, $value) = @_; | ||
| 915 | croak "undefined value for 'RequestHeader_1_2'.\n" | ||
| 916 | unless (defined $value); | ||
| 917 | croak "invalid struct for 'RequestHeader_1_2' (not a HASH reference).\n" | ||
| 918 | unless (ref $value eq 'HASH'); | ||
| 919 | croak "no member 'request_id' in structure 'RequestHeader_1_2'.\n" | ||
| 920 | unless (exists $value->{request_id}); | ||
| 921 | croak "no member 'response_flags' in structure 'RequestHeader_1_2'.\n" | ||
| 922 | unless (exists $value->{response_flags}); | ||
| 923 | croak "no member 'reserved' in structure 'RequestHeader_1_2'.\n" | ||
| 924 | unless (exists $value->{reserved}); | ||
| 925 | croak "no member 'target' in structure 'RequestHeader_1_2'.\n" | ||
| 926 | unless (exists $value->{target}); | ||
| 927 | croak "no member 'operation' in structure 'RequestHeader_1_2'.\n" | ||
| 928 | unless (exists $value->{operation}); | ||
| 929 | croak "no member 'service_context' in structure 'RequestHeader_1_2'.\n" | ||
| 930 | unless (exists $value->{service_context}); | ||
| 931 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{request_id}); | ||
| 932 | CORBA::Perl::CORBA::octet__marshal($r_buffer, $value->{response_flags}); | ||
| 933 | local $_ = $value->{reserved}; | ||
| 934 | croak "bad size of array 'reserved'.\n" | ||
| 935 | unless (scalar(@{$_}) == 3); | ||
| 936 | foreach (@{$_}) { | ||
| 937 | CORBA::Perl::CORBA::octet__marshal($r_buffer, $_); | ||
| 938 | } | ||
| 939 | CORBA::Perl::GIOP::TargetAddress__marshal($r_buffer, $value->{target}); | ||
| 940 | CORBA::Perl::CORBA::string__marshal($r_buffer, $value->{operation}); | ||
| 941 | CORBA::Perl::IOP::ServiceContextList__marshal($r_buffer, $value->{service_context}); | ||
| 942 | } | ||
| 943 | |||
| 944 | sub RequestHeader_1_2__demarshal { | ||
| 945 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 946 | my $value = {}; | ||
| 947 | $value->{request_id} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 948 | $value->{response_flags} = CORBA::Perl::CORBA::octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 949 | my @reserved_array1 = (); | ||
| 950 | for (my $idx1 = 0; $idx1 < 3; $idx1++) { | ||
| 951 | push @reserved_array1, CORBA::Perl::CORBA::octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 952 | } | ||
| 953 | $value->{reserved} = \@reserved_array1; | ||
| 954 | $value->{target} = CORBA::Perl::GIOP::TargetAddress__demarshal($r_buffer, $r_offset, $endian); | ||
| 955 | $value->{operation} = CORBA::Perl::CORBA::string__demarshal($r_buffer, $r_offset, $endian); | ||
| 956 | $value->{service_context} = CORBA::Perl::IOP::ServiceContextList__demarshal($r_buffer, $r_offset, $endian); | ||
| 957 | return $value; | ||
| 958 | } | ||
| 959 | |||
| 960 | sub RequestHeader_1_2__stringify { | ||
| 961 | my ($value, $tab) = @_; | ||
| 962 | $tab = q{} unless defined ($tab); | ||
| 963 | croak "undefined value for 'RequestHeader_1_2'.\n" | ||
| 964 | unless (defined $value); | ||
| 965 | croak "invalid struct for 'RequestHeader_1_2' (not a HASH reference).\n" | ||
| 966 | unless (ref $value eq 'HASH'); | ||
| 967 | croak "no member 'request_id' in structure 'RequestHeader_1_2'.\n" | ||
| 968 | unless (exists $value->{request_id}); | ||
| 969 | croak "no member 'response_flags' in structure 'RequestHeader_1_2'.\n" | ||
| 970 | unless (exists $value->{response_flags}); | ||
| 971 | croak "no member 'reserved' in structure 'RequestHeader_1_2'.\n" | ||
| 972 | unless (exists $value->{reserved}); | ||
| 973 | croak "no member 'target' in structure 'RequestHeader_1_2'.\n" | ||
| 974 | unless (exists $value->{target}); | ||
| 975 | croak "no member 'operation' in structure 'RequestHeader_1_2'.\n" | ||
| 976 | unless (exists $value->{operation}); | ||
| 977 | croak "no member 'service_context' in structure 'RequestHeader_1_2'.\n" | ||
| 978 | unless (exists $value->{service_context}); | ||
| 979 | my $str = "struct RequestHeader_1_2 {"; | ||
| 980 | $str .= "\n$tab unsigned_long request_id = "; | ||
| 981 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{request_id}, $tab . " "); | ||
| 982 | $str .= ','; | ||
| 983 | $str .= "\n$tab octet response_flags = "; | ||
| 984 | $str .= CORBA::Perl::CORBA::octet__stringify($value->{response_flags}, $tab . " "); | ||
| 985 | $str .= ','; | ||
| 986 | $str .= "\n$tab octet[] reserved = "; | ||
| 987 | local $_ = $value->{reserved}; | ||
| 988 | croak "bad size of array 'reserved'.\n" | ||
| 989 | unless (scalar(@{$_}) == 3); | ||
| 990 | $str .= "{"; | ||
| 991 | my $first1 = 1; | ||
| 992 | foreach (@{$_}) { | ||
| 993 | if ($first1) { | ||
| 994 | $first1 = 0; | ||
| 995 | } | ||
| 996 | else { | ||
| 997 | $str .= ","; | ||
| 998 | } | ||
| 999 | $str .= CORBA::Perl::CORBA::octet__stringify($_, $tab . " "); | ||
| 1000 | } | ||
| 1001 | $str .= "}"; | ||
| 1002 | $str .= ','; | ||
| 1003 | $str .= "\n$tab TargetAddress target = "; | ||
| 1004 | $str .= CORBA::Perl::GIOP::TargetAddress__stringify($value->{target}, $tab . " "); | ||
| 1005 | $str .= ','; | ||
| 1006 | $str .= "\n$tab string operation = "; | ||
| 1007 | $str .= CORBA::Perl::CORBA::string__stringify($value->{operation}, $tab . " "); | ||
| 1008 | $str .= ','; | ||
| 1009 | $str .= "\n$tab ServiceContextList service_context = "; | ||
| 1010 | $str .= CORBA::Perl::IOP::ServiceContextList__stringify($value->{service_context}, $tab . " "); | ||
| 1011 | $str .= "\n$tab}"; | ||
| 1012 | return $str; | ||
| 1013 | } | ||
| 1014 | |||
| 1015 | sub RequestHeader_1_2__id () { | ||
| 1016 | return "IDL:omg.org/GIOP/RequestHeader_1_2:1.0"; | ||
| 1017 | } | ||
| 1018 | |||
| 1019 | # CORBA::Perl::GIOP::RequestHeader_1_3 (typedef) | ||
| 1020 | sub RequestHeader_1_3__marshal { | ||
| 1021 | my ($r_buffer, $value) = @_; | ||
| 1022 | croak "undefined value for 'RequestHeader_1_3'.\n" | ||
| 1023 | unless (defined $value); | ||
| 1024 | CORBA::Perl::GIOP::RequestHeader_1_2__marshal($r_buffer, $value); | ||
| 1025 | } | ||
| 1026 | |||
| 1027 | sub RequestHeader_1_3__demarshal { | ||
| 1028 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1029 | return CORBA::Perl::GIOP::RequestHeader_1_2__demarshal($r_buffer, $r_offset, $endian); | ||
| 1030 | } | ||
| 1031 | |||
| 1032 | sub RequestHeader_1_3__stringify { | ||
| 1033 | my ($value, $tab) = @_; | ||
| 1034 | croak "undefined value for 'RequestHeader_1_3'.\n" | ||
| 1035 | unless (defined $value); | ||
| 1036 | return CORBA::Perl::GIOP::RequestHeader_1_2__stringify($value, $tab); | ||
| 1037 | } | ||
| 1038 | |||
| 1039 | sub RequestHeader_1_3__id () { | ||
| 1040 | return "IDL:omg.org/GIOP/RequestHeader_1_3:1.0"; | ||
| 1041 | } | ||
| 1042 | |||
| 1043 | # CORBA::Perl::GIOP::ReplyStatusType_1_2 (enum) | ||
| 1044 | sub ReplyStatusType_1_2__marshal { | ||
| 1045 | my ($r_buffer, $value) = @_; | ||
| 1046 | if (0) { | ||
| 1047 | } | ||
| 1048 | elsif ($value eq 'NO_EXCEPTION') { | ||
| 1049 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 0); | ||
| 1050 | } | ||
| 1051 | elsif ($value eq 'USER_EXCEPTION') { | ||
| 1052 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 1); | ||
| 1053 | } | ||
| 1054 | elsif ($value eq 'SYSTEM_EXCEPTION') { | ||
| 1055 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 2); | ||
| 1056 | } | ||
| 1057 | elsif ($value eq 'LOCATION_FORWARD') { | ||
| 1058 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 3); | ||
| 1059 | } | ||
| 1060 | elsif ($value eq 'LOCATION_FORWARD_PERM') { | ||
| 1061 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 4); | ||
| 1062 | } | ||
| 1063 | elsif ($value eq 'NEEDS_ADDRESSING_MODE') { | ||
| 1064 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 5); | ||
| 1065 | } | ||
| 1066 | else { | ||
| 1067 | croak "bad value for 'CORBA::Perl::GIOP::ReplyStatusType_1_2'.\n"; | ||
| 1068 | } | ||
| 1069 | } | ||
| 1070 | |||
| 1071 | sub ReplyStatusType_1_2__demarshal { | ||
| 1072 | my $value = CORBA::Perl::CORBA::unsigned_long__demarshal(@_); | ||
| 1073 | if (0) { | ||
| 1074 | } | ||
| 1075 | elsif ($value == 0) { | ||
| 1076 | return 'NO_EXCEPTION'; | ||
| 1077 | } | ||
| 1078 | elsif ($value == 1) { | ||
| 1079 | return 'USER_EXCEPTION'; | ||
| 1080 | } | ||
| 1081 | elsif ($value == 2) { | ||
| 1082 | return 'SYSTEM_EXCEPTION'; | ||
| 1083 | } | ||
| 1084 | elsif ($value == 3) { | ||
| 1085 | return 'LOCATION_FORWARD'; | ||
| 1086 | } | ||
| 1087 | elsif ($value == 4) { | ||
| 1088 | return 'LOCATION_FORWARD_PERM'; | ||
| 1089 | } | ||
| 1090 | elsif ($value == 5) { | ||
| 1091 | return 'NEEDS_ADDRESSING_MODE'; | ||
| 1092 | } | ||
| 1093 | else { | ||
| 1094 | croak "bad value for 'CORBA::Perl::GIOP::ReplyStatusType_1_2'.\n"; | ||
| 1095 | } | ||
| 1096 | } | ||
| 1097 | |||
| 1098 | sub ReplyStatusType_1_2__stringify { | ||
| 1099 | my ($value) = @_; | ||
| 1100 | return $value; | ||
| 1101 | } | ||
| 1102 | |||
| 1103 | sub ReplyStatusType_1_2__id () { | ||
| 1104 | return "IDL:omg.org/GIOP/ReplyStatusType_1_2:1.0"; | ||
| 1105 | } | ||
| 1106 | |||
| 1107 | sub NO_EXCEPTION () { | ||
| 1108 | return 'NO_EXCEPTION'; | ||
| 1109 | } | ||
| 1110 | sub USER_EXCEPTION () { | ||
| 1111 | return 'USER_EXCEPTION'; | ||
| 1112 | } | ||
| 1113 | sub SYSTEM_EXCEPTION () { | ||
| 1114 | return 'SYSTEM_EXCEPTION'; | ||
| 1115 | } | ||
| 1116 | sub LOCATION_FORWARD () { | ||
| 1117 | return 'LOCATION_FORWARD'; | ||
| 1118 | } | ||
| 1119 | sub LOCATION_FORWARD_PERM () { | ||
| 1120 | return 'LOCATION_FORWARD_PERM'; | ||
| 1121 | } | ||
| 1122 | sub NEEDS_ADDRESSING_MODE () { | ||
| 1123 | return 'NEEDS_ADDRESSING_MODE'; | ||
| 1124 | } | ||
| 1125 | |||
| 1126 | # CORBA::Perl::GIOP::ReplyHeader_1_2 (struct) | ||
| 1127 | sub ReplyHeader_1_2__marshal { | ||
| 1128 | my ($r_buffer, $value) = @_; | ||
| 1129 | croak "undefined value for 'ReplyHeader_1_2'.\n" | ||
| 1130 | unless (defined $value); | ||
| 1131 | croak "invalid struct for 'ReplyHeader_1_2' (not a HASH reference).\n" | ||
| 1132 | unless (ref $value eq 'HASH'); | ||
| 1133 | croak "no member 'request_id' in structure 'ReplyHeader_1_2'.\n" | ||
| 1134 | unless (exists $value->{request_id}); | ||
| 1135 | croak "no member 'reply_status' in structure 'ReplyHeader_1_2'.\n" | ||
| 1136 | unless (exists $value->{reply_status}); | ||
| 1137 | croak "no member 'service_context' in structure 'ReplyHeader_1_2'.\n" | ||
| 1138 | unless (exists $value->{service_context}); | ||
| 1139 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{request_id}); | ||
| 1140 | CORBA::Perl::GIOP::ReplyStatusType_1_2__marshal($r_buffer, $value->{reply_status}); | ||
| 1141 | CORBA::Perl::IOP::ServiceContextList__marshal($r_buffer, $value->{service_context}); | ||
| 1142 | } | ||
| 1143 | |||
| 1144 | sub ReplyHeader_1_2__demarshal { | ||
| 1145 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1146 | my $value = {}; | ||
| 1147 | $value->{request_id} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 1148 | $value->{reply_status} = CORBA::Perl::GIOP::ReplyStatusType_1_2__demarshal($r_buffer, $r_offset, $endian); | ||
| 1149 | $value->{service_context} = CORBA::Perl::IOP::ServiceContextList__demarshal($r_buffer, $r_offset, $endian); | ||
| 1150 | return $value; | ||
| 1151 | } | ||
| 1152 | |||
| 1153 | sub ReplyHeader_1_2__stringify { | ||
| 1154 | my ($value, $tab) = @_; | ||
| 1155 | $tab = q{} unless defined ($tab); | ||
| 1156 | croak "undefined value for 'ReplyHeader_1_2'.\n" | ||
| 1157 | unless (defined $value); | ||
| 1158 | croak "invalid struct for 'ReplyHeader_1_2' (not a HASH reference).\n" | ||
| 1159 | unless (ref $value eq 'HASH'); | ||
| 1160 | croak "no member 'request_id' in structure 'ReplyHeader_1_2'.\n" | ||
| 1161 | unless (exists $value->{request_id}); | ||
| 1162 | croak "no member 'reply_status' in structure 'ReplyHeader_1_2'.\n" | ||
| 1163 | unless (exists $value->{reply_status}); | ||
| 1164 | croak "no member 'service_context' in structure 'ReplyHeader_1_2'.\n" | ||
| 1165 | unless (exists $value->{service_context}); | ||
| 1166 | my $str = "struct ReplyHeader_1_2 {"; | ||
| 1167 | $str .= "\n$tab unsigned_long request_id = "; | ||
| 1168 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{request_id}, $tab . " "); | ||
| 1169 | $str .= ','; | ||
| 1170 | $str .= "\n$tab ReplyStatusType_1_2 reply_status = "; | ||
| 1171 | $str .= CORBA::Perl::GIOP::ReplyStatusType_1_2__stringify($value->{reply_status}, $tab . " "); | ||
| 1172 | $str .= ','; | ||
| 1173 | $str .= "\n$tab ServiceContextList service_context = "; | ||
| 1174 | $str .= CORBA::Perl::IOP::ServiceContextList__stringify($value->{service_context}, $tab . " "); | ||
| 1175 | $str .= "\n$tab}"; | ||
| 1176 | return $str; | ||
| 1177 | } | ||
| 1178 | |||
| 1179 | sub ReplyHeader_1_2__id () { | ||
| 1180 | return "IDL:omg.org/GIOP/ReplyHeader_1_2:1.0"; | ||
| 1181 | } | ||
| 1182 | |||
| 1183 | # CORBA::Perl::GIOP::ReplyHeader_1_3 (typedef) | ||
| 1184 | sub ReplyHeader_1_3__marshal { | ||
| 1185 | my ($r_buffer, $value) = @_; | ||
| 1186 | croak "undefined value for 'ReplyHeader_1_3'.\n" | ||
| 1187 | unless (defined $value); | ||
| 1188 | CORBA::Perl::GIOP::ReplyHeader_1_2__marshal($r_buffer, $value); | ||
| 1189 | } | ||
| 1190 | |||
| 1191 | sub ReplyHeader_1_3__demarshal { | ||
| 1192 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1193 | return CORBA::Perl::GIOP::ReplyHeader_1_2__demarshal($r_buffer, $r_offset, $endian); | ||
| 1194 | } | ||
| 1195 | |||
| 1196 | sub ReplyHeader_1_3__stringify { | ||
| 1197 | my ($value, $tab) = @_; | ||
| 1198 | croak "undefined value for 'ReplyHeader_1_3'.\n" | ||
| 1199 | unless (defined $value); | ||
| 1200 | return CORBA::Perl::GIOP::ReplyHeader_1_2__stringify($value, $tab); | ||
| 1201 | } | ||
| 1202 | |||
| 1203 | sub ReplyHeader_1_3__id () { | ||
| 1204 | return "IDL:omg.org/GIOP/ReplyHeader_1_3:1.0"; | ||
| 1205 | } | ||
| 1206 | |||
| 1207 | # CORBA::Perl::GIOP::SystemExceptionReplyBody (struct) | ||
| 1208 | sub SystemExceptionReplyBody__marshal { | ||
| 1209 | my ($r_buffer, $value) = @_; | ||
| 1210 | croak "undefined value for 'SystemExceptionReplyBody'.\n" | ||
| 1211 | unless (defined $value); | ||
| 1212 | croak "invalid struct for 'SystemExceptionReplyBody' (not a HASH reference).\n" | ||
| 1213 | unless (ref $value eq 'HASH'); | ||
| 1214 | croak "no member 'exception_id' in structure 'SystemExceptionReplyBody'.\n" | ||
| 1215 | unless (exists $value->{exception_id}); | ||
| 1216 | croak "no member 'minor_code_value' in structure 'SystemExceptionReplyBody'.\n" | ||
| 1217 | unless (exists $value->{minor_code_value}); | ||
| 1218 | croak "no member 'completion_status' in structure 'SystemExceptionReplyBody'.\n" | ||
| 1219 | unless (exists $value->{completion_status}); | ||
| 1220 | CORBA::Perl::CORBA::string__marshal($r_buffer, $value->{exception_id}); | ||
| 1221 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{minor_code_value}); | ||
| 1222 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{completion_status}); | ||
| 1223 | } | ||
| 1224 | |||
| 1225 | sub SystemExceptionReplyBody__demarshal { | ||
| 1226 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1227 | my $value = {}; | ||
| 1228 | $value->{exception_id} = CORBA::Perl::CORBA::string__demarshal($r_buffer, $r_offset, $endian); | ||
| 1229 | $value->{minor_code_value} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 1230 | $value->{completion_status} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 1231 | return $value; | ||
| 1232 | } | ||
| 1233 | |||
| 1234 | sub SystemExceptionReplyBody__stringify { | ||
| 1235 | my ($value, $tab) = @_; | ||
| 1236 | $tab = q{} unless defined ($tab); | ||
| 1237 | croak "undefined value for 'SystemExceptionReplyBody'.\n" | ||
| 1238 | unless (defined $value); | ||
| 1239 | croak "invalid struct for 'SystemExceptionReplyBody' (not a HASH reference).\n" | ||
| 1240 | unless (ref $value eq 'HASH'); | ||
| 1241 | croak "no member 'exception_id' in structure 'SystemExceptionReplyBody'.\n" | ||
| 1242 | unless (exists $value->{exception_id}); | ||
| 1243 | croak "no member 'minor_code_value' in structure 'SystemExceptionReplyBody'.\n" | ||
| 1244 | unless (exists $value->{minor_code_value}); | ||
| 1245 | croak "no member 'completion_status' in structure 'SystemExceptionReplyBody'.\n" | ||
| 1246 | unless (exists $value->{completion_status}); | ||
| 1247 | my $str = "struct SystemExceptionReplyBody {"; | ||
| 1248 | $str .= "\n$tab string exception_id = "; | ||
| 1249 | $str .= CORBA::Perl::CORBA::string__stringify($value->{exception_id}, $tab . " "); | ||
| 1250 | $str .= ','; | ||
| 1251 | $str .= "\n$tab unsigned_long minor_code_value = "; | ||
| 1252 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{minor_code_value}, $tab . " "); | ||
| 1253 | $str .= ','; | ||
| 1254 | $str .= "\n$tab unsigned_long completion_status = "; | ||
| 1255 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{completion_status}, $tab . " "); | ||
| 1256 | $str .= "\n$tab}"; | ||
| 1257 | return $str; | ||
| 1258 | } | ||
| 1259 | |||
| 1260 | sub SystemExceptionReplyBody__id () { | ||
| 1261 | return "IDL:omg.org/GIOP/SystemExceptionReplyBody:1.0"; | ||
| 1262 | } | ||
| 1263 | |||
| 1264 | # CORBA::Perl::GIOP::CancelRequestHeader (struct) | ||
| 1265 | sub CancelRequestHeader__marshal { | ||
| 1266 | my ($r_buffer, $value) = @_; | ||
| 1267 | croak "undefined value for 'CancelRequestHeader'.\n" | ||
| 1268 | unless (defined $value); | ||
| 1269 | croak "invalid struct for 'CancelRequestHeader' (not a HASH reference).\n" | ||
| 1270 | unless (ref $value eq 'HASH'); | ||
| 1271 | croak "no member 'request_id' in structure 'CancelRequestHeader'.\n" | ||
| 1272 | unless (exists $value->{request_id}); | ||
| 1273 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{request_id}); | ||
| 1274 | } | ||
| 1275 | |||
| 1276 | sub CancelRequestHeader__demarshal { | ||
| 1277 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1278 | my $value = {}; | ||
| 1279 | $value->{request_id} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 1280 | return $value; | ||
| 1281 | } | ||
| 1282 | |||
| 1283 | sub CancelRequestHeader__stringify { | ||
| 1284 | my ($value, $tab) = @_; | ||
| 1285 | $tab = q{} unless defined ($tab); | ||
| 1286 | croak "undefined value for 'CancelRequestHeader'.\n" | ||
| 1287 | unless (defined $value); | ||
| 1288 | croak "invalid struct for 'CancelRequestHeader' (not a HASH reference).\n" | ||
| 1289 | unless (ref $value eq 'HASH'); | ||
| 1290 | croak "no member 'request_id' in structure 'CancelRequestHeader'.\n" | ||
| 1291 | unless (exists $value->{request_id}); | ||
| 1292 | my $str = "struct CancelRequestHeader {"; | ||
| 1293 | $str .= "\n$tab unsigned_long request_id = "; | ||
| 1294 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{request_id}, $tab . " "); | ||
| 1295 | $str .= "\n$tab}"; | ||
| 1296 | return $str; | ||
| 1297 | } | ||
| 1298 | |||
| 1299 | sub CancelRequestHeader__id () { | ||
| 1300 | return "IDL:omg.org/GIOP/CancelRequestHeader:1.0"; | ||
| 1301 | } | ||
| 1302 | |||
| 1303 | # CORBA::Perl::GIOP::LocateRequestHeader_1_0 (struct) | ||
| 1304 | sub LocateRequestHeader_1_0__marshal { | ||
| 1305 | my ($r_buffer, $value) = @_; | ||
| 1306 | croak "undefined value for 'LocateRequestHeader_1_0'.\n" | ||
| 1307 | unless (defined $value); | ||
| 1308 | croak "invalid struct for 'LocateRequestHeader_1_0' (not a HASH reference).\n" | ||
| 1309 | unless (ref $value eq 'HASH'); | ||
| 1310 | croak "no member 'request_id' in structure 'LocateRequestHeader_1_0'.\n" | ||
| 1311 | unless (exists $value->{request_id}); | ||
| 1312 | croak "no member 'object_key' in structure 'LocateRequestHeader_1_0'.\n" | ||
| 1313 | unless (exists $value->{object_key}); | ||
| 1314 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{request_id}); | ||
| 1315 | CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__marshal($r_buffer, $value->{object_key}); | ||
| 1316 | } | ||
| 1317 | |||
| 1318 | sub LocateRequestHeader_1_0__demarshal { | ||
| 1319 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1320 | my $value = {}; | ||
| 1321 | $value->{request_id} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 1322 | $value->{object_key} = CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__demarshal($r_buffer, $r_offset, $endian); | ||
| 1323 | return $value; | ||
| 1324 | } | ||
| 1325 | |||
| 1326 | sub LocateRequestHeader_1_0__stringify { | ||
| 1327 | my ($value, $tab) = @_; | ||
| 1328 | $tab = q{} unless defined ($tab); | ||
| 1329 | croak "undefined value for 'LocateRequestHeader_1_0'.\n" | ||
| 1330 | unless (defined $value); | ||
| 1331 | croak "invalid struct for 'LocateRequestHeader_1_0' (not a HASH reference).\n" | ||
| 1332 | unless (ref $value eq 'HASH'); | ||
| 1333 | croak "no member 'request_id' in structure 'LocateRequestHeader_1_0'.\n" | ||
| 1334 | unless (exists $value->{request_id}); | ||
| 1335 | croak "no member 'object_key' in structure 'LocateRequestHeader_1_0'.\n" | ||
| 1336 | unless (exists $value->{object_key}); | ||
| 1337 | my $str = "struct LocateRequestHeader_1_0 {"; | ||
| 1338 | $str .= "\n$tab unsigned_long request_id = "; | ||
| 1339 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{request_id}, $tab . " "); | ||
| 1340 | $str .= ','; | ||
| 1341 | $str .= "\n$tab sequence_CORBA_Perl_CORBA_octet object_key = "; | ||
| 1342 | $str .= CORBA::Perl::GIOP::sequence_CORBA_Perl_CORBA_octet__stringify($value->{object_key}, $tab . " "); | ||
| 1343 | $str .= "\n$tab}"; | ||
| 1344 | return $str; | ||
| 1345 | } | ||
| 1346 | |||
| 1347 | sub LocateRequestHeader_1_0__id () { | ||
| 1348 | return "IDL:omg.org/GIOP/LocateRequestHeader_1_0:1.0"; | ||
| 1349 | } | ||
| 1350 | |||
| 1351 | # CORBA::Perl::GIOP::LocateRequestHeader_1_1 (typedef) | ||
| 1352 | sub LocateRequestHeader_1_1__marshal { | ||
| 1353 | my ($r_buffer, $value) = @_; | ||
| 1354 | croak "undefined value for 'LocateRequestHeader_1_1'.\n" | ||
| 1355 | unless (defined $value); | ||
| 1356 | CORBA::Perl::GIOP::LocateRequestHeader_1_0__marshal($r_buffer, $value); | ||
| 1357 | } | ||
| 1358 | |||
| 1359 | sub LocateRequestHeader_1_1__demarshal { | ||
| 1360 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1361 | return CORBA::Perl::GIOP::LocateRequestHeader_1_0__demarshal($r_buffer, $r_offset, $endian); | ||
| 1362 | } | ||
| 1363 | |||
| 1364 | sub LocateRequestHeader_1_1__stringify { | ||
| 1365 | my ($value, $tab) = @_; | ||
| 1366 | croak "undefined value for 'LocateRequestHeader_1_1'.\n" | ||
| 1367 | unless (defined $value); | ||
| 1368 | return CORBA::Perl::GIOP::LocateRequestHeader_1_0__stringify($value, $tab); | ||
| 1369 | } | ||
| 1370 | |||
| 1371 | sub LocateRequestHeader_1_1__id () { | ||
| 1372 | return "IDL:omg.org/GIOP/LocateRequestHeader_1_1:1.0"; | ||
| 1373 | } | ||
| 1374 | |||
| 1375 | # CORBA::Perl::GIOP::LocateRequestHeader_1_2 (struct) | ||
| 1376 | sub LocateRequestHeader_1_2__marshal { | ||
| 1377 | my ($r_buffer, $value) = @_; | ||
| 1378 | croak "undefined value for 'LocateRequestHeader_1_2'.\n" | ||
| 1379 | unless (defined $value); | ||
| 1380 | croak "invalid struct for 'LocateRequestHeader_1_2' (not a HASH reference).\n" | ||
| 1381 | unless (ref $value eq 'HASH'); | ||
| 1382 | croak "no member 'request_id' in structure 'LocateRequestHeader_1_2'.\n" | ||
| 1383 | unless (exists $value->{request_id}); | ||
| 1384 | croak "no member 'target' in structure 'LocateRequestHeader_1_2'.\n" | ||
| 1385 | unless (exists $value->{target}); | ||
| 1386 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{request_id}); | ||
| 1387 | CORBA::Perl::GIOP::TargetAddress__marshal($r_buffer, $value->{target}); | ||
| 1388 | } | ||
| 1389 | |||
| 1390 | sub LocateRequestHeader_1_2__demarshal { | ||
| 1391 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1392 | my $value = {}; | ||
| 1393 | $value->{request_id} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 1394 | $value->{target} = CORBA::Perl::GIOP::TargetAddress__demarshal($r_buffer, $r_offset, $endian); | ||
| 1395 | return $value; | ||
| 1396 | } | ||
| 1397 | |||
| 1398 | sub LocateRequestHeader_1_2__stringify { | ||
| 1399 | my ($value, $tab) = @_; | ||
| 1400 | $tab = q{} unless defined ($tab); | ||
| 1401 | croak "undefined value for 'LocateRequestHeader_1_2'.\n" | ||
| 1402 | unless (defined $value); | ||
| 1403 | croak "invalid struct for 'LocateRequestHeader_1_2' (not a HASH reference).\n" | ||
| 1404 | unless (ref $value eq 'HASH'); | ||
| 1405 | croak "no member 'request_id' in structure 'LocateRequestHeader_1_2'.\n" | ||
| 1406 | unless (exists $value->{request_id}); | ||
| 1407 | croak "no member 'target' in structure 'LocateRequestHeader_1_2'.\n" | ||
| 1408 | unless (exists $value->{target}); | ||
| 1409 | my $str = "struct LocateRequestHeader_1_2 {"; | ||
| 1410 | $str .= "\n$tab unsigned_long request_id = "; | ||
| 1411 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{request_id}, $tab . " "); | ||
| 1412 | $str .= ','; | ||
| 1413 | $str .= "\n$tab TargetAddress target = "; | ||
| 1414 | $str .= CORBA::Perl::GIOP::TargetAddress__stringify($value->{target}, $tab . " "); | ||
| 1415 | $str .= "\n$tab}"; | ||
| 1416 | return $str; | ||
| 1417 | } | ||
| 1418 | |||
| 1419 | sub LocateRequestHeader_1_2__id () { | ||
| 1420 | return "IDL:omg.org/GIOP/LocateRequestHeader_1_2:1.0"; | ||
| 1421 | } | ||
| 1422 | |||
| 1423 | # CORBA::Perl::GIOP::LocateRequestHeader_1_3 (typedef) | ||
| 1424 | sub LocateRequestHeader_1_3__marshal { | ||
| 1425 | my ($r_buffer, $value) = @_; | ||
| 1426 | croak "undefined value for 'LocateRequestHeader_1_3'.\n" | ||
| 1427 | unless (defined $value); | ||
| 1428 | CORBA::Perl::GIOP::LocateRequestHeader_1_2__marshal($r_buffer, $value); | ||
| 1429 | } | ||
| 1430 | |||
| 1431 | sub LocateRequestHeader_1_3__demarshal { | ||
| 1432 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1433 | return CORBA::Perl::GIOP::LocateRequestHeader_1_2__demarshal($r_buffer, $r_offset, $endian); | ||
| 1434 | } | ||
| 1435 | |||
| 1436 | sub LocateRequestHeader_1_3__stringify { | ||
| 1437 | my ($value, $tab) = @_; | ||
| 1438 | croak "undefined value for 'LocateRequestHeader_1_3'.\n" | ||
| 1439 | unless (defined $value); | ||
| 1440 | return CORBA::Perl::GIOP::LocateRequestHeader_1_2__stringify($value, $tab); | ||
| 1441 | } | ||
| 1442 | |||
| 1443 | sub LocateRequestHeader_1_3__id () { | ||
| 1444 | return "IDL:omg.org/GIOP/LocateRequestHeader_1_3:1.0"; | ||
| 1445 | } | ||
| 1446 | |||
| 1447 | # CORBA::Perl::GIOP::LocateStatusType_1_2 (enum) | ||
| 1448 | sub LocateStatusType_1_2__marshal { | ||
| 1449 | my ($r_buffer, $value) = @_; | ||
| 1450 | if (0) { | ||
| 1451 | } | ||
| 1452 | elsif ($value eq 'UNKNOWN_OBJECT') { | ||
| 1453 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 0); | ||
| 1454 | } | ||
| 1455 | elsif ($value eq 'OBJECT_HERE') { | ||
| 1456 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 1); | ||
| 1457 | } | ||
| 1458 | elsif ($value eq 'OBJECT_FORWARD') { | ||
| 1459 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 2); | ||
| 1460 | } | ||
| 1461 | elsif ($value eq 'OBJECT_FORWARD_PERM') { | ||
| 1462 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 3); | ||
| 1463 | } | ||
| 1464 | elsif ($value eq 'LOC_SYSTEM_EXCEPTION') { | ||
| 1465 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 4); | ||
| 1466 | } | ||
| 1467 | elsif ($value eq 'LOC_NEEDS_ADDRESSING_MODE') { | ||
| 1468 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, 5); | ||
| 1469 | } | ||
| 1470 | else { | ||
| 1471 | croak "bad value for 'CORBA::Perl::GIOP::LocateStatusType_1_2'.\n"; | ||
| 1472 | } | ||
| 1473 | } | ||
| 1474 | |||
| 1475 | sub LocateStatusType_1_2__demarshal { | ||
| 1476 | my $value = CORBA::Perl::CORBA::unsigned_long__demarshal(@_); | ||
| 1477 | if (0) { | ||
| 1478 | } | ||
| 1479 | elsif ($value == 0) { | ||
| 1480 | return 'UNKNOWN_OBJECT'; | ||
| 1481 | } | ||
| 1482 | elsif ($value == 1) { | ||
| 1483 | return 'OBJECT_HERE'; | ||
| 1484 | } | ||
| 1485 | elsif ($value == 2) { | ||
| 1486 | return 'OBJECT_FORWARD'; | ||
| 1487 | } | ||
| 1488 | elsif ($value == 3) { | ||
| 1489 | return 'OBJECT_FORWARD_PERM'; | ||
| 1490 | } | ||
| 1491 | elsif ($value == 4) { | ||
| 1492 | return 'LOC_SYSTEM_EXCEPTION'; | ||
| 1493 | } | ||
| 1494 | elsif ($value == 5) { | ||
| 1495 | return 'LOC_NEEDS_ADDRESSING_MODE'; | ||
| 1496 | } | ||
| 1497 | else { | ||
| 1498 | croak "bad value for 'CORBA::Perl::GIOP::LocateStatusType_1_2'.\n"; | ||
| 1499 | } | ||
| 1500 | } | ||
| 1501 | |||
| 1502 | sub LocateStatusType_1_2__stringify { | ||
| 1503 | my ($value) = @_; | ||
| 1504 | return $value; | ||
| 1505 | } | ||
| 1506 | |||
| 1507 | sub LocateStatusType_1_2__id () { | ||
| 1508 | return "IDL:omg.org/GIOP/LocateStatusType_1_2:1.0"; | ||
| 1509 | } | ||
| 1510 | |||
| 1511 | sub UNKNOWN_OBJECT () { | ||
| 1512 | return 'UNKNOWN_OBJECT'; | ||
| 1513 | } | ||
| 1514 | sub OBJECT_HERE () { | ||
| 1515 | return 'OBJECT_HERE'; | ||
| 1516 | } | ||
| 1517 | sub OBJECT_FORWARD () { | ||
| 1518 | return 'OBJECT_FORWARD'; | ||
| 1519 | } | ||
| 1520 | sub OBJECT_FORWARD_PERM () { | ||
| 1521 | return 'OBJECT_FORWARD_PERM'; | ||
| 1522 | } | ||
| 1523 | sub LOC_SYSTEM_EXCEPTION () { | ||
| 1524 | return 'LOC_SYSTEM_EXCEPTION'; | ||
| 1525 | } | ||
| 1526 | sub LOC_NEEDS_ADDRESSING_MODE () { | ||
| 1527 | return 'LOC_NEEDS_ADDRESSING_MODE'; | ||
| 1528 | } | ||
| 1529 | |||
| 1530 | # CORBA::Perl::GIOP::LocateReplyHeader_1_2 (struct) | ||
| 1531 | sub LocateReplyHeader_1_2__marshal { | ||
| 1532 | my ($r_buffer, $value) = @_; | ||
| 1533 | croak "undefined value for 'LocateReplyHeader_1_2'.\n" | ||
| 1534 | unless (defined $value); | ||
| 1535 | croak "invalid struct for 'LocateReplyHeader_1_2' (not a HASH reference).\n" | ||
| 1536 | unless (ref $value eq 'HASH'); | ||
| 1537 | croak "no member 'request_id' in structure 'LocateReplyHeader_1_2'.\n" | ||
| 1538 | unless (exists $value->{request_id}); | ||
| 1539 | croak "no member 'locate_status' in structure 'LocateReplyHeader_1_2'.\n" | ||
| 1540 | unless (exists $value->{locate_status}); | ||
| 1541 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{request_id}); | ||
| 1542 | CORBA::Perl::GIOP::LocateStatusType_1_2__marshal($r_buffer, $value->{locate_status}); | ||
| 1543 | } | ||
| 1544 | |||
| 1545 | sub LocateReplyHeader_1_2__demarshal { | ||
| 1546 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1547 | my $value = {}; | ||
| 1548 | $value->{request_id} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 1549 | $value->{locate_status} = CORBA::Perl::GIOP::LocateStatusType_1_2__demarshal($r_buffer, $r_offset, $endian); | ||
| 1550 | return $value; | ||
| 1551 | } | ||
| 1552 | |||
| 1553 | sub LocateReplyHeader_1_2__stringify { | ||
| 1554 | my ($value, $tab) = @_; | ||
| 1555 | $tab = q{} unless defined ($tab); | ||
| 1556 | croak "undefined value for 'LocateReplyHeader_1_2'.\n" | ||
| 1557 | unless (defined $value); | ||
| 1558 | croak "invalid struct for 'LocateReplyHeader_1_2' (not a HASH reference).\n" | ||
| 1559 | unless (ref $value eq 'HASH'); | ||
| 1560 | croak "no member 'request_id' in structure 'LocateReplyHeader_1_2'.\n" | ||
| 1561 | unless (exists $value->{request_id}); | ||
| 1562 | croak "no member 'locate_status' in structure 'LocateReplyHeader_1_2'.\n" | ||
| 1563 | unless (exists $value->{locate_status}); | ||
| 1564 | my $str = "struct LocateReplyHeader_1_2 {"; | ||
| 1565 | $str .= "\n$tab unsigned_long request_id = "; | ||
| 1566 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{request_id}, $tab . " "); | ||
| 1567 | $str .= ','; | ||
| 1568 | $str .= "\n$tab LocateStatusType_1_2 locate_status = "; | ||
| 1569 | $str .= CORBA::Perl::GIOP::LocateStatusType_1_2__stringify($value->{locate_status}, $tab . " "); | ||
| 1570 | $str .= "\n$tab}"; | ||
| 1571 | return $str; | ||
| 1572 | } | ||
| 1573 | |||
| 1574 | sub LocateReplyHeader_1_2__id () { | ||
| 1575 | return "IDL:omg.org/GIOP/LocateReplyHeader_1_2:1.0"; | ||
| 1576 | } | ||
| 1577 | |||
| 1578 | # CORBA::Perl::GIOP::LocateReplyHeader_1_3 (typedef) | ||
| 1579 | sub LocateReplyHeader_1_3__marshal { | ||
| 1580 | my ($r_buffer, $value) = @_; | ||
| 1581 | croak "undefined value for 'LocateReplyHeader_1_3'.\n" | ||
| 1582 | unless (defined $value); | ||
| 1583 | CORBA::Perl::GIOP::LocateReplyHeader_1_2__marshal($r_buffer, $value); | ||
| 1584 | } | ||
| 1585 | |||
| 1586 | sub LocateReplyHeader_1_3__demarshal { | ||
| 1587 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1588 | return CORBA::Perl::GIOP::LocateReplyHeader_1_2__demarshal($r_buffer, $r_offset, $endian); | ||
| 1589 | } | ||
| 1590 | |||
| 1591 | sub LocateReplyHeader_1_3__stringify { | ||
| 1592 | my ($value, $tab) = @_; | ||
| 1593 | croak "undefined value for 'LocateReplyHeader_1_3'.\n" | ||
| 1594 | unless (defined $value); | ||
| 1595 | return CORBA::Perl::GIOP::LocateReplyHeader_1_2__stringify($value, $tab); | ||
| 1596 | } | ||
| 1597 | |||
| 1598 | sub LocateReplyHeader_1_3__id () { | ||
| 1599 | return "IDL:omg.org/GIOP/LocateReplyHeader_1_3:1.0"; | ||
| 1600 | } | ||
| 1601 | |||
| 1602 | # CORBA::Perl::GIOP::FragmentHeader_1_2 (struct) | ||
| 1603 | sub FragmentHeader_1_2__marshal { | ||
| 1604 | my ($r_buffer, $value) = @_; | ||
| 1605 | croak "undefined value for 'FragmentHeader_1_2'.\n" | ||
| 1606 | unless (defined $value); | ||
| 1607 | croak "invalid struct for 'FragmentHeader_1_2' (not a HASH reference).\n" | ||
| 1608 | unless (ref $value eq 'HASH'); | ||
| 1609 | croak "no member 'request_id' in structure 'FragmentHeader_1_2'.\n" | ||
| 1610 | unless (exists $value->{request_id}); | ||
| 1611 | CORBA::Perl::CORBA::unsigned_long__marshal($r_buffer, $value->{request_id}); | ||
| 1612 | } | ||
| 1613 | |||
| 1614 | sub FragmentHeader_1_2__demarshal { | ||
| 1615 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1616 | my $value = {}; | ||
| 1617 | $value->{request_id} = CORBA::Perl::CORBA::unsigned_long__demarshal($r_buffer, $r_offset, $endian); | ||
| 1618 | return $value; | ||
| 1619 | } | ||
| 1620 | |||
| 1621 | sub FragmentHeader_1_2__stringify { | ||
| 1622 | my ($value, $tab) = @_; | ||
| 1623 | $tab = q{} unless defined ($tab); | ||
| 1624 | croak "undefined value for 'FragmentHeader_1_2'.\n" | ||
| 1625 | unless (defined $value); | ||
| 1626 | croak "invalid struct for 'FragmentHeader_1_2' (not a HASH reference).\n" | ||
| 1627 | unless (ref $value eq 'HASH'); | ||
| 1628 | croak "no member 'request_id' in structure 'FragmentHeader_1_2'.\n" | ||
| 1629 | unless (exists $value->{request_id}); | ||
| 1630 | my $str = "struct FragmentHeader_1_2 {"; | ||
| 1631 | $str .= "\n$tab unsigned_long request_id = "; | ||
| 1632 | $str .= CORBA::Perl::CORBA::unsigned_long__stringify($value->{request_id}, $tab . " "); | ||
| 1633 | $str .= "\n$tab}"; | ||
| 1634 | return $str; | ||
| 1635 | } | ||
| 1636 | |||
| 1637 | sub FragmentHeader_1_2__id () { | ||
| 1638 | return "IDL:omg.org/GIOP/FragmentHeader_1_2:1.0"; | ||
| 1639 | } | ||
| 1640 | |||
| 1641 | # CORBA::Perl::GIOP::FragmentHeader_1_3 (typedef) | ||
| 1642 | sub FragmentHeader_1_3__marshal { | ||
| 1643 | my ($r_buffer, $value) = @_; | ||
| 1644 | croak "undefined value for 'FragmentHeader_1_3'.\n" | ||
| 1645 | unless (defined $value); | ||
| 1646 | CORBA::Perl::GIOP::FragmentHeader_1_2__marshal($r_buffer, $value); | ||
| 1647 | } | ||
| 1648 | |||
| 1649 | sub FragmentHeader_1_3__demarshal { | ||
| 1650 | my ($r_buffer, $r_offset, $endian) = @_; | ||
| 1651 | return CORBA::Perl::GIOP::FragmentHeader_1_2__demarshal($r_buffer, $r_offset, $endian); | ||
| 1652 | } | ||
| 1653 | |||
| 1654 | sub FragmentHeader_1_3__stringify { | ||
| 1655 | my ($value, $tab) = @_; | ||
| 1656 | croak "undefined value for 'FragmentHeader_1_3'.\n" | ||
| 1657 | unless (defined $value); | ||
| 1658 | return CORBA::Perl::GIOP::FragmentHeader_1_2__stringify($value, $tab); | ||
| 1659 | } | ||
| 1660 | |||
| 1661 | sub FragmentHeader_1_3__id () { | ||
| 1662 | return "IDL:omg.org/GIOP/FragmentHeader_1_3:1.0"; | ||
| 1663 | } | ||
| 1664 | |||
| 1665 | |||
| 1666 | # | ||
| 1667 | # end of module CORBA::Perl::GIOP | ||
| 1668 | # | ||
| 1669 | |||
| 1670 | package main; | ||
| 1671 | |||
| 1672 | 1; | ||
| 1673 | |||
| 1674 | # end of file : GIOP.pm | ||
| 1675 | |||
| 1676 | # Local variables: | ||
| 1677 | # buffer-read-only: t | ||
| 1678 | # End: |