| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
###################################################################### |
|
2
|
|
|
|
|
|
|
# Copyright (c)2010-2011, David L. Armstrong. |
|
3
|
|
|
|
|
|
|
# |
|
4
|
|
|
|
|
|
|
# P4::OO::_Connection.pm |
|
5
|
|
|
|
|
|
|
# |
|
6
|
|
|
|
|
|
|
# See COPYRIGHT AND LICENSE section in pod text below for usage |
|
7
|
|
|
|
|
|
|
# and distribution rights. |
|
8
|
|
|
|
|
|
|
# |
|
9
|
|
|
|
|
|
|
###################################################################### |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
P4::OO::_Connection - Abstract P4::OO interface for talking to Perforce |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 ENVIRONMENT |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=cut |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
###################################################################### |
|
26
|
|
|
|
|
|
|
# Package Initialization |
|
27
|
|
|
|
|
|
|
# |
|
28
|
|
|
|
|
|
|
package P4::OO::_Connection; |
|
29
|
|
|
|
|
|
|
our $VERSION = '0.00_02'; |
|
30
|
1
|
|
|
1
|
|
28284
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
34
|
|
|
31
|
1
|
|
|
1
|
|
4
|
use base ( 'P4::OO' ); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
532
|
|
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
###################################################################### |
|
35
|
|
|
|
|
|
|
# Includes |
|
36
|
|
|
|
|
|
|
# |
|
37
|
1
|
|
|
1
|
|
4
|
use P4::OO::_Error; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
129
|
|
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
###################################################################### |
|
40
|
|
|
|
|
|
|
# Globals |
|
41
|
|
|
|
|
|
|
# |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
###################################################################### |
|
44
|
|
|
|
|
|
|
# Methods |
|
45
|
|
|
|
|
|
|
# |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub query |
|
48
|
|
|
|
|
|
|
{ |
|
49
|
0
|
|
|
0
|
1
|
|
throw E_P4Fatal "Connection subclass doesn't support query() method.\n"; |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
} |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub readSpec |
|
54
|
|
|
|
|
|
|
{ |
|
55
|
0
|
|
|
0
|
0
|
|
throw E_P4Fatal "Connection subclass doesn't support readSpec() method.\n"; |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
} |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub saveSpec |
|
60
|
|
|
|
|
|
|
{ |
|
61
|
0
|
|
|
0
|
0
|
|
throw E_P4Fatal "Connection subclass doesn't support saveSpec() method.\n"; |
|
62
|
|
|
|
|
|
|
} |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
###################################################################### |
|
65
|
|
|
|
|
|
|
# Standard authorship and copyright for documentation |
|
66
|
|
|
|
|
|
|
# |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 AUTHOR |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
David L. Armstrong |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
P4::OO::_Connection is Copyright (c)2010-2011, David L. Armstrong. |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or |
|
77
|
|
|
|
|
|
|
modify it under the same terms as Perl itself, either Perl |
|
78
|
|
|
|
|
|
|
version 5.8.8 or, at your option, any later version of Perl 5 |
|
79
|
|
|
|
|
|
|
you may have available. |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 SUPPORT AND WARRANTY |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
This program is distributed in the hope that it will be |
|
84
|
|
|
|
|
|
|
useful, but it is provided "as is" and without any expressed |
|
85
|
|
|
|
|
|
|
or implied warranties. |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=cut |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
1; |