mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-12-18 17:11:54 +01:00
20 lines
426 B
C++
20 lines
426 B
C++
#include <cstdint>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
class WUPSVersion {
|
|
public:
|
|
WUPSVersion(int major, int minor, int revision);
|
|
|
|
static std::optional<WUPSVersion> createFromString(const std::string &versionStr);
|
|
|
|
std::strong_ordering operator<=>(const WUPSVersion &other) const;
|
|
|
|
[[nodiscard]] std::string toString() const;
|
|
|
|
private:
|
|
uint32_t mMajor;
|
|
uint32_t mMinor;
|
|
uint32_t mRevision;
|
|
};
|