xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
assert_dialog_result.h
Go to the documentation of this file.
1
4#pragma once
5#include "../ustring.h"
6
8namespace xtd {
10 namespace diagnostics {
20 abort = 3,
22 retry = 4,
24 ignore = 5,
25 };
26
28 inline std::ostream& operator<<(std::ostream& os, assert_dialog_result value) {return os << to_string(value, {{assert_dialog_result::abort, "abort"}, {assert_dialog_result::retry, "retry"}, {assert_dialog_result::ignore, "ignore"}});}
29 inline std::wostream& operator<<(std::wostream& os, assert_dialog_result value) {return os << to_string(value, {{assert_dialog_result::abort, L"abort"}, {assert_dialog_result::retry, L"retry"}, {assert_dialog_result::ignore, L"ignore"}});}
31 }
32}
assert_dialog_result
Specifies identifiers to indicate the return value of an assert dialog box.
Definition assert_dialog_result.h:18
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition to_string.h:37
@ retry
The assert dialog return value is Retry (usually sent from a button labeled Retry).
@ ignore
The assert dialog return value is Ignore (usually sent from a button labeled Ignore).
@ abort
The assert dialog return value is Abort (usually sent from a button labeled Abort).
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17