xtd 0.2.0
drive_type.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../enum.hpp"
6
8namespace xtd {
10 namespace io {
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};
Contains enum_ and enum_ut_ keywords.
drive_type
Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory,...
Definition drive_type.hpp:26
@ ram
The drive is a RAM disk.
Definition drive_type.hpp:40
@ no_root_directory
The drive does not have a root directory.
Definition drive_type.hpp:30
@ network
The drive is a network drive.
Definition drive_type.hpp:36
@ removable
The drive is a removable storage device, such as a floppy disk drive or a USB flash drive.
Definition drive_type.hpp:32
@ unknown
The type of drive is unknown.
Definition drive_type.hpp:28
@ cd_rom
The drive is an optical disc device, such as a CD or DVD-ROM.
Definition drive_type.hpp:38
@ fixed
The drive is a fixed disk.
Definition drive_type.hpp:34
std::vector< std::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:24
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.hpp:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Provides the registration struct for enumerations.
Definition enum_register.hpp:38