xtd 0.2.0
drive_type.h
Go to the documentation of this file.
1 #pragma once
5 #include "../enum.h"
6 
8 namespace xtd {
10  namespace io {
24  enum class drive_type {
26  unknown,
30  removable,
32  fixed,
34  network,
36  cd_rom,
38  ram
39  };
40  }
41 }
42 
44 template<> struct xtd::enum_register<xtd::io::drive_type> {
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"}};}
46 };
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.
The drive is a RAM disk.
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