74    bool is_64_bit() const noexcept {
return is_64_bit_;}
 
   91      static std::map<xtd::platform_id, xtd::ustring> operating_system_names {{
platform_id::win32s, 
"Microsoft Win32S"}, {
platform_id::win32_windows, 
"Microsoft Windows 95"}, {
platform_id::win32_nt, 
"Microsoft Windows NT"}, {
platform_id::win_ce, 
"Microsoft Windows CE"}, {
platform_id::unix, 
"Unix"}, {
platform_id::xbox, 
"Xbox"}, {
platform_id::macos, 
"macOS"}, {
platform_id::ios, 
"iOS"}, {
platform_id::android, 
"Android"}, {
platform_id::unknown, 
"<Unknown>"}};
 
   93      return operating_system_names[platform_];
 
  115      if (!version_string_.empty()) 
return version_string_;
 
  118      return version_string_;
 
  130    bool is_64_bit_ = 
false;
 
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
 
Represents information about an operating system, such as the version and platform identifier....
Definition: operating_system.h:23
 
operating_system(xtd::platform_id platform, const xtd::version &version, const xtd::ustring &service_pack)
Initializes a new instance of the operating_system class, using the specified platform identifier val...
Definition: operating_system.h:38
 
xtd::ustring desktop_environment() const
Gets the desktop environment .
Definition: operating_system.h:70
 
bool is_linux_platform() const noexcept
Determines whether the current platform is Unix family.
Definition: operating_system.h:82
 
const xtd::version & version() const noexcept
Gets a xtd::version object that identifies the operating system.
Definition: operating_system.h:109
 
xtd::ustring to_string() const noexcept
Converts the value of this operating_system object to its equivalent string representation.
Definition: operating_system.h:123
 
operating_system(xtd::platform_id platform, const xtd::version &version, const xtd::ustring &service_pack, const xtd::ustring &desktop_environment, bool is_64_bit)
Initializes a new instance of the operating_system class, using the specified platform identifier val...
Definition: operating_system.h:56
 
operating_system(xtd::platform_id platform, const xtd::version &version)
Initializes a new instance of the operating_system class, using the specified platform identifier val...
Definition: operating_system.h:30
 
operating_system(xtd::platform_id platform, const xtd::version &version, const xtd::ustring &service_pack, const xtd::ustring &desktop_environment)
Initializes a new instance of the operating_system class, using the specified platform identifier val...
Definition: operating_system.h:47
 
xtd::ustring version_string() const noexcept
Gets the concatenated string representation of the platform identifier, version, and service pack tha...
Definition: operating_system.h:114
 
bool is_macos_platform() const noexcept
Determines whether the current platform is macOS family.
Definition: operating_system.h:78
 
bool is_windows_platform() const noexcept
Determines whether the current platform is Windows family.
Definition: operating_system.h:86
 
bool is_64_bit() const noexcept
Determines whether the current operating system is a 64-bit operating system.
Definition: operating_system.h:74
 
xtd::platform_id platform() const noexcept
Gets a xtd::platform_id enumeration value that identifies the operating system platform.
Definition: operating_system.h:98
 
xtd::ustring name() const noexcept
Gets the concatenated string representation of the platform identifier.
Definition: operating_system.h:90
 
xtd::ustring service_pack() const noexcept
Gets the service pack version represented by this operating_system object.
Definition: operating_system.h:104
 
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
 
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition: version.h:93
 
int32_t minor() const noexcept
Gets the value of the minor component of the version number for the current xtd::version object.
 
int32_t major() const noexcept
Gets the value of the major component of the version number for the current xtd::version object.
 
xtd::ustring to_string() const noexcept override
Converts the value of the current xtd::version object to its equivalent xtd::ustring representation.
 
platform_id
Identifies the operating system, or platform, supported by an assembly.
Definition: platform_id.h:17
 
@ 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::object class.
 
Contains xtd::ustring class.
 
Contains xtd::version class.