mirror of
https://github.com/ksherlock/profuse.git
synced 2024-12-25 08:29:22 +00:00
31 lines
614 B
C++
31 lines
614 B
C++
|
|
|
|
#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);
|
|
static DavexDiskImage *Create(const char *name, size_t blocks, const char *vname);
|
|
static DavexDiskImage *Open(MappedFile *);
|
|
|
|
|
|
private:
|
|
|
|
DavexDiskImage(MappedFile *);
|
|
static void Validate(MappedFile *);
|
|
|
|
bool _changed;
|
|
std::string _volumeName;
|
|
};
|
|
|
|
|
|
} |