35 uint32_t driveAttributes,
36 uint32_t mediaAttributes,
42: mediaType_(mediaType)
43, driveAttributes_(driveAttributes)
44, mediaAttributes_(mediaAttributes)
48, driveLetter_(driveLetter)
69 size_ = (
static_cast<unsigned long long>(sizeHi) << 32) + sizeLo;
73 space_ = (
static_cast<unsigned long long>(spaceHi) << 32) + spaceLo;
uint32_t getDriveAttributes() const
Retrieve the attributes of the drive.
char getDriveLetter() const
Retrieve the drive letter of the drive.
void setSpace(uint32_t spaceLo, uint32_t spaceHi)
uint32_t getUID() const
Retrieve the UID of the drive.
MediaType getMediaType() const
Retrieve the media type of the drive.
void setName(char drive, const char *const volname)
void setUID(uint32_t uid)
uint32_t driveAttributes_
uint64_t getSpace() const
Retrieve the free capacity on the drive.
void setMediaType(MediaType type)
uint64_t getSize() const
Retrieve the total capacity of the drive.
std::string getName() const
Retrieve the volume name of the drive.
uint32_t getMediaAttributes() const
Retrieve the attributes of the media.
std::string getPath() const
Get the file system path given by the current drive.
void setDriveAttributes(uint32_t driveAttribute)
uint32_t mediaAttributes_
void setMediaAttributes(uint32_t mediaAttribute)
Drive()
Default constructor.
void setSize(uint32_t sizeLo, uint32_t sizeHi)