xtd 0.2.0
target_type.h
Go to the documentation of this file.
1 #pragma once
5 #include "object.h"
6 #include "target_id.h"
7 
9 namespace 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  ustring name() const noexcept;
59 
62  xtd::target_id target_id() const noexcept;
64 
66 
68  ustring to_string() const noexcept override;
70 
71  private:
73  };
74 }
Represents information about target type, such as the target identifier. This class cannot be inherit...
Definition: target_type.h:17
bool is_static_library() const noexcept
Gets target id is static library.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
bool is_guid_application() const noexcept
Gets target id is gui application.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
ustring name() const noexcept
Gets target id name.
bool is_shared_library() const noexcept
Gets target id is shared library.
bool is_test_application() const noexcept
Gets target id is test application.
xtd::target_id target_id() const noexcept
Gets target id value.
The processor architecture is unknown.
target_type(xtd::target_id target_id)
Initialise a new xtd::target_type class.
target_id
Identifies the target, supported by an assembly.
Definition: target_id.h:35
Contains xtd::object class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
bool is_console_application() const noexcept
Gets target id is console application.
ustring to_string() const noexcept override
Returns a sxd::ustring that represents the current object.
Contains xtd::target_id enum class.