21 #if !defined(__XTD_CURRENT_TARGET_ID__) || !defined(__XTD_TARGET_ID_UNKNOWN__) || !defined(__XTD_TARGET_ID_CONSOLE_APPLICATION__) || !defined(__XTD_TARGET_ID_GUI_APPLICATION__) || !defined(__XTD_TARGET_ID_TEST_APPLICATION__) || !defined(__XTD_TARGET_ID_INTERFACE_LIBRARY__) || !defined(__XTD_TARGET_ID_MODULE_LIBRARY__) || !defined(__XTD_TARGET_ID_SHARED_LIBRARY__) || !defined(__XTD_TARGET_ID_STATIC_LIBRARY__) || !defined(__XTD_TARGET_ID_CUSTOM_TARGET__) 22 #error "Some variables (like __XTD_TARGET_ID__) are not defined. This is probably because you are not using CMake to generate your project. See the following link for more information: https://gammasoft71.github.io/xtd/docs/documentation/Guides/xtd.cmake/Overview..." 37 unknown = __XTD_TARGET_ID_UNKNOWN__,
59 explicit operator auto()
const noexcept {
return xtd::enum_collection<xtd::target_id> {{
xtd::target_id::unknown,
"unknown"}, {
xtd::target_id::console_application,
"console_application"}, {
xtd::target_id::gui_application,
"gui_application"}, {
xtd::target_id::test_application,
"test_application"}, {
xtd::target_id::interface_library,
"interface_library"}, {
xtd::target_id::module_library,
"module_library"}, {
xtd::target_id::shared_library,
"shared_library"}, {
xtd::target_id::static_library,
"static_library"}, {
xtd::target_id::custom_target,
"custom_target"}};}
The target is module library.
The target is interface library.
The target is custom target.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Contains enum_ and enum_ut_ keywords.
The processor architecture is unknown.
The target is console application.
The target is static library.
target_id
Identifies the target, supported by an assembly.
Definition: target_id.h:35
The target is shared library.
The target is gui application.
The target is test application.
Provides the registration struct for enumerations.
Definition: enum_register.h:36