MxScreen/Tie/Sinkable.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
TIEHANDLE
2.0
discard_all
2.0
BEGIN
2.0
CRAP 2.0
1 # -*- Mode: perl -*-
2 #
3 # $Id: Sinkable.pm,v 0.1 2001/04/22 17:57:04 ram Exp $
4 #
5 # Copyright (c) 1998-2001, Raphael Manfredi
6 # Copyright (c) 2000-2001, Christophe Dehaudt
7 #
8 # You may redistribute only under the terms of the Artistic License,
9 # as specified in the README file that comes with the distribution.
10 #
11 # HISTORY
12 # $Log: Sinkable.pm,v $
13 # Revision 0.1 2001/04/22 17:57:04 ram
14 # Baseline for first Alpha release.
15 #
16 # $EndLog$
17 #
18  
19 use strict;
20  
21 package CGI::MxScreen::Tie::Sinkable;
22  
23 use Carp::Datum;
24 use Log::Agent;
25  
26 #
27 # (TIEHANDLE)
28 #
29 # Initial tieing.
30 #
31 sub TIEHANDLE {
32 logcroak "not meant to be tied directly";
33 }
34  
35 #
36 # ->discard_all
37 #
38 # Discard all output made sofar.
39 # Common routine expected to be found in all tied filehandles in CGI::MxScreen.
40 #
41 sub discard_all {
42 DFEATURE my $f_;
43 ### redefine when necessary
44 return DVOID;
45 }
46  
47 1;
48  
49 =head1 NAME
50  
51 CGI::MxScreen::Tie::Sinkable - A sinkable tied filehandle
52  
53 =head1 SYNOPSIS
54  
55 # Not meant to be used directly
56  
57 =head1 DESCRIPTION
58  
59 This class is B<deferred> and meant to be used by other C<CGI::MxScreen::Tie>
60 classes. It ensures that a C<discard_all()> routine is available to
61 forget about any buffered data.
62  
63 =head1 AUTHOR
64  
65 Raphael Manfredi F<E<lt>Raphael_Manfredi@pobox.comE<gt>>
66  
67 =head1 SEE ALSO
68  
69 CGI::MxScreen::Config(3).
70