xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Go to the documentation of this file.
1 #pragma once
5 #include "../ustring.h"
8 namespace xtd {
10  namespace io {
20  enum class drive_type {
22  unknown,
26  removable,
28  fixed,
30  network,
32  cd_rom,
34  ram
35  };
37  inline std::ostream& operator<<(std::ostream& os, drive_type value) {return os << to_string(value, {{drive_type::unknown, "unknown"}, {drive_type::no_root_directory, "no_root_directory"}, {drive_type::removable, "removable"}, {drive_type::fixed, "fixed"}, {drive_type::network, "network"}, {drive_type::cd_rom, "cd_rom"}, {drive_type::ram, "ram"}});}
38  inline std::wostream& operator<<(std::wostream& os, drive_type value) {return os << to_string(value, {{drive_type::unknown, L"unknown"}, {drive_type::no_root_directory, L"no_root_directory"}, {drive_type::removable, L"removable"}, {drive_type::fixed, L"fixed"}, {drive_type::network, L"network"}, {drive_type::cd_rom, L"cd_rom"}, {drive_type::ram, L"ram"}});}
39  }
40 }
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::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1110
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.
Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown.
Definition: drive_type.h:20
The drive is a removable storage device, such as a floppy disk drive or a USB flash drive...