IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
igros::klib::kVersion Class Referencefinal

Kernel version class. More...

#include <klib/kVersion.hpp>

Static Public Member Functions

static constexpr auto value () noexcept -> igros_quad_t
 Kernel version to integer.
static constexpr auto text () noexcept -> const char *
 Kernel version to string.

Static Private Attributes

static constexpr auto VERSION_MAJOR {static_cast<igros_byte_t>(IGROS_GIT_VERSION_MAJOR)}
 Kernel version major.
static constexpr auto VERSION_MINOR {static_cast<igros_byte_t>(IGROS_GIT_VERSION_MINOR)}
 Kernel version minor.
static constexpr auto VERSION_PATCH {static_cast<igros_word_t>(IGROS_GIT_VERSION_PATCH)}
 Kernel version patch.
static constexpr auto VERSION_BUILD {static_cast<igros_dword_t>(IGROS_GIT_VERSION_BUILD)}
 Kernel version build.
static constexpr auto VERSION_NAME {"BETA"}
 Kernel version name.

Detailed Description

Kernel version class.

Definition at line 34 of file kVersion.hpp.

Member Function Documentation

◆ text()

auto igros::klib::kVersion::text ( ) ->constchar *
staticnodiscardconstexprnoexcept

Kernel version to string.

Returns
Version c-string in format vX.Y.ZZ.WWWW

Definition at line 76 of file kVersion.hpp.

◆ value()

auto igros::klib::kVersion::value ( ) ->igros_quad_t
staticnodiscardconstexprnoexcept

Kernel version to integer.

Returns
Version integer in format 0xXXYYZZZZWWWWWWWW
See also
igros_quad_t

Definition at line 64 of file kVersion.hpp.

Member Data Documentation

◆ VERSION_BUILD

auto igros::klib::kVersion::VERSION_BUILD {static_cast<igros_dword_t>(IGROS_GIT_VERSION_BUILD)}
staticconstexprprivate

Kernel version build.

Definition at line 39 of file kVersion.hpp.

◆ VERSION_MAJOR

auto igros::klib::kVersion::VERSION_MAJOR {static_cast<igros_byte_t>(IGROS_GIT_VERSION_MAJOR)}
staticconstexprprivate

Kernel version major.

Definition at line 36 of file kVersion.hpp.

◆ VERSION_MINOR

auto igros::klib::kVersion::VERSION_MINOR {static_cast<igros_byte_t>(IGROS_GIT_VERSION_MINOR)}
staticconstexprprivate

Kernel version minor.

Definition at line 37 of file kVersion.hpp.

◆ VERSION_NAME

auto igros::klib::kVersion::VERSION_NAME {"BETA"}
staticconstexprprivate

Kernel version name.

Definition at line 42 of file kVersion.hpp.

◆ VERSION_PATCH

auto igros::klib::kVersion::VERSION_PATCH {static_cast<igros_word_t>(IGROS_GIT_VERSION_PATCH)}
staticconstexprprivate

Kernel version patch.

Definition at line 38 of file kVersion.hpp.


The documentation for this class was generated from the following file: