#ifndef __CDREADER_H__ #define __CDREADER_H__ #ifdef __cplusplus #include #include #include #include class cdreader : public Handle { public: cdreader(const String &) throw (GeneralException); cdreader(const cdreader &); virtual ~cdreader() {} virtual bool CanWrite() const; virtual bool CanRead() const; virtual bool CanSeek() const; virtual ssize_t read(void *buf, size_t count) throw (GeneralException); virtual off_t seek(off_t, int = SEEK_SET) throw (GeneralException); virtual String GetName() const; virtual ssize_t GetSize() const; virtual void getsector(void *, int = -1) throw (GeneralException); virtual void sectorseek(int); private: String n; int sector; }; #else #error This only works with a C++ compiler #endif #endif