 |
Blamite Game Engine - Strings
00402.09.29.23.0627.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
6 #define STRINGS_API __declspec(dllexport)
8 #define STRINGS_API __declspec(dllimport)
14 #define SEMANTIC_VERSIONING_VER "2.0.0"
48 int version_major = 0;
49 int version_minor = 0;
50 int version_patch = 0;
53 int version_prerelease = 0;
55 bool is_valid =
false;
83 std::string ToString();
118 std::string GetSuffix();
132 int GetPrereleaseVersion();
bool IsEqualTo(BlamVersion other_version)
Checks if this version is equal to another version.
Definition: BlamProductVersion.cpp:114
STRINGS_API BlamVersion GetVersion()
Retrieves the current version of Strings.
Definition: version.cpp:8
@ PreAlpha
A version that is in pre-alpha stages. Anything can change at any time.
@ ReleaseCandidate
A version that is ready for public release assuming no major bugs are discovered during final testing...
bool operator<(uuid const &lhs, uuid const &rhs) noexcept
Definition: uuid.h:573
@ Release
A version that has passed all final testing and is to be released to the public.
BlamVersionType GetType()
Retrieves the version type.
Definition: BlamProductVersion.cpp:89
BlamVersion(int major, int minor, int patch)
Constructs a new product version.
Definition: BlamProductVersion.cpp:6
STRINGS_API void LogEvent(BlamBasicLogMessage message)
Logs an event to the logger.
Definition: logger.cpp:41
STRINGS_API bool VerifyVersion(BlamVersion *version)
Verifies the validity of a product version by ensuring it matches Semantic Versioning guidelines.
Definition: version.cpp:5
STRINGS_API std::string GetVersionTypeLabel(BlamVersionType version_type)
Generates a label from a given version type.
Definition: version.cpp:12
bool operator==(BlamVersion other_version)
Checks if this version is equal to another version.
Definition: BlamProductVersion.cpp:109
int GetMinor()
Retrieves the version minor number.
Definition: BlamProductVersion.cpp:66
@ Beta
A version that is (mostly) feature-complete, but may still contain bugs.
bool IsValid()
Whether or not this version matches Semantic Versioning guidelines.
Definition: BlamProductVersion.cpp:56
std::string ToString()
Converts the version to a string.
Definition: BlamProductVersion.cpp:38
BlamVersionType
Enumerator used to determine the possible types of versions.
Definition: version.h:19
BlamVersion strings_version
Version information for the Strings library.
Definition: version.cpp:6
@ Alpha
A version used for early testing. Not feature complete or fully tested.
std::string GetSuffix()
Retrieves the version pre-release suffix.
Definition: BlamProductVersion.cpp:76
Class representing a product version.
Definition: version.h:45
bool IsLessThan(BlamVersion other_version)
Checks if this version is less than another version.
Definition: BlamProductVersion.cpp:194
int GetMajor()
Retrieves the version major number.
Definition: BlamProductVersion.cpp:61
std::basic_string< CharT, Traits, Allocator > to_string(uuid const &id)
Definition: uuid.h:581
#define STRINGS_API
Definition: version.h:8
bool operator<(BlamVersion other_version)
Checks if this version is less than another version.
Definition: BlamProductVersion.cpp:99
bool operator==(uuid const &lhs, uuid const &rhs) noexcept
Definition: uuid.h:563
int GetPatch()
Retrieves the version patch number.
Definition: BlamProductVersion.cpp:71
bool operator>(BlamVersion other_version)
Checks if this version is greater than another version.
Definition: BlamProductVersion.cpp:104
@ Warning
Indicates a warning message. Not something critical, but something that could cause unexpected behavi...
bool IsGreaterThan(BlamVersion other_version)
Checks if this version is greater than another version.
Definition: BlamProductVersion.cpp:144
Namespace containing functions related to product versions.
Definition: version.h:192
int GetPrereleaseVersion()
Retrieves the pre-release version number.
Definition: BlamProductVersion.cpp:94