=head1 NAME OODoc::Manifest - maintain the information inside a manifest file. =head1 INHERITANCE OODoc::Manifest is a OODoc::Object =head1 SYNOPSIS my $manifest = OODoc::Manifest->new(filename => ...); =head1 DESCRIPTION =head1 OVERLOADED overload: B<@{}> =over 4 Referencing this object as array will produce all filenames from the manifest. =back =head1 METHODS =head2 Constructors OODoc::Manifest-EB(OPTIONS) =over 4 Option --Default filename undef . filename => FILENAME =over 4 The filename where the manifest is in. When the name is not defined, the data will not be written. =back =back =head2 Inheritance knowledge $obj-EB([OBJECT]) =over 4 See L =back =head2 Attributes $obj-EB =over 4 The name of the file which is read or will be written. =back =head2 The manifest list $obj-EB(FILENAMES) =over 4 Adds the FILENAMES to the manifest, doubles are ignored. =back $obj-EB =over 4 Returns an unsorted list with all filenames in this manifest. =back =head2 Internals $obj-EB([BOOLEAN]) =over 4 Whether filenames have been added to the list after initiation. =back $obj-EB =over 4 Read the MANIFEST file. The comments are stripped from the lines. =back $obj-EB(FILENAME) =over 4 Returns the name of the file relative to the location of the MANIFEST file. The MANIFEST file should always be in top of the directory tree, so the FILENAME should be in the same directory and below. =back $obj-EB =over 4 Write the MANIFEST file if it has changed. The file will automatically be written when the object leaves scope. =back =head2 Commonly used functions $obj-EB(FILENAME) OODoc::Manifest-EB(FILENAME) =over 4 See L =back $obj-EB(DIRECTORY) OODoc::Manifest-EB(DIRECTORY) =over 4 See L =back =head2 Manual Repository $obj-EB(MANUAL) =over 4 See L =back $obj-EB(NAME) =over 4 See L =back $obj-EB(NAME) =over 4 See L =back $obj-EB =over 4 See L =back $obj-EB(NAME) =over 4 See L =back $obj-EB =over 4 See L =back =head1 DIAGNOSTICS Error: Cannot read manifest file $filename: $! =over 4 The manifest file could not be opened for reading. =back Warning: MANIFEST file $name lists filename outside (sub)directory: $file =over 4 The MANIFEST file of a distributed package should be located in the top directory of that packages. All files of the distribution are in that same directory, or one of its sub-directories, otherwise they will not be packaged. =back Error: manual definition requires manual object =over 4 A call to L expects a new manual object (a L), however an incompatible thing was passed. Usually, intended was a call to L or L. =back =head1 SEE ALSO This module is part of OODoc distribution version 1.03, built on March 14, 2008. Website: F =head1 LICENSE Copyrights 2003-2008 by Mark Overmeer. For other contributors see ChangeLog. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See F