libcdio  2.1.0
About: GNU libcdio is a library for CD-ROM and CD image access.
  Fossies Dox: libcdio-2.1.0.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

disc.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2005, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
29 {
30  return cdio_get_discmode(p_cdio);
31 }
32 
39 {
40  return cdio_get_disc_last_lsn(p_cdio);
41 }
42 
50 {
51  track_t i_track = cdio_get_first_track_num(p_cdio);
52  return (CDIO_INVALID_TRACK != i_track)
53  ? new CdioTrack(p_cdio, i_track)
54  : (CdioTrack *) NULL;
55 }
56 
64 {
65  return cdio_get_first_track_num(p_cdio);
66 }
67 
68 
76 {
77  track_t i_track = cdio_get_last_track_num(p_cdio);
78  return (CDIO_INVALID_TRACK != i_track)
79  ? new CdioTrack(p_cdio, i_track)
80  : (CdioTrack *) NULL;
81 }
82 
90 {
91  return cdio_get_last_track_num(p_cdio);
92 }
93 
97 uint8_t getJolietLevel()
98 {
99  return cdio_get_joliet_level(p_cdio);
100 }
101 
112 char * getMcn ()
113 {
114  return cdio_get_mcn (p_cdio);
115 }
116 
124 {
125  return cdio_get_num_tracks(p_cdio);
126 }
127 
136 {
137  return new CdioTrack(p_cdio, i_track);
138 }
139 
148 {
149  track_t i_track = cdio_get_track(p_cdio, lsn);
150  return (CDIO_INVALID_TRACK != i_track)
151  ? new CdioTrack(p_cdio, i_track)
152  : (CdioTrack *) NULL;
153 }
154 
155 
159 bool isDiscmodeCdrom (discmode_t discmode) {
160  return cdio_is_discmode_cdrom(discmode);
161 }
162 
163 
167 bool isDiscmodeDvd (discmode_t discmode)
168 {
169  return cdio_is_discmode_dvd (discmode) ;
170 }
171 
179 {
180  cdtext_t *cdtext = cdio_get_cdtext (p_cdio);
181 
182  if (NULL == cdtext)
183  return (CdioCDText *) NULL;
184  else
185  return new CdioCDText(cdtext);
186 }
187 
CdioTrack
Definition: cdio.hpp:131
cdio_get_num_tracks
track_t cdio_get_num_tracks(const CdIo_t *p_cdio)
Definition: track.c:156
getFirstTrack
CdioTrack * getFirstTrack()
Definition: disc.hpp:49
lsn_t
int32_t lsn_t
Definition: types.h:266
getMcn
char * getMcn()
Definition: disc.hpp:112
cdio_get_mcn
char * cdio_get_mcn(const CdIo_t *p_cdio)
Definition: disc.c:129
getNumTracks
track_t getNumTracks()
Definition: disc.hpp:123
track_t
uint8_t track_t
Definition: types.h:276
getJolietLevel
uint8_t getJolietLevel()
Definition: disc.hpp:97
getTrackFromLsn
CdioTrack * getTrackFromLsn(lsn_t lsn)
Definition: disc.hpp:147
cdio_is_discmode_cdrom
bool cdio_is_discmode_cdrom(discmode_t discmode)
Definition: disc.c:139
cdio_get_last_track_num
track_t cdio_get_last_track_num(const CdIo_t *p_cdio)
Definition: track.c:67
getDiscLastLsn
lsn_t getDiscLastLsn()
Definition: disc.hpp:38
discmode_t
discmode_t
Definition: disc.h:37
cdio_get_cdtext
cdtext_t * cdio_get_cdtext(CdIo_t *p_cdio)
NULL
#define NULL
Definition: types.h:184
getDiscmode
discmode_t getDiscmode()
Definition: disc.hpp:28
getLastTrackNum
track_t getLastTrackNum()
Definition: disc.hpp:89
cdio_get_disc_last_lsn
lsn_t cdio_get_disc_last_lsn(const CdIo_t *p_cdio)
Definition: disc.c:102
isDiscmodeCdrom
bool isDiscmodeCdrom(discmode_t discmode)
Definition: disc.hpp:159
CdioCDText
Definition: cdio.hpp:103
cdio_is_discmode_dvd
bool cdio_is_discmode_dvd(discmode_t discmode)
Definition: disc.c:154
getLastTrack
CdioTrack * getLastTrack()
Definition: disc.hpp:75
cdio_get_track
track_t cdio_get_track(const CdIo_t *p_cdio, lsn_t lsn)
Definition: track.c:175
getFirstTrackNum
track_t getFirstTrackNum()
Definition: disc.hpp:63
getCdtext
CdioCDText * getCdtext()
Definition: disc.hpp:178
cdio_get_first_track_num
track_t cdio_get_first_track_num(const CdIo_t *p_cdio)
Definition: track.c:47
getTrackFromNum
CdioTrack * getTrackFromNum(track_t i_track)
Definition: disc.hpp:135
CDIO_INVALID_TRACK
Definition: track.h:79
cdtext_s
Definition: cdtext_private.h:127
cdio_get_discmode
discmode_t cdio_get_discmode(CdIo_t *p_cdio)
Definition: disc.c:112
cdio_get_joliet_level
uint8_t cdio_get_joliet_level(const CdIo_t *p_cdio)
Definition: track.c:141
isDiscmodeDvd
bool isDiscmodeDvd(discmode_t discmode)
Definition: disc.hpp:167