xtd 0.2.0
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 bool is_experimental_language() const noexcept;
47
50 bool is_supported() const noexcept;
51
54 language_id language() const noexcept;
55
60
63 int32 month() const noexcept;
64
67 xtd::string name() const noexcept;
68
71 uint32 value() const noexcept;
72
75 xtd::string version_string() const noexcept;
76
79 xtd::version version() const noexcept;
80
83 int32 year() const noexcept;
85
87
91 xtd::size get_hash_code() const noexcept override;
92
95 xtd::string to_string() const noexcept override;
97
98 private:
99 int32 cpp_ = 0;
100 };
101}
Represents information about c++ libraries, such as the version and language identifier....
Definition cpp_language.hpp:26
xtd::string name() const noexcept
Gets the offical name of the cpp language.
xtd::string to_string() const noexcept override
Converts the value of this operating_system object to its equivalent string representation.
bool is_experimental_language() const noexcept
Gets if is experimental language.
uint32 value() const noexcept
Gets the value of cpp language.
language_id experimental_language() const noexcept
Gets experimental language id.
bool is_supported() const noexcept
Gets if is supported by xtd.
cpp_language(int32 cpp) noexcept
Initialize a new instance of xtd::cpp_language class.
int32 month() const noexcept
Gets the month when the cpp language was released.
xtd::string version_string() const noexcept
Gets the version string of cpp language.
language_id language() const noexcept
Gets lagnguage id.
int32 year() const noexcept
Gets the year when the cpp language was released.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.hpp:114
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
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
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 xtd_about_box.hpp:10
Contains xtd::object class.
Contains xtd::string alias.
Contains xtd::version class.