xtd 0.2.0
Loading...
Searching...
No Matches
drive_type.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../enum.hpp"
6
8namespace xtd {
10 namespace io {
26 enum class drive_type {
28 unknown,
34 fixed,
36 network,
38 cd_rom,
40 ram
41 };
42 }
43}
44
46template<> struct xtd::enum_register<xtd::io::drive_type> {
47 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"}};}
48};
drive_type
Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory,...
Definition drive_type.hpp:26
@ 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< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.hpp:22
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Provides the registration struct for enumerations.
Definition enum_register.hpp:38