xtd 0.2.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 bool is_console_application() const noexcept;
39
42 bool is_guid_application() const noexcept;
43
46 bool is_test_application() const noexcept;
47
50 bool is_shared_library() const noexcept;
51
54 bool is_static_library() const noexcept;
55
58 string name() const noexcept;
59
62 xtd::target_id target_id() const noexcept;
64
66
68 string to_string() const noexcept override;
70
71 private:
72 xtd::target_id target_id_ = xtd::target_id::unknown;
73 };
74}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
Represents information about target type, such as the target identifier. This class cannot be inherit...
Definition target_type.hpp:17
bool is_shared_library() const noexcept
Gets target id is shared library.
bool is_console_application() const noexcept
Gets target id is console application.
bool is_static_library() const noexcept
Gets target id is static library.
bool is_guid_application() const noexcept
Gets target id is gui application.
bool is_test_application() const noexcept
Gets target id is test application.
string to_string() const noexcept override
Returns a xtd::string that represents the current object.
target_type(xtd::target_id target_id)
Initialise a new xtd::target_type class.
string name() const noexcept
Gets target id name.
target_id
Identifies the target, supported by an assembly.
Definition target_id.hpp:49
@ unknown
The processor architecture is unknown.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::object class.
Contains xtd::target_id enum class.