| 1 |
=head1 NAME |
| 2 |
|
| 3 |
Convert::CD::Cue - import/export .bin/.cue files. |
| 4 |
|
| 5 |
=head1 SYNOPSIS |
| 6 |
|
| 7 |
use Convert::CD::Cue; |
| 8 |
|
| 9 |
# to be done |
| 10 |
|
| 11 |
=head1 DESCRIPTION |
| 12 |
|
| 13 |
Parse/Write .cue files. |
| 14 |
|
| 15 |
=head2 Convert:CD::Cue METHODS |
| 16 |
|
| 17 |
This class represents a .bin/.cue file combination. |
| 18 |
|
| 19 |
=over 4 |
| 20 |
|
| 21 |
=cut |
| 22 |
|
| 23 |
package Convert::CD::Cue; |
| 24 |
|
| 25 |
$VERSION = 0.01; |
| 26 |
|
| 27 |
use base Convert::CD::TOCFile; |
| 28 |
|
| 29 |
=item new param => value... |
| 30 |
|
| 31 |
Create a new Convert::CD::Cue object. |
| 32 |
|
| 33 |
Parameters: |
| 34 |
|
| 35 |
path the base image filename |
| 36 |
tocpath the (optional) path of the tocfile |
| 37 |
|
| 38 |
=cut |
| 39 |
|
| 40 |
sub new { |
| 41 |
my $class = shift; |
| 42 |
my $self = bless { @_, }, $class; |
| 43 |
# autodetect, read toc etc... |
| 44 |
exists $self->{tocfile} or $self->{tocfile} = $self->find_tocfile ("cue", "CUE", "Cue"); |
| 45 |
$self; |
| 46 |
} |
| 47 |
|
| 48 |
sub _read { |
| 49 |
my ($self, $cd) = @_; |
| 50 |
|
| 51 |
open my $cue, "<", $self->{tocpath} |
| 52 |
or croak "$self->{tocpath}: $!"; |
| 53 |
} |
| 54 |
|
| 55 |
#sub _write { |
| 56 |
# my ($self, $cd) = @_; |
| 57 |
#} |
| 58 |
|
| 59 |
1; |
| 60 |
|
| 61 |
=back |
| 62 |
|
| 63 |
=head1 AUTHOR |
| 64 |
|
| 65 |
Marc Lehmann <pcg@goof.com> |
| 66 |
|
| 67 |
=cut |
| 68 |
|