| Meta documentation | view source | Contained in the Meta distribution. |
Meta::Pdmt::FileNode - a node representing a file.
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
MANIFEST: FileNode.pm PROJECT: meta VERSION: 0.04
package foo; use Meta::Pdmt::FileNode qw(); my($object)=Meta::Pdmt::FileNode->new(); my($result)=$object->method();
This is a node in the PDMT graph representing a file in the file system.
BEGIN() md5($) exists($) remove($) mtime($) TEST($)
This initialization method sets up a default constructor and accessor methods for the following attributes: 1. path - path of the file in the file system.
This method overrides the abstract interface in the parent Md5Node and implement a regular file md5 algorithm.
This method returns whether the file exists or not.
This file removes the current file ("make clean").
This method returns the modification date of the current file. 0 means that the file doesn't exist (or very old).
Test suite for this module.
Meta::Pdmt::Md5Node(3)
None.
Name: Mark Veltzer Email: mailto:veltzer@cpan.org WWW: http://www.veltzer.org CPAN id: VELTZER
0.00 MV web site automation 0.01 MV SEE ALSO section fix 0.02 MV bring movie data 0.03 MV teachers project 0.04 MV md5 issues
Meta::Class::MethodMaker(3), Meta::Digest::MD5(3), Meta::Pdmt::Md5Node(3), Meta::Utils::File::File(3), Meta::Utils::File::Time(3), strict(3)
Nothing.
| Meta documentation | view source | Contained in the Meta distribution. |