profuse/Device/DavexDiskImage.h
ksherlock 2243d8d136 shared_ptr changes.
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@346 aa027e90-d47c-11dd-86d7-074df07e0730
2011-02-22 04:57:50 +00:00

40 lines
755 B
C++

#ifndef __DAVEXDISKIMAGE_H__
#define __DAVEXDISKIMAGE_H__
#include <string>
#include <Device/BlockDevice.h>
#include <Device/DiskImage.h>
namespace Device {
// only supports 1 file; may be split over multiple files.
class DavexDiskImage : public DiskImage {
public:
virtual ~DavexDiskImage();
static BlockDevicePointer Create(const char *name, size_t blocks);
static BlockDevicePointer Create(const char *name, size_t blocks, const char *vname);
static BlockDevicePointer Open(MappedFile *);
virtual BlockCachePointer createBlockCache();
private:
DavexDiskImage();
DavexDiskImage(MappedFile *);
static void Validate(MappedFile *);
bool _changed;
std::string _volumeName;
};
}
#endif