xtd 0.2.0
Loading...
Searching...
No Matches
assembly.hpp
Go to the documentation of this file.
1
3#pragma once
4#include "../iequatable.hpp"
5#include "../object.hpp"
6#include "../string.hpp"
7
9namespace xtd {
11 namespace reflection {
27 class core_export_ assembly : public xtd::object, public xtd::iequatable<xtd::reflection::assembly> {
28 public:
30 assembly(assembly&&) = default;
31 assembly(const assembly&) = default;
32 auto operator =(assembly&&) -> assembly& = default;
33 auto operator =(const assembly&) -> assembly& = default;
35
37
41 [[nodiscard]] auto company() const noexcept -> const xtd::string&;
42
45 [[nodiscard]] auto configuration() const noexcept -> const xtd::string&;
46
49 [[nodiscard]] auto copyright() const noexcept -> const xtd::string&;
50
53 [[nodiscard]] auto culture() const noexcept -> const xtd::string&;
54
57 [[nodiscard]] auto description() const noexcept -> const xtd::string&;
58
61 [[nodiscard]] auto file_name() const noexcept -> xtd::string;
62
65 [[nodiscard]] auto file_version() const noexcept -> const xtd::string&;
66
69 [[nodiscard]] auto guid() const noexcept -> const xtd::string&;
70
73 [[nodiscard]] auto identifier() const noexcept -> const xtd::string&;
74
77 [[nodiscard]] auto location() const noexcept -> xtd::string;
78
81 [[nodiscard]] auto location_path() const noexcept -> xtd::string;
82
85 [[nodiscard]] auto name() const noexcept -> const xtd::string&;
86
89 [[nodiscard]] auto name_or_file_name() const noexcept -> xtd::string;
90
93 [[nodiscard]] auto product() const noexcept -> const xtd::string&;
94
97 [[nodiscard]] auto title() const noexcept -> const xtd::string&;
98
101 [[nodiscard]] auto trademarks() const noexcept -> const xtd::string&;
102
105 [[nodiscard]] auto version() const noexcept -> const xtd::string&;
107
109
114 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
118 [[nodiscard]] auto equals(const assembly& other) const noexcept -> bool override;
119
122 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::size override;
124
126
130 [[nodiscard]] static auto get_executing_assembly() noexcept -> const assembly&;
132
133 protected:
135
139 assembly() = default;
141
142 private:
143 xtd::string company_;
144 xtd::string configuration_;
145 xtd::string copyright_;
146 xtd::string culture_;
147 xtd::string description_;
148 xtd::string file_version_;
149 xtd::string guid_;
150 xtd::string identifier_;
151 xtd::string name_;
152 xtd::string product_;
153 xtd::string title_;
154 xtd::string trademarks_;
155 xtd::string version_;
156 };
157 }
158}
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
auto copyright() const noexcept -> const xtd::string &
Initializes a new instance of the xtd::reflection::assembly_copyright_attribute class.
auto configuration() const noexcept -> const xtd::string &
Gets assembly configuration information.
auto culture() const noexcept -> const xtd::string &
Gets culture information.
static auto get_executing_assembly() noexcept -> const assembly &
Gets the assembly that contains the code that is currently executing.
assembly()=default
Initializes a new instance of the xtd::reflection::assembly class.
auto trademarks() const noexcept -> const xtd::string &
Gets trademark information.
auto file_version() const noexcept -> const xtd::string &
Gets file version information.
auto name() const noexcept -> const xtd::string &
Gets name information.
auto title() const noexcept -> const xtd::string &
Gets title information.
auto guid() const noexcept -> const xtd::string &
Gets guid information.
auto identifier() const noexcept -> const xtd::string &
Gets identifier information.
auto description() const noexcept -> const xtd::string &
Gets decription information.
auto location_path() const noexcept -> xtd::string
Gets the path for the executable file that started the application, not including the executable name...
auto get_hash_code() const noexcept -> xtd::size override
Serves as a hash function for a particular type.
auto version() const noexcept -> const xtd::string &
Gets version information.
auto name_or_file_name() const noexcept -> xtd::string
Gets name or file_name if empty information.
auto product() const noexcept -> const xtd::string &
Gets product information.
auto location() const noexcept -> xtd::string
Gets the location of the executable file.
auto file_name() const noexcept -> xtd::string
Gets file_name information.
auto company() const noexcept -> const xtd::string &
Gets company name information.
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:60
Contains xtd::iequatable interface.
The xtd::reflection namespace contains types that retrieve information about assemblies,...
Definition assembly.hpp:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::string alias.