line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Goo::TemplateProfileOption; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
############################################################################### |
6
|
|
|
|
|
|
|
# Nigel Hamilton |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# Copyright Nigel Hamilton 2005 |
9
|
|
|
|
|
|
|
# All Rights Reserved |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# Author: Nigel Hamilton |
12
|
|
|
|
|
|
|
# Filename: Goo::TemplateProfileOption.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
|
|
3829
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
35
|
|
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
1
|
|
6
|
use Goo::ProfileOption; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
1
|
|
5
|
use base qw(Goo::ProfileOption); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
190
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
############################################################################## |
29
|
|
|
|
|
|
|
# |
30
|
|
|
|
|
|
|
# new - construct a ProfileOption |
31
|
|
|
|
|
|
|
# |
32
|
|
|
|
|
|
|
############################################################################## |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub new { |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
my ($class, $params) = @_; |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
my $this = $class->SUPER::new($params); |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
|
|
|
$this->{thing} = $params->{thing}; |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
|
|
|
return $this; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
############################################################################## |
47
|
|
|
|
|
|
|
# |
48
|
|
|
|
|
|
|
# do - carry out the action! - the action should be to jump to the first token |
49
|
|
|
|
|
|
|
# |
50
|
|
|
|
|
|
|
############################################################################## |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub do { |
53
|
|
|
|
|
|
|
|
54
|
0
|
|
|
0
|
1
|
|
my ($this, $thing) = @_; |
55
|
|
|
|
|
|
|
|
56
|
0
|
|
|
|
|
|
$thing->do_action("J", $this->{text}); |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__END__ |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 NAME |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Goo::TemplateProfileOption - Store individual options in the profile |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 SYNOPSIS |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
use Goo::TemplateProfileOption; |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 DESCRIPTION |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 METHODS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=over |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item new |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
construct a ProfileOption |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=item do |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
the action jumps to the first token found inside the Thing |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=back |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 AUTHOR |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Nigel Hamilton <nigel@trexy.com> |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 SEE ALSO |
95
|
|
|
|
|
|
|
|