Lumi 0.1.0-dev
A modular C++ framework library that streamlines cross-platform desktop application development, cutting boilerplate and empowering developers with deep control.
Loading...
Searching...
No Matches
info.cppm
Go to the documentation of this file.
1// Copyright (c) 2025.
2// Distributed under the Boost Software License, Version 1.0
3
4//
5// Created by Mono on 18/6/2025.
6//
7
8module;
9#include <cstdint>
10#include <string_view>
11
12export module lumi.core:info;
13
14export namespace lumi {
30enum class PLATFORM : uint8_t {
35};
36enum class ARCHITECTURE : uint8_t {
42};
43enum class COMPILER : uint8_t {
48};
49} // namespace lumi
50
51export namespace lumi::info {
52std::string_view GetVersion(bool include_tag = false) noexcept;
53uint8_t GetVersionMajor() noexcept;
54uint8_t GetVersionMinor() noexcept;
55uint8_t GetVersionPatch() noexcept;
56VERSION_TAG GetVersionTag() noexcept;
57uint8_t GetVersionReleaseCandidate() noexcept;
58BUILD_TYPE GetBuildType() noexcept;
59bool IsDebugMode() noexcept;
60std::string_view GetCommitHash() noexcept;
61PLATFORM GetPlatform() noexcept;
63uint8_t GetBitness() noexcept;
64COMPILER GetCompiler() noexcept;
65std::string_view GetCompilerName() noexcept;
66std::string_view GetCompilerVersion() noexcept;
67std::string_view GetFrameworkName() noexcept;
68std::string_view GetFrameworkDescription() noexcept;
69std::string_view GetFrameworkHomepage() noexcept;
70std::string_view GetFrameworkCopyrightHolder() noexcept;
71std::string_view GetFrameworkLicense() noexcept;
72std::string_view GetFrameworkLicenseText() noexcept;
73} // namespace lumi::info
std::string_view GetFrameworkLicenseText() noexcept
Definition info.cpp:116
uint8_t GetVersionMajor() noexcept
Definition info.cpp:20
std::string_view GetFrameworkLicense() noexcept
Definition info.cpp:113
std::string_view GetCommitHash() noexcept
Definition info.cpp:67
PLATFORM GetPlatform() noexcept
Definition info.cpp:68
std::string_view GetCompilerName() noexcept
Definition info.cpp:103
COMPILER GetCompiler() noexcept
Definition info.cpp:93
std::string_view GetFrameworkCopyrightHolder() noexcept
Definition info.cpp:110
uint8_t GetBitness() noexcept
Definition info.cpp:92
bool IsDebugMode() noexcept
Definition info.cpp:58
std::string_view GetCompilerVersion() noexcept
VERSION_TAG GetVersionTag() noexcept
Definition info.cpp:24
std::string_view GetFrameworkName() noexcept
Definition info.cpp:105
std::string_view GetFrameworkDescription() noexcept
Definition info.cpp:106
uint8_t GetVersionPatch() noexcept
Definition info.cpp:22
uint8_t GetVersionMinor() noexcept
Definition info.cpp:21
std::string_view GetVersion(const bool include_tag) noexcept
Definition info.cpp:17
uint8_t GetVersionReleaseCandidate() noexcept
Definition info.cpp:41
ARCHITECTURE GetArchitecture() noexcept
Definition info.cpp:77
std::string_view GetFrameworkHomepage() noexcept
Definition info.cpp:109
BUILD_TYPE GetBuildType() noexcept
Definition info.cpp:45
PLATFORM
Definition info.cppm:30
ARCHITECTURE
Definition info.cppm:36
COMPILER
Definition info.cppm:43
VERSION_TAG
Definition info.cppm:15
BUILD_TYPE
Definition info.cppm:23