| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Lingua::YaTeA::FileSet; |
|
2
|
5
|
|
|
5
|
|
2006
|
use Lingua::YaTeA::File; |
|
|
5
|
|
|
|
|
13
|
|
|
|
5
|
|
|
|
|
61
|
|
|
3
|
5
|
|
|
5
|
|
132
|
use strict; |
|
|
5
|
|
|
|
|
15
|
|
|
|
5
|
|
|
|
|
105
|
|
|
4
|
5
|
|
|
5
|
|
26
|
use warnings; |
|
|
5
|
|
|
|
|
11
|
|
|
|
5
|
|
|
|
|
1769
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION=$Lingua::YaTeA::VERSION; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub new |
|
9
|
|
|
|
|
|
|
{ |
|
10
|
11
|
|
|
11
|
1
|
34
|
my ($class,$repository) = @_; |
|
11
|
11
|
|
|
|
|
24
|
my $this = {}; |
|
12
|
11
|
|
|
|
|
23
|
bless ($this,$class); |
|
13
|
11
|
|
|
|
|
41
|
$this->{REPOSITORY} = $repository; |
|
14
|
11
|
|
|
|
|
26
|
$this->{FILES} = (); |
|
15
|
11
|
|
|
|
|
35
|
return $this; |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub checkRepositoryExists |
|
20
|
|
|
|
|
|
|
{ |
|
21
|
8
|
|
|
8
|
1
|
17
|
my ($this) = @_; |
|
22
|
8
|
50
|
|
|
|
22
|
if (! -d $this->getRepository) |
|
23
|
|
|
|
|
|
|
{ |
|
24
|
0
|
|
|
|
|
0
|
die "No such repository :" . $this->getRepository . "\n"; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
else |
|
27
|
|
|
|
|
|
|
{ |
|
28
|
8
|
|
|
|
|
37
|
print STDERR "Data will be loaded from: ". $this->getRepository . "\n"; |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
} |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub addFile |
|
33
|
|
|
|
|
|
|
{ |
|
34
|
70
|
|
|
70
|
1
|
160
|
my ($this,$repository,$name) = @_; |
|
35
|
70
|
|
|
|
|
97
|
my $file; |
|
36
|
|
|
|
|
|
|
my $option; |
|
37
|
|
|
|
|
|
|
|
|
38
|
70
|
|
|
|
|
205
|
$file = Lingua::YaTeA::File->new($repository,$name); |
|
39
|
|
|
|
|
|
|
|
|
40
|
70
|
|
|
|
|
159
|
$this->{FILES}->{$file->getInternalName} = $file; |
|
41
|
|
|
|
|
|
|
} |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub getFile |
|
44
|
|
|
|
|
|
|
{ |
|
45
|
52
|
|
|
52
|
1
|
199
|
my ($this,$name) = @_; |
|
46
|
52
|
|
|
|
|
282
|
return $this->{FILES}->{$name}; |
|
47
|
|
|
|
|
|
|
} |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub addFiles |
|
50
|
|
|
|
|
|
|
{ |
|
51
|
4
|
|
|
4
|
1
|
15
|
my ($this,$repository,$file_name_a) = @_; |
|
52
|
4
|
|
|
|
|
7
|
my $name; |
|
53
|
4
|
|
|
|
|
13
|
foreach $name (@$file_name_a) |
|
54
|
|
|
|
|
|
|
{ |
|
55
|
36
|
|
|
|
|
70
|
$this->addFile($repository,$name); |
|
56
|
|
|
|
|
|
|
} |
|
57
|
|
|
|
|
|
|
} |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub getRepository |
|
60
|
|
|
|
|
|
|
{ |
|
61
|
24
|
|
|
24
|
1
|
50
|
my ($this) = @_; |
|
62
|
24
|
|
|
|
|
803
|
return $this->{REPOSITORY} ; |
|
63
|
|
|
|
|
|
|
} |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
__END__ |