xtd 0.2.0
exit_mode.h
Go to the documentation of this file.
1 #pragma once
5 #include "enum.h"
6 #include <cstdlib>
7 
9 namespace xtd {
18  enum class exit_mode {
20  normal = 0,
22  quick = 1,
23  };
24 }
25 
27 template<> struct xtd::enum_register<xtd::exit_mode> {
28  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::exit_mode> {{xtd::exit_mode::normal, "normal"}, {xtd::exit_mode::quick, "quick"}};}
29 };
exit_mode
Specifies exit mode for the xtd::environment::program_exit event.
Definition: exit_mode.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
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
Contains enum_ and enum_ut_ keywords.
Represent the exit mode when the terminates quickly (via xtd::environment::quick_exit).
Represent the exit mode when the terminates normally (via xtd::environment::exit or returning from th...
Provides the registration struct for enumerations.
Definition: enum_register.h:36