xtd 0.2.0
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
70 xtd::size get_hash_code() const noexcept override;
71
74 string to_string() const noexcept override;
76
77 private:
78 xtd::target_id target_id_ = xtd::target_id::unknown;
79 };
80}
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
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.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
target_id
Identifies the target, supported by an assembly.
Definition target_id.hpp:17
@ 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.