line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package oEdtk::C7Doc; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
755
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
42
|
|
4
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
46
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
7
|
use base 'oEdtk::Doc'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
90
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
1140
|
use oEdtk::C7Tag; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
178
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub append_table { |
13
|
|
|
|
|
|
|
# appending table by element |
14
|
|
|
|
|
|
|
# each element name based on the table name with elem number |
15
|
|
|
|
|
|
|
# exemple $name = ADDRESS => ADDRES00 to ADDRES99 |
16
|
0
|
|
|
0
|
0
|
|
my ($self, $name, @tValues) = @_; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
for (my $i = 0; $i <= $#tValues; $i++) { |
19
|
0
|
|
|
|
|
|
my $elem = sprintf("%.6s%0.2d", $name, $i); |
20
|
0
|
|
|
|
|
|
$self->append($elem, $tValues[$i]); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub mktag { |
25
|
0
|
|
|
0
|
0
|
|
my ($self, $name, $value) = @_; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
return oEdtk::C7Tag->new($name, $value); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub line_break { |
31
|
0
|
|
|
0
|
0
|
|
return "\n"; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |