45 explicit operator auto()
const noexcept {
return xtd::enum_collection<xtd::io::drive_type> {{
xtd::io::drive_type::unknown,
"unknown"}, {
xtd::io::drive_type::no_root_directory,
"no_root_directory"}, {
xtd::io::drive_type::removable,
"removable"}, {
xtd::io::drive_type::fixed,
"fixed"}, {
xtd::io::drive_type::network,
"network"}, {
xtd::io::drive_type::cd_rom,
"cd_rom"}, {
xtd::io::drive_type::ram,
"ram"}};}
The drive does not have a root directory.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
The type of drive is unknown.
The drive is a fixed disk.
The drive is an optical disc device, such as a CD or DVD-ROM.
The drive is a network drive.
drive_type
Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown.
Definition: drive_type.h:24
The drive is a removable storage device, such as a floppy disk drive or a USB flash drive...
Provides the registration struct for enumerations.
Definition: enum_register.h:36