openMSX
RamDSKDiskImage.hh
Go to the documentation of this file.
1 #ifndef RAMDSKDISKIMAGE_HH
2 #define RAMDSKDISKIMAGE_HH
3 
4 #include "SectorBasedDisk.hh"
5 #include "MemBuffer.hh"
6 
7 namespace openmsx {
8 
10 {
11 public:
12  explicit RamDSKDiskImage(size_t size = 720 * 1024);
13  virtual ~RamDSKDiskImage();
14 
15 private:
16  // SectorBasedDisk
17  virtual void readSectorImpl(size_t sector, byte* buf);
18  virtual void writeSectorImpl(size_t sector, const byte* buf);
19  virtual bool isWriteProtectedImpl() const;
20 
21  MemBuffer<byte> diskdata;
22 };
23 
24 } // namespace openmsx
25 
26 #endif