File: dumpdata.pm

package info (click to toggle)
libvcp-perl 0.9-20050110-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,608 kB
  • ctags: 827
  • sloc: perl: 18,194; makefile: 42; sh: 11
file content (61 lines) | stat: -rw-r--r-- 1,172 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package VCP::Filter::dumpdata ;

=head1 NAME

VCP::Filter::dumpdata - developement output filter

=head1 DESCRIPTION

Dump all data structures.  Requires the module BFD, which is not installed
automatically.  Dumps to the log file.

Not a supported module, API and behavior may change without warning.

=cut

$VERSION = 0.1 ;

@ISA = qw( VCP::Filter );

use strict ;

#use base qw( VCP::Filter );

use VCP::Filter;
use VCP::Logger qw( lg );

sub handle_header {
   my $self = shift;
   require BFD; ## load lazily so as not to force all users to have BFD
   lg BFD::d_to_string( "for ", ref $self->dest, $_[0] );
   $self->dest->handle_header( @_ );
}

sub handle_rev {
   my $self = shift;
   lg BFD::d_to_string( "for ", ref $self->dest, $_[0]->as_hash );
   $self->dest->handle_rev( @_ );
}


sub handle_footer {
   my $self = shift;
   lg BFD::d_to_string( "for ", ref $self->dest, $_[0] );
   $self->dest->handle_footer( @_ );
}


=head1 AUTHOR

Barrie Slaymaker <barries@slaysys.com>

=head1 COPYRIGHT

Copyright (c) 2000, 2001, 2002 Perforce Software, Inc.
All rights reserved.

See L<VCP::License|VCP::License> (C<vcp help license>) for the terms of use.

=cut

1