2009-11-21 01:45:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include "BlockDevice.h"
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ProFUSE {
|
|
|
|
|
|
|
|
// only supports 1 file; may be split over multiple files.
|
|
|
|
|
|
|
|
class DavexDiskImage : public DiskImage {
|
|
|
|
public:
|
|
|
|
|
|
|
|
DavexDiskImage(const char *, bool readOnly);
|
|
|
|
virtual ~DavexDiskImage();
|
|
|
|
|
|
|
|
static DavexDiskImage *Create(const char *name, size_t blocks);
|
2009-11-26 15:58:10 +00:00
|
|
|
static DavexDiskImage *Create(const char *name, size_t blocks, const char *vname);
|
2009-11-21 01:45:08 +00:00
|
|
|
static DavexDiskImage *Open(MappedFile *);
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
DavexDiskImage(MappedFile *);
|
|
|
|
static void Validate(MappedFile *);
|
|
|
|
|
|
|
|
bool _changed;
|
|
|
|
std::string _volumeName;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|