xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
io
drive_type.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../enum.hpp
"
6
8
namespace
xtd
{
10
namespace
io
{
26
enum class
drive_type
{
28
unknown
,
30
no_root_directory
,
32
removable
,
34
fixed
,
36
network
,
38
cd_rom
,
40
ram
41
};
42
}
43
}
44
46
template
<>
struct
xtd::enum_register
<
xtd
::
io::drive_type
> {
47
static
auto
values
()
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
};
enum.hpp
Contains enum_ and enum_ut_ keywords.
xtd::io::drive_type
drive_type
Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory,...
Definition
drive_type.hpp:26
xtd::io::drive_type::ram
@ ram
The drive is a RAM disk.
Definition
drive_type.hpp:40
xtd::io::drive_type::no_root_directory
@ no_root_directory
The drive does not have a root directory.
Definition
drive_type.hpp:30
xtd::io::drive_type::network
@ network
The drive is a network drive.
Definition
drive_type.hpp:36
xtd::io::drive_type::removable
@ removable
The drive is a removable storage device, such as a floppy disk drive or a USB flash drive.
Definition
drive_type.hpp:32
xtd::io::drive_type::unknown
@ unknown
The type of drive is unknown.
Definition
drive_type.hpp:28
xtd::io::drive_type::cd_rom
@ cd_rom
The drive is an optical disc device, such as a CD or DVD-ROM.
Definition
drive_type.hpp:38
xtd::io::drive_type::fixed
@ fixed
The drive is a fixed disk.
Definition
drive_type.hpp:34
xtd::enum_collection
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
xtd::io
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition
binary_reader.hpp:17
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.