line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
2526
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
61
|
|
2
|
|
|
|
|
|
|
package XML::XBEL::Separator; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
|
|
1778
|
use base qw (XML::XBEL::base |
5
|
|
|
|
|
|
|
XML::XBEL::thingy |
6
|
1
|
|
|
1
|
|
7
|
XML::XBEL::serialize); |
|
1
|
|
|
|
|
3
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# $Id: Separator.pm,v 1.2 2004/06/23 04:15:12 asc Exp $ |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
XML::XBEL::Separator - OOP for reading and writing XBEL separators |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use XML::XBEL::Separator; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 DESCRIPTION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
OOP for reading and writing XBEL separators |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
use XML::LibXML; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 PACKAGE METHODS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head2 __PACKAGE__->new() |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Returns an I object. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=cut |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub new { |
37
|
|
|
|
|
|
|
my $pkg = shift; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
my $root = XML::LibXML::Element->new("separator"); |
40
|
|
|
|
|
|
|
my $self = bless {'__root' => $root }, $pkg; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
return $self; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 OBJECT METHODS |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 $obj->delete() |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Delete an XBEL separator. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
# Defined in XML::XBEL::thingy |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 $obj->toString($format) |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
# Defined in XML::XBEL::serialize |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 $obj->toFile($filename,$format) |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=cut |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
# Defined in XML::XBEL::serialize |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 $obj->toFH(\*$fh,$format) |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=cut |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
# Defined in XML::XBEL::serialize |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 VERSION |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
$Revision: 1.2 $ |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 DATE |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
$Date: 2004/06/23 04:15:12 $ |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 AUTHOR |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Aaron Straup Cope Eascope@cpan.orgE |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head1 SEE ALSO |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
L |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
L |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
L |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
L |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 LICENSE |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Copyright (c) 2004 Aaron Straup Cope. All rights reserved. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
This is free software, you may use it and distribute it under the |
102
|
|
|
|
|
|
|
same terms as Perl itself. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=cut |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
return 1; |