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)  

cdio.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2005, 2006, 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 
24 #ifndef CDIO_CDIOPP_HPP_
25 #define CDIO_CDIOPP_HPP_
26 
27 #include <cdio/cdio.h>
28 #include <cdio/audio.h>
29 #include <cdio/dvd.h>
30 #include <cdio/mmc.h>
31 #include <cdio/mmc_cmds.h>
32 
33 // Make pre- and post-increment operators for enums in libcdio where it
34 // makes sense.
35 #include <cdio++/enum.hpp>
36 
39 {
40 public:
44  };
46  driver_return_code = drc;
47  };
49  return driver_return_code;
50  };
51  const char *get_msg(void) {
53  };
54 };
55 
57 {
58 public:
60 };
61 
63 {
64 public:
66 };
67 
69 {
70 public:
72 };
73 
75 {
76 public:
78 };
79 
81 {
82 public:
84 };
85 
87 {
88 public:
90 };
91 
93 {
94 public:
96 };
97 
99 
104 {
105 public:
107  {
108  if (NULL == cdtext)
109  cdtext = cdtext_init();
110 
111  p_cdtext = cdtext;
112  }
113 
115  {
117  p_cdtext = (cdtext_t *) NULL;
118  }
119 
120  // Other member functions
121 #include "cdtext.hpp"
122 
123 private:
125 };
126 
132 {
133 
134 public:
136  {
137  i_track = t;
138  p_cdio = p;
139  }
140 
141  // Other member functions
142 #include "track.hpp"
143 
144 private:
147 };
148 
154 {
155 
156 protected:
157 
159 
160 public:
161 
163  {
164  p_cdio = (CdIo_t *) NULL;
165  };
166 
168  {
170  p_cdio = (CdIo_t *) NULL;
171  };
172 
173  // Other member functions
174 #include "device.hpp"
175 #include "disc.hpp"
176 #include "mmc.hpp"
177 #include "read.hpp"
178 
179 };
180 
181 /* Things related to devices. No class or object is needed. */
182 #include "devices.hpp"
183 
184 #endif /* CDIO_CDIOPP_HPP_ */
read.hpp
methods relating to reading blocks of Compact Discs. This file should not be #included directly.
CdioTrack
Definition: cdio.hpp:131
DRIVER_OP_BAD_PARAMETER
Definition: device.h:225
DriverOpNoDriver::DriverOpNoDriver
DriverOpNoDriver(void)
Definition: cdio.hpp:95
devices.hpp
methods relating to devices. It is not part of a class. This file should not be #included directly.
DriverOpException::get_msg
const char * get_msg(void)
Definition: cdio.hpp:51
cdio.h
The top-level header for libcdio: the CD Input and Control library. Applications include this for any...
track.hpp
methods relating to getting Compact Discs. This file should not be #included directly.
mmc.hpp
methods relating to MMC (Multimedia Commands). This file should not be #included directly.
possible_throw_device_exception
void possible_throw_device_exception(driver_return_code_t drc)
Definition: cdio.cpp:22
device.hpp
C++ header for driver- or device-related libcdio calls. ("device" includes CD-image reading devices...
driver_return_code_t
driver_return_code_t
Definition: device.h:205
DriverOpBadParameter
Definition: cdio.hpp:80
cdtext_destroy
void cdtext_destroy(cdtext_t *p_cdtext)
Definition: cdtext.c:242
CdioDevice
Definition: cdio.hpp:153
disc.hpp
methods relating to getting Compact Disc information. This file should not be #included directly.
track_t
uint8_t track_t
Definition: types.h:276
DRIVER_OP_UNSUPPORTED
Definition: device.h:212
CdioCDText::~CdioCDText
~CdioCDText()
Definition: cdio.hpp:114
_CdIo
Definition: cdio_private.h:472
cdio_driver_errmsg
const char * cdio_driver_errmsg(driver_return_code_t drc)
Definition: device.c:277
cdio_destroy
void cdio_destroy(CdIo_t *p_cdio)
Definition: device.c:361
CdioTrack::CdioTrack
CdioTrack(CdIo_t *p, track_t t)
Definition: cdio.hpp:135
DriverOpError
Definition: cdio.hpp:56
DriverOpBadPointer::DriverOpBadPointer
DriverOpBadPointer(void)
Definition: cdio.hpp:89
CdioDevice::p_cdio
CdIo_t * p_cdio
Definition: cdio.hpp:158
cdtext_init
cdtext_t * cdtext_init(void)
Definition: cdtext.c:486
NULL
#define NULL
Definition: types.h:184
DriverOpUninit
Definition: cdio.hpp:68
DriverOpException::DriverOpException
DriverOpException(void)
Definition: cdio.hpp:42
DriverOpError::DriverOpError
DriverOpError(void)
Definition: cdio.hpp:59
DRIVER_OP_BAD_POINTER
Definition: device.h:226
CdioTrack::p_cdio
CdIo_t * p_cdio
Definition: cdio.hpp:146
DriverOpNotPermitted::DriverOpNotPermitted
DriverOpNotPermitted(void)
Definition: cdio.hpp:77
CdioCDText
Definition: cdio.hpp:103
DriverOpException::DriverOpException
DriverOpException(driver_return_code_t drc)
Definition: cdio.hpp:45
DRIVER_OP_NOT_PERMITTED
Definition: device.h:221
DRIVER_OP_NO_DRIVER
Definition: device.h:227
DriverOpUnsupported
Definition: cdio.hpp:62
mmc.h
Common definitions for MMC (Multimedia Commands). Applications include this for direct MMC access.
DriverOpUninit::DriverOpUninit
DriverOpUninit(void)
Definition: cdio.hpp:71
DRIVER_OP_ERROR
Definition: device.h:211
DriverOpException::driver_return_code
driver_return_code_t driver_return_code
Definition: cdio.hpp:41
DriverOpException::get_code
driver_return_code_t get_code(void)
Definition: cdio.hpp:48
CdioCDText::CdioCDText
CdioCDText(cdtext_t *cdtext)
Definition: cdio.hpp:106
CdioDevice::CdioDevice
CdioDevice()
Definition: cdio.hpp:162
CdioDevice::~CdioDevice
~CdioDevice()
Definition: cdio.hpp:167
DriverOpException
Definition: cdio.hpp:38
cdtext.hpp
methods relating to CD-Text information. This file should not be #included directly.
CdioCDText::p_cdtext
cdtext_t * p_cdtext
Definition: cdio.hpp:124
DriverOpUnsupported::DriverOpUnsupported
DriverOpUnsupported(void)
Definition: cdio.hpp:65
DriverOpBadPointer
Definition: cdio.hpp:86
enum.hpp
C++ header for pre- and post-increment operators for enumerations defined in libcdio that it makes se...
DRIVER_OP_SUCCESS
Definition: device.h:206
DRIVER_OP_UNINIT
Definition: device.h:217
audio.h
The top-level header for CD audio-related libcdio calls. These control playing of the CD-ROM through ...
mmc_cmds.h
The top-level header for libcdio multi-media commands (MMC).
DriverOpNotPermitted
Definition: cdio.hpp:74
CdioTrack::i_track
track_t i_track
Definition: cdio.hpp:145
cdtext_s
Definition: cdtext_private.h:127
dvd.h
Definitions for DVD access.
DriverOpNoDriver
Definition: cdio.hpp:92
DriverOpBadParameter::DriverOpBadParameter
DriverOpBadParameter(void)
Definition: cdio.hpp:83