xtd 1.0.0
Loading...
Searching...
No Matches
target_type.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "object.hpp"
6#include "target_id.hpp"
7
9namespace xtd {
17 class target_type : public object {
18 public:
20
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}
object()=default
Create a new instance of the ultimate base class object.
auto is_console_application() const noexcept -> bool
Gets target id is console application.
auto is_static_library() const noexcept -> bool
Gets target id is static library.
auto is_gui_application() const noexcept -> bool
Gets target id is gui application.
auto name() const noexcept -> xtd::string
Gets target id name.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto to_string() const noexcept -> xtd::string override
Returns a xtd::string that represents the current object.
auto is_test_application() const noexcept -> bool
Gets target id is test application.
auto target_id() const noexcept -> xtd::target_id
Gets target id value.
target_type(xtd::target_id target_id)
Initialise a new xtd::target_type class.
auto is_shared_library() const noexcept -> bool
Gets target id is shared library.
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
target_id
Identifies the target, supported by an assembly.
Definition target_id.hpp:17
@ unknown
The processor architecture is unknown.
Definition architecture_id.hpp:22
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::target_id enum class.