line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Goo::ThingProfileOption; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
############################################################################### |
6
|
|
|
|
|
|
|
# Nigel Hamilton |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# Copyright Nigel Hamilton 2005 |
9
|
|
|
|
|
|
|
# All Rights Reserved |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# Author: Nigel Hamilton |
12
|
|
|
|
|
|
|
# Filename: Goo::ThingProfileOption.pm |
13
|
|
|
|
|
|
|
# Description: Store individual options in the profile |
14
|
|
|
|
|
|
|
# |
15
|
|
|
|
|
|
|
# Date Change |
16
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------- |
17
|
|
|
|
|
|
|
# 11/08/2005 Added method: test |
18
|
|
|
|
|
|
|
# |
19
|
|
|
|
|
|
|
############################################################################## |
20
|
|
|
|
|
|
|
|
21
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
90
|
|
|
1
|
|
|
|
|
34
|
|
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
1
|
|
6
|
use Goo::Loader; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
22
|
|
24
|
1
|
|
|
1
|
|
6
|
use Goo::ProfileOption; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
1
|
|
6
|
use base qw(Goo::ProfileOption); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
222
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
############################################################################## |
30
|
|
|
|
|
|
|
# |
31
|
|
|
|
|
|
|
# new - construct a profile_option |
32
|
|
|
|
|
|
|
# |
33
|
|
|
|
|
|
|
############################################################################## |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub new { |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
0
|
1
|
|
my ($class, $params) = @_; |
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
|
|
|
my $this = $class->SUPER::new($params); |
40
|
|
|
|
|
|
|
|
41
|
0
|
|
|
|
|
|
$this->{thing} = $params->{thing}; |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
|
|
|
return $this; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
############################################################################## |
48
|
|
|
|
|
|
|
# |
49
|
|
|
|
|
|
|
# do - carry out the action! |
50
|
|
|
|
|
|
|
# |
51
|
|
|
|
|
|
|
############################################################################## |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub do { |
54
|
|
|
|
|
|
|
|
55
|
0
|
|
|
0
|
1
|
|
my ($this) = @_; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
# load the thing for this object |
58
|
0
|
|
|
|
|
|
my $new_thing = Goo::Loader::load($this->{text}); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
# profile this Thing |
61
|
0
|
|
|
|
|
|
$new_thing->do_action("P"); |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
__END__ |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 NAME |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Goo::ThingProfileOption - Store individual options in the profile |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 SYNOPSIS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
use Goo::ThingProfileOption; |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 DESCRIPTION |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 METHODS |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=over |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=item new |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
construct a profile_option |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=item do |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
carry out the action! |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=back |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head1 AUTHOR |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Nigel Hamilton <nigel@trexy.com> |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 SEE ALSO |
103
|
|
|
|
|
|
|
|