xtd 0.2.0
compiler.h
Go to the documentation of this file.
1 #pragma once
5 #include <vector>
6 #include "build_type.h"
7 #include "compiler_id.h"
8 #include "object.h"
9 #include "ustring.h"
10 #include "version.h"
11 
13 namespace xtd {
23  class compiler final : public object {
24  public:
26 
35 
37  compiler() = default;
38  compiler(const compiler&) = default;
39  compiler& operator =(const compiler&) = default;
41 
43 
47  xtd::build_type build_type() const noexcept;
48 
51  xtd::compiler_id compiler_id() const noexcept;
52 
55  bool is_build_type_debug() const noexcept;
56 
59  bool is_64_bit() noexcept;
60 
63  xtd::ustring name() const noexcept;
64 
67  xtd::ustring version_string() const noexcept;
68 
71  const xtd::version& version() const noexcept;
73 
75 
79  xtd::ustring to_string() const noexcept override;
81 
82  private:
84  xtd::version version_;
86  bool is_64_bit_ = false;
87  };
88 }
Represents information about c++ libraries, such as the version and standard identifier. This class cannot be inherited.
Definition: compiler.h:23
compiler_id
Identifies the compiler, supported by an assembly.
Definition: compiler_id.h:16
build_type
Identifies the build type.
Definition: build_type.h:16
bool is_64_bit() noexcept
Gets is 64 bits.
compiler(xtd::compiler_id compiler_id, const xtd::version &version, xtd::build_type build_type, bool is_64_bit)
Initialise a new xtd::compiler class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
xtd::ustring version_string() const noexcept
Gets compiler version string.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition: version.h:95
Build type debug.
const xtd::version & version() const noexcept
Gets compiler version.
xtd::compiler_id compiler_id() const noexcept
Gets the compiler id.
The processor architecture is unknown.
Contains xtd::ustring class.
Contains xtd::version class.
xtd::ustring name() const noexcept
Gets compiler name.
Contains xtd::object class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:31
xtd::build_type build_type() const noexcept
Gets the build type.
bool is_build_type_debug() const noexcept
Gets build type is debug.
Contains xtd::compiler_id enum class.
Contains xtd::build_type enum class.
xtd::ustring to_string() const noexcept override
Converts the value of this operating_system object to its equivalent string representation.