xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
platform_id.h
Go to the documentation of this file.
1 #pragma once
5 #include "ustring.h"
6 #undef unix
7 
9 namespace xtd {
17  enum class platform_id {
19  unknown = -1,
21  win32s,
25  win32_nt,
27  win_ce,
29  unix,
31  xbox,
33  macos,
35  ios,
37  android,
38  };
39 
40  inline std::ostream& operator<<(std::ostream& os, platform_id value) {return os << to_string(value, {{platform_id::unknown, "unknown"}, {platform_id::win32s, "win32s"}, {platform_id::win32_windows, "win32_windows"}, {platform_id::win32_nt, "win32_nt"}, {platform_id::win_ce, "win_ce"}, {platform_id::unix, "unix"}, {platform_id::xbox, "xbox"}, {platform_id::macos, "macos"}, {platform_id::ios, "ios"}, {platform_id::android, "android"}});}
41  inline std::wostream& operator<<(std::wostream& os, platform_id value) {return os << to_string(value, {{platform_id::unknown, L"unknown"}, {platform_id::win32s, L"win32s"}, {platform_id::win32_windows, L"win32_windows"}, {platform_id::win32_nt, L"win32_nt"}, {platform_id::win_ce, L"win_ce"}, {platform_id::unix, L"unix"}, {platform_id::xbox, L"xbox"}, {platform_id::macos, L"macos"}, {platform_id::ios, L"ios"}, {platform_id::android, L"android"}});}
42 }
platform_id
Identifies the operating system, or platform, supported by an assembly.
Definition: platform_id.h:17
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
@ win_ce
The operating system is Windows CE.
@ win32s
The operating system is Win32s. Win32s is a layer that runs on 16-bit versions of Windows to provide ...
@ xbox
The development platform is Xbox 360.
@ win32_nt
The operating system is Windows NT or later.
@ macos
The operating system is Macintosh.
@ unix
The operating system is Unix.
@ ios
The operating system is IOs Apple.
@ unknown
The operating system is unknown.
@ android
The operating system is Android.
@ win32_windows
The operating system is Windows 95 or Windows 98.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.