3#include <litefx/app_api.hpp>
6struct LITEFX_APPMODEL_API std::formatter<LiteFX::Platform> : std::formatter<std::string_view> {
8 string_view name =
"Invalid";
14 return formatter<string_view>::format(name, ctx);
19struct LITEFX_APPMODEL_API std::formatter<LiteFX::BackendType> : std::formatter<std::string_view> {
21 string_view name =
"Invalid";
27 return formatter<string_view>::format(name, ctx);
32struct std::formatter<
LiteFX::AppVersion> {
33 bool engineVersion =
false;
35 constexpr auto parse(format_parse_context& ctx) {
36 auto it = ctx.begin(), end = ctx.end();
38 if (it != end && (*it ==
'e'))
44 if (it != end && *it !=
'}')
45 throw format_error(
"Invalid version format: expected: `}`.");
51 return engineVersion ?
Contains the version of an App.
Definition app_api.hpp:50
StringView engineVersion() const noexcept
Gets the version string of the engine build.
Definition appversion.cpp:85
int major() const noexcept
Gets the major version of the app.
Definition appversion.cpp:40
int patch() const noexcept
Gets the patch number of the app.
Definition appversion.cpp:50
int revision() const noexcept
Gets the revision of the app.
Definition appversion.cpp:55
int minor() const noexcept
Gets the minor version of the app.
Definition appversion.cpp:45
StringView engineIdentifier() const noexcept
Gets the identifier of the engine build.
Definition appversion.cpp:80
BackendType
Definition app_api.hpp:35
Platform
Definition app_api.hpp:29