xtd 0.2.0
Loading...
Searching...
No Matches
drive_type.h
Go to the documentation of this file.
1
4#pragma once
5#include "../enum.h"
6
8namespace xtd {
10 namespace io {
24 enum class drive_type {
26 unknown,
32 fixed,
34 network,
36 cd_rom,
38 ram
39 };
40 }
41}
42
44template<> 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};
drive_type
Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory,...
Definition drive_type.h:24
@ ram
The drive is a RAM disk.
@ no_root_directory
The drive does not have a root directory.
@ network
The drive is a network drive.
@ removable
The drive is a removable storage device, such as a floppy disk drive or a USB flash drive.
@ unknown
The type of drive is unknown.
@ cd_rom
The drive is an optical disc device, such as a CD or DVD-ROM.
@ fixed
The drive is a fixed disk.
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 xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:36