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(const assembly&) = default;
31 assembly(assembly&&) = default;
32 assembly& operator =(const assembly&) = default;
34
36
40 const string& company() const noexcept;
41
44 const string& configuration() const noexcept;
45
48 const string& copyright() const noexcept;
49
52 const string& culture() const noexcept;
53
56 const string& description() const noexcept;
57
60 string file_name() const noexcept;
61
64 const string& file_version() const noexcept;
65
68 const string& guid() const noexcept;
69
72 const string& identifier() const noexcept;
73
76 string location() const noexcept;
77
80 string location_path() const noexcept;
81
84 const string& name() const noexcept;
85
88 string name_or_file_name() const noexcept;
89
92 const string& product() const noexcept;
93
96 const string& title() const noexcept;
97
100 const string& trademarks() const noexcept;
101
104 const string& version() const noexcept;
106
108
113 bool equals(const object& obj) const noexcept override;
117 bool equals(const assembly& other) const noexcept override;
118
121 xtd::size get_hash_code() const noexcept override;
123
125
129 static const assembly& get_executing_assembly() noexcept;
131
132 protected:
134
138 assembly() = default;
140
141 private:
142 string company_;
143 string configuration_;
144 string copyright_;
145 string culture_;
146 string description_;
147 string file_version_;
148 string guid_;
149 string identifier_;
150 string name_;
151 string product_;
152 string title_;
153 string trademarks_;
154 string version_;
155 };
156 }
157}
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
string location_path() const noexcept
Gets the path for the executable file that started the application, not including the executable name...
const string & version() const noexcept
Gets version information.
string file_name() const noexcept
Gets file_name information.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
assembly()=default
Initializes a new instance of the xtd::reflection::assembly class.
static const assembly & get_executing_assembly() noexcept
Gets the assembly that contains the code that is currently executing.
const string & culture() const noexcept
Gets culture information.
const string & name() const noexcept
Gets name information.
const string & company() const noexcept
Gets company name information.
const string & description() const noexcept
Gets decription information.
const string & guid() const noexcept
Gets guid information.
const string & identifier() const noexcept
Gets identifier information.
string name_or_file_name() const noexcept
Gets name or file_name if empty information.
const string & copyright() const noexcept
Initializes a new instance of the xtd::reflection::assembly_copyright_attribute class.
const string & product() const noexcept
Gets product information.
const string & configuration() const noexcept
Gets assembly configuration information.
const string & file_version() const noexcept
Gets file version information.
string location() const noexcept
Gets the location of the executable file.
const string & trademarks() const noexcept
Gets trademark information.
const string & title() const noexcept
Gets title information.
bool equals(const object &obj) const noexcept 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:58
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.