xtd 0.2.0
Loading...
Searching...
No Matches
cpp_language.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "language_id.hpp"
6#include "object.hpp"
7#include "string.hpp"
8#include "version.hpp"
9
11namespace xtd {
26 class cpp_language final : public object {
27 public:
29
32 explicit cpp_language(int32 cpp) noexcept;
34
36 cpp_language() noexcept = default;
37 cpp_language(const cpp_language&) noexcept = default;
38 cpp_language& operator =(const cpp_language&) noexcept = default;
40
42
46 [[nodiscard]] auto is_experimental_language() const noexcept -> bool;
47
50 [[nodiscard]] auto is_supported() const noexcept -> bool;
51
54 [[nodiscard]] auto language() const noexcept -> language_id;
55
59 [[nodiscard]] auto experimental_language() const noexcept -> language_id;
60
63 [[nodiscard]] auto month() const noexcept -> int32;
64
67 [[nodiscard]] auto name() const noexcept -> xtd::string;
68
71 [[nodiscard]] auto value() const noexcept -> uint32;
72
75 [[nodiscard]] auto version_string() const noexcept -> xtd::string;
76
79 [[nodiscard]] auto version() const noexcept -> xtd::version;
80
83 [[nodiscard]] auto year() const noexcept -> int32;
85
87
91 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::size override;
92
95 [[nodiscard]] auto to_string() const noexcept -> xtd::string override;
97
98 private:
99 int32 cpp_ = 0;
100 };
101}
auto experimental_language() const noexcept -> language_id
Gets experimental language id.
auto year() const noexcept -> int32
Gets the year when the cpp language was released.
auto is_supported() const noexcept -> bool
Gets if is supported by xtd.
auto value() const noexcept -> uint32
Gets the value of cpp language.
auto month() const noexcept -> int32
Gets the month when the cpp language was released.
auto get_hash_code() const noexcept -> xtd::size override
Serves as a hash function for a particular type.
cpp_language(int32 cpp) noexcept
Initialize a new instance of xtd::cpp_language class.
auto language() const noexcept -> language_id
Gets lagnguage id.
auto version() const noexcept -> xtd::version
Gets The version of cpp language.
auto version_string() const noexcept -> xtd::string
Gets the version string of cpp language.
auto to_string() const noexcept -> xtd::string override
Converts the value of this operating_system object to its equivalent string representation.
auto is_experimental_language() const noexcept -> bool
Gets if is experimental language.
auto name() const noexcept -> xtd::string
Gets the offical name of the cpp language.
object()=default
Create a new instance of the ultimate base class object.
std::uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
language_id
Identifies the c++ language used by assembly.
Definition language_id.hpp:17
Contains xtd::language_id enum class.
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.
Contains xtd::version class.