Debian Codegraph @

mednafen/cdrom/CDAccess.h

raw symbols SCIP
1 #ifndef __MDFN_CDROMFILE_H
2 #define __MDFN_CDROMFILE_H
3
4 #include <stdio.h>
5
6 #include "CDUtility.h"
7
8 class CDAccess
9 {
10 public:
11
12 CDAccess();
13 virtual ~CDAccess();
14
15 virtual void Read_Raw_Sector(uint8 *buf, int32 lba) = 0;
16
17 virtual void Read_TOC(CDUtility::TOC *toc) = 0;
18
19 virtual bool Is_Physical(void) throw() = 0;
20
21 virtual void Eject(bool eject_status) = 0; // Eject a disc if it's physical, otherwise NOP. Returns true on success(or NOP), false on error
22
23 private:
24 CDAccess(const CDAccess&); // No copy constructor.
25 CDAccess& operator=(const CDAccess&); // No assignment operator.
26 };
27
28 CDAccess *cdaccess_open_image(const char *path, bool image_memcache);
29 CDAccess *cdaccess_open_phys(const char *devicename);
30
31 #endif