xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
exit_mode.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
enum.hpp
"
6
8
namespace
xtd
{
16
enum class
exit_mode
{
18
normal
= 0,
20
quick
= 1,
21
};
22
}
23
25
template
<>
struct
xtd::enum_register
<
xtd
::
exit_mode
> {
26
static
auto
values
()
noexcept
{
return
xtd::enum_collection<xtd::exit_mode>
{{
xtd::exit_mode::normal
,
"normal"
}, {
xtd::exit_mode::quick
,
"quick"
}};}
27
};
enum.hpp
Contains enum_ and enum_ut_ keywords.
xtd::enum_collection
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
xtd::exit_mode
exit_mode
Specifies exit mode for the xtd::environment::program_exit event.
Definition
exit_mode.hpp:16
xtd::exit_mode::quick
@ quick
Represent the exit mode when the terminates quickly (via xtd::environment::quick_exit).
Definition
exit_mode.hpp:20
xtd::exit_mode::normal
@ normal
Represent the exit mode when the terminates normally (via xtd::environment::exit or returning from th...
Definition
exit_mode.hpp:18
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.