ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Convert-CD/lib/Convert/CD.pm
Revision: 1.3
Committed: Mon Jun 9 20:25:43 2003 UTC (23 years, 3 months ago) by root
Branch: MAIN
Changes since 1.2: +35 -2 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 =head1 NAME
2
3 Convert::CD - import/export/represent various cd image file formats
4
5 =head1 SYNOPSIS
6
7 use Convert::CD;
8
9 # to be done
10
11 =head1 DESCRIPTION
12
13 Kidding?
14
15 =head2 Convert:CD METHODS
16
17 This class represents a full CD image.
18
19 =over 4
20
21 =cut
22
23 package Convert::CD;
24
25 $VERSION = 0.01;
26
27 =item new param => value...
28
29 Create a new Convert::CD object.
30
31 my $cd = new path => "/tmp/mycd.bin";
32
33 =cut
34
35 sub new {
36 my $class = shift;
37 bless {
38 track => [], # an array of tracks
39 @_,
40 }, $class;
41 # autodetect, read toc etc...
42 }
43
44 =back
45
46 =head2 Convert::CD::Track METHODS
47
48 This class is used to repesent single track objects.
49
50 =over 4
51
52 =item new param => value...
53
54 Create a new track object.
55
56 Parameters:
57
58 path the file that contains the track
59 offset the offste within the file that contains the first sector
60 (may be negative)
61 size the size (in bytes) of the track
62 format a string like "MODE2/2352"
63 datasize size of the data part of the sector (e.g. 2048)
64 secsize size of a sector in disk image
65
66 =cut
67
68 sub new {
69 my $class = shift;
70 bless {
71 @_,
72 }, $class;
73 }
74
75 1;
76
77 =back
78
79 =head1 AUTHOR
80
81 Marc Lehmann <pcg@goof.com>
82
83 =cut
84