package DWH_File::Work;

use warnings;
use strict;
use vars qw( @ISA $VERSION );

use DWH_File::Kernel;
use DWH_File::Tie::Hash;

@ISA = qw( DWH_File::Tie::Hash );
$VERSION = 0.01;

sub TIEHASH {
    my $class = shift;
    my $kernel = DWH_File::Kernel->new( @_ );
    my $self = delete $kernel->{ work };
    $kernel->{ cache }->decache( $self );
    return $self;
}

sub wipe {
    $_[ 0 ]->{ kernel }->save_state;
    $_[ 0 ]->{ kernel }->purge_garbage;
}

1;

__END__

=head1 NAME

DWH_File::Work - 

=head1 SYNOPSIS

DWH_File::Work is part of the DWH_File distribution. For user-oriented
documentation, see DWH_File documentation (perldoc DWH_File).

=head1 DESCRIPTION



=head1 COPYRIGHT

Copyright (c) Jakob Schmidt 2002

This module is part of the DWH_File distribution. See DWH_File.pm.

=head1 AUTHORS

    Jakob Schmidt <schmidt@orqwood.dk>

=cut

CVS-log (non-pod)

    $Log: Work.pm,v $
    Revision 1.1.1.1  2002/09/27 22:41:49  schmidt
    Imported

