DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
imageDisk Class Reference
Inheritance diagram for imageDisk:
imageDiskD88 imageDiskElToritoFloppy imageDiskMemory imageDiskNFD imageDiskVFD imageDiskVHD QCow2Disk

List of all members.

Public Types

enum  IMAGE_TYPE {
  ID_BASE = 0, ID_EL_TORITO_FLOPPY, ID_VFD, ID_MEMORY,
  ID_VHD, ID_D88, ID_NFD
}

Public Member Functions

virtual Bit8u Read_Sector (Bit32u head, Bit32u cylinder, Bit32u sector, void *data, unsigned int req_sector_size=0)
virtual Bit8u Write_Sector (Bit32u head, Bit32u cylinder, Bit32u sector, const void *data, unsigned int req_sector_size=0)
virtual Bit8u Read_AbsoluteSector (Bit32u sectnum, void *data)
virtual Bit8u Write_AbsoluteSector (Bit32u sectnum, const void *data)
virtual void Set_Reserved_Cylinders (Bitu resCyl)
virtual Bit32u Get_Reserved_Cylinders ()
virtual void Set_Geometry (Bit32u setHeads, Bit32u setCyl, Bit32u setSect, Bit32u setSectSize)
virtual void Get_Geometry (Bit32u *getHeads, Bit32u *getCyl, Bit32u *getSect, Bit32u *getSectSize)
virtual Bit8u GetBiosType (void)
virtual Bit32u getSectSize (void)
 imageDisk (FILE *imgFile, Bit8u *imgName, Bit32u imgSizeK, bool isHardDisk)
 imageDisk (FILE *diskimg, const char *diskName, Bit32u cylinders, Bit32u heads, Bit32u sectors, Bit32u sector_size, bool hardDrive)
int Addref ()
int Release ()

Public Attributes

IMAGE_TYPE class_id = ID_BASE
std::string diskname
bool active = false
Bit32u sector_size = 512
Bit32u heads = 0
Bit32u cylinders = 0
Bit32u sectors = 0
bool hardDrive = false
Bit64u diskSizeK = 0

Protected Member Functions

 imageDisk (IMAGE_TYPE class_id)

Protected Attributes

FILE * diskimg = NULL
Bit8u floppytype = 0
Bit32u reserved_cylinders = 0
Bit64u image_base = 0
Bit64u image_length = 0

Detailed Description

Definition at line 53 of file bios_disk.h.


The documentation for this class was generated from the following files: