=head1 NAME Convert::CD - import/export/represent various cd image file formats =head1 SYNOPSIS use Convert::CD; # to be done =head1 DESCRIPTION Kidding? =head2 Convert:CD METHODS This class represents a full CD image. =over 4 =cut package Convert::CD; $VERSION = 0.01; =item new param => value... Create a new Convert::CD object. my $cd = new path => "/tmp/mycd.bin"; =cut sub new { my $class = shift; bless { track => [], # an array of tracks @_, }, $class; # autodetect, read toc etc... } =back =head2 Convert::CD::Track METHODS This class is used to repesent single track objects. =over 4 =item new param => value... Create a new track object. Parameters: path the file that contains the track offset the offste within the file that contains the first sector (may be negative) size the size (in bytes) of the track format a string like "MODE2/2352" datasize size of the data part of the sector (e.g. 2048) secsize size of a sector in disk image =cut sub new { my $class = shift; bless { @_, }, $class; } 1; =back =head1 AUTHOR Marc Lehmann =cut