xtd 0.2.0
system_report.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/environment>
6#include <xtd/static>
7#include <xtd/string>
8#include <xtd/version>
9#include <xtd/collections/generic/key_value_pair>
10#include <xtd/collections/generic/list>
11#include <xtd/drawing/color>
12#include <xtd/drawing/font>
13#include "forms/screen.hpp"
15#include "forms_export.hpp"
16
18namespace xtd {
25 public:
60
62
77
79
83 static xtd::compiler compiler() noexcept;
84
88
92
95 static xtd::cpp_language language() noexcept;
96
100 static std::locale locale() noexcept;
101
105
108 static xtd::processor processor() noexcept;
109
112 static xtd::array<xtd::forms::screen> screens() noexcept;
113
117
121
125 static xtd::diagnostics::stack_trace stack_trace(size_t skip_frames) noexcept;
126
129 static const system_color_collection& system_colors() noexcept;
130
133 static const system_font_collection& system_fonts() noexcept;
134
138
141 static xtd::toolkit toolkit() noexcept;
142
145 static const environment::xtd_library_collection& xtd_libraries() noexcept;
147
149
154 static xtd::string to_json() noexcept;
159 static xtd::string to_json(reports reports) noexcept;
162 static xtd::string to_string() noexcept;
166 static xtd::string to_string(reports reports) noexcept;
170 static xtd::string to_xml() noexcept;
175 static xtd::string to_xml(reports reports) noexcept;
177 };
178}
179
182
183template<> struct xtd::enum_register<xtd::system_report::reports> {
185};
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.hpp:79
Represents information about c++ libraries, such as the version and standard identifier....
Definition compiler.hpp:27
Represents information about c++ libraries, such as the version and language identifier....
Definition cpp_language.hpp:26
The environment class.
Definition environment.hpp:69
Provides system report about the current system environment.
Definition system_report.hpp:24
xtd::collections::generic::list< xtd::collections::generic::key_value_pair< xtd::string, xtd::string > > environment_variable_collection
Represents an environment variables collection.
Definition system_report.hpp:65
static const system_font_family_collection & generic_font_families() noexcept
Gets a generic font_families.
xtd::collections::generic::list< xtd::collections::generic::key_value_pair< xtd::string, xtd::string > > system_information_collection
Represents a system informations collection.
Definition system_report.hpp:75
static xtd::string to_json() noexcept
Generates json format string report.
static xtd::processor processor() noexcept
Gets an xtd::processor object that contains the processor identifier.
static xtd::compiler compiler() noexcept
Gets an xtd::compiler object that contains the current compiler identifier and version number.
static std::locale locale() noexcept
Gets a copy of the global C++ locale, which is the locale most recently used as the argument to See s...
static const environment::xtd_library_collection & xtd_libraries() noexcept
Gets xtd libraries informations.
static xtd::toolkit toolkit() noexcept
Gets an xtd::toolkit object that contains the current toolkit identifier and version number.
xtd::collections::generic::list< xtd::collections::generic::key_value_pair< xtd::string, xtd::string > > special_folder_collection
Represents a folders collection.
Definition system_report.hpp:67
static environment_variable_collection environment_variables() noexcept
Retrieves all environment variable names and their values from the current process.
static const system_color_collection & system_colors() noexcept
Gets system colors.
static xtd::string to_xml() noexcept
Generates xml format string report.
xtd::collections::generic::list< xtd::collections::generic::key_value_pair< xtd::string, xtd::drawing::font > > system_font_collection
Represents a fonts collection.
Definition system_report.hpp:71
static system_information_collection system_informations() noexcept
Gets system informations.
static xtd::operating_system operating_system() noexcept
Gets an xtd::operating_system object that contains the current platform identifier and version number...
xtd::collections::generic::list< xtd::collections::generic::key_value_pair< xtd::string, xtd::drawing::color > > system_color_collection
Represents a colors collection.
Definition system_report.hpp:69
static xtd::string to_string() noexcept
Generates string report.
static xtd::cpp_language language() noexcept
Gets an xtd::cpp_language object that contains the current c++ standard identifier and version number...
static const special_folder_collection & special_folders() noexcept
Gets directory paths to system special folders.
xtd::collections::generic::list< xtd::collections::generic::key_value_pair< xtd::string, xtd::drawing::font_family > > system_font_family_collection
Represents a font families collection.
Definition system_report.hpp:73
static const system_font_collection & system_fonts() noexcept
Gets system fonts.
reports
Specifies enumerated constants used by xtd::system_report::to_json, xtd::system_report::to_string and...
Definition system_report.hpp:27
@ environment_variables
Environment variable names and their values.
Definition system_report.hpp:45
@ stack_trace
Stack trace information.
Definition system_report.hpp:29
@ libraries
xtd libraries informations collection.
Definition system_report.hpp:31
@ processor
The procesor identifier.
Definition system_report.hpp:33
@ system_informations
System informations collection.
Definition system_report.hpp:57
@ generic_font_families
Generic font families collection.
Definition system_report.hpp:51
@ language
The c++ standard identifier and version number.
Definition system_report.hpp:39
@ compiler
The compiler identifier and version number.
Definition system_report.hpp:37
@ special_folders
Directory paths to system special folders.
Definition system_report.hpp:47
@ system_fonts
System fonsts collection.
Definition system_report.hpp:53
@ system_colors
System colors collection.
Definition system_report.hpp:49
@ screens
Displays on the system.
Definition system_report.hpp:55
@ operating_system
The platform identifier and version number.
Definition system_report.hpp:35
@ toolkit
The toolkit identifier and version number.
Definition system_report.hpp:43
@ locale
The global C++ locale.
Definition system_report.hpp:41
static xtd::diagnostics::stack_trace stack_trace() noexcept
Gets current stack trace information.
static xtd::array< xtd::forms::screen > screens() noexcept
Gets an array of all displays on the system.
Contains forms_export_ keyword.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.hpp:34
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
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::forms::screen component.
Provides the registration struct for enumerations.
Definition enum_register.hpp:38
Contains xtd::forms::system_information class.