xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
target_type.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
object.hpp
"
6
#include "
target_id.hpp
"
7
9
namespace
xtd
{
17
class
target_type
:
public
object
{
18
public
:
20
24
target_type
(
xtd::target_id
target_id
);
26
28
target_type
() =
default
;
29
target_type
(
const
target_type
&) =
default
;
30
target_type
& operator =(
const
target_type
&) =
default
;
32
34
38
[[nodiscard]]
auto
is_console_application
() const noexcept ->
bool
;
39
42
[[nodiscard]] auto
is_gui_application
() const noexcept ->
bool
;
43
46
[[nodiscard]] auto
is_test_application
() const noexcept ->
bool
;
47
50
[[nodiscard]] auto
is_shared_library
() const noexcept ->
bool
;
51
54
[[nodiscard]] auto
is_static_library
() const noexcept ->
bool
;
55
58
[[nodiscard]] auto
name
() const noexcept ->
xtd
::
string
;
59
62
[[nodiscard]] auto
target_id
() const noexcept ->
xtd
::
target_id
;
64
66
70
[[nodiscard]] auto
get_hash_code
() const noexcept ->
xtd
::
usize
override;
71
74
[[nodiscard]] auto
to_string
() const noexcept ->
xtd
::
string
override;
76
77
private:
78
xtd
::
target_id
target_id_ =
xtd
::
target_id
::
unknown
;
79
};
80
}
xtd::object::object
object()=default
Create a new instance of the ultimate base class object.
xtd::target_type::is_console_application
auto is_console_application() const noexcept -> bool
Gets target id is console application.
xtd::target_type::is_static_library
auto is_static_library() const noexcept -> bool
Gets target id is static library.
xtd::target_type::is_gui_application
auto is_gui_application() const noexcept -> bool
Gets target id is gui application.
xtd::target_type::name
auto name() const noexcept -> xtd::string
Gets target id name.
xtd::target_type::get_hash_code
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
xtd::target_type::to_string
auto to_string() const noexcept -> xtd::string override
Returns a xtd::string that represents the current object.
xtd::target_type::is_test_application
auto is_test_application() const noexcept -> bool
Gets target id is test application.
xtd::target_type::target_id
auto target_id() const noexcept -> xtd::target_id
Gets target id value.
xtd::target_type::target_type
target_type(xtd::target_id target_id)
Initialise a new xtd::target_type class.
xtd::target_type::is_shared_library
auto is_shared_library() const noexcept -> bool
Gets target id is shared library.
xtd::usize
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition
usize.hpp:22
xtd::target_id
target_id
Identifies the target, supported by an assembly.
Definition
target_id.hpp:17
xtd::architecture_id::unknown
@ unknown
The processor architecture is unknown.
Definition
architecture_id.hpp:22
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
object.hpp
Contains xtd::object class.
target_id.hpp
Contains xtd::target_id enum class.
Generated on
for xtd by
Gammasoft
. All rights reserved.