xtd 0.2.0
boot_mode.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum>
6 
8 namespace xtd {
10  namespace forms {
22  enum class boot_mode {
24  normal = 0,
26  fail_safe = 1,
29  };
30  }
31 }
32 
34 template<> struct xtd::enum_register<xtd::forms::boot_mode> {
35  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::forms::boot_mode> {{xtd::forms::boot_mode::normal, "normal"}, {xtd::forms::boot_mode::fail_safe, "fail_safe"}, {xtd::forms::boot_mode::fail_safe_with_network, "fail_safe_with_network"}};}
36 };
boot_mode
Specifies the mode to start the computer in.
Definition: boot_mode.h:22
The default appearance defined by the control class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Starts the computer by using only the basic files and drivers.
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
Starts the computer by using the basic files, drivers and the services and drivers necessary to start...
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Provides the registration struct for enumerations.
Definition: enum_register.h:36