| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# $Id: ServerRequest.pm,v 1.2 1997/05/21 11:28:06 schuller Exp $ |
|
2
|
|
|
|
|
|
|
# Copyright (c) 1997 Lunatech Research / Bart Schuller |
|
3
|
|
|
|
|
|
|
# See the file "Artistic" in the distribution for licensing and |
|
4
|
|
|
|
|
|
|
# (lack of) warranties. |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# interface ServerRequest |
|
7
|
|
|
|
|
|
|
package CORBA::ServerRequest; |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
|
10
|
0
|
|
|
0
|
|
|
my($class, $operation, $byte_order, $data, $index) = @_; |
|
11
|
0
|
|
|
|
|
|
my $self = { |
|
12
|
|
|
|
|
|
|
operation => $operation, |
|
13
|
|
|
|
|
|
|
byte_order => $byte_order, |
|
14
|
|
|
|
|
|
|
data => $data, |
|
15
|
|
|
|
|
|
|
data_index => $index, |
|
16
|
|
|
|
|
|
|
}; |
|
17
|
0
|
|
|
|
|
|
return bless $self, $class; |
|
18
|
|
|
|
|
|
|
} |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub params { |
|
21
|
0
|
|
|
0
|
|
|
my($self, $arg_list) = @_; |
|
22
|
0
|
|
|
|
|
|
$self->{arg_list} = $arg_list; |
|
23
|
0
|
|
|
|
|
|
my $index = $self->{data_index}; |
|
24
|
0
|
|
|
|
|
|
for my $arg (@$arg_list) { |
|
25
|
0
|
0
|
0
|
|
|
|
if (($arg->{arg_modes}==0)||($arg->{arg_modes}==2)) { |
|
26
|
0
|
|
|
|
|
|
$arg->{argument}{_value} = CORBA::ORB::_unmarshal_using_tc(\$self->{data}, \$index, $self->{byte_order}, $arg->{argument}{_type}); |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub result { |
|
32
|
0
|
|
|
0
|
|
|
my($self, $result) = @_; |
|
33
|
0
|
|
|
|
|
|
$self->{'result'} = $result; |
|
34
|
|
|
|
|
|
|
} |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub op_name { |
|
37
|
0
|
|
|
0
|
|
|
my($self) = @_; |
|
38
|
0
|
|
|
|
|
|
return $self->{'operation'}; |
|
39
|
|
|
|
|
|
|
} |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
# not in interface |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub get_arglist { |
|
44
|
0
|
|
|
0
|
|
|
my($self) = @_; |
|
45
|
0
|
|
|
|
|
|
return $self->{arg_list}; |
|
46
|
|
|
|
|
|
|
} |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub get_result { |
|
49
|
0
|
|
|
0
|
|
|
my($self) = @_; |
|
50
|
0
|
|
|
|
|
|
return $self->{'result'}; |
|
51
|
|
|
|
|
|
|
} |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |