xtd 0.2.0
Loading...
Searching...
No Matches
exit_mode.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "enum.hpp"
6
8namespace xtd {
16 enum class exit_mode {
18 normal = 0,
20 quick = 1,
21 };
22}
23
25template<> struct xtd::enum_register<xtd::exit_mode> {
26 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::exit_mode> {{xtd::exit_mode::normal, "normal"}, {xtd::exit_mode::quick, "quick"}};}
27};
Contains enum_ and enum_ut_ keywords.
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
exit_mode
Specifies exit mode for the xtd::environment::program_exit event.
Definition exit_mode.hpp:16
@ quick
Represent the exit mode when the terminates quickly (via xtd::environment::quick_exit).
Definition exit_mode.hpp:20
@ normal
Represent the exit mode when the terminates normally (via xtd::environment::exit or returning from th...
Definition exit_mode.hpp:18
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