xtd 0.2.0
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 const string& file_version() const noexcept;
61
64 const string& guid() const noexcept;
65
68 const string& identifier() const noexcept;
69
72 string location() const noexcept;
73
76 const string& name() const noexcept;
77
80 const string& product() const noexcept;
81
84 string location_path() const noexcept;
85
88 const string& title() const noexcept;
89
92 const string& trademarks() const noexcept;
93
96 const string& version() const noexcept;
98
100
105 bool equals(const object& obj) const noexcept override;
109 bool equals(const assembly& other) const noexcept override;
110
113 xtd::size get_hash_code() const noexcept override;
115
117
121 static const assembly& get_executing_assembly() noexcept;
123
124 protected:
126
130 assembly() = default;
132
133 private:
134 string company_;
135 string configuration_;
136 string copyright_;
137 string culture_;
138 string description_;
139 string file_version_;
140 string guid_;
141 string identifier_;
142 string name_;
143 string product_;
144 string title_;
145 string trademarks_;
146 string version_;
147 };
148 }
149}
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.
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.
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.