xtd 0.2.0
Loading...
Searching...
No Matches
exit_mode.h
Go to the documentation of this file.
1
4#pragma once
5#include "enum.h"
6#include <cstdlib>
7
9namespace xtd {
18 enum class exit_mode {
20 normal = 0,
22 quick = 1,
23 };
24}
25
27template<> 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};
Contains enum_ and enum_ut_ keywords.
std::vector< xtd::collections::generic::key_value_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.h:22
exit_mode
Specifies exit mode for the xtd::environment::program_exit event.
Definition exit_mode.h:18
@ quick
Represent the exit mode when the terminates quickly (via xtd::environment::quick_exit).
@ normal
Represent the exit mode when the terminates normally (via xtd::environment::exit or returning from th...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38