mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2025-01-09 03:00:40 +01:00
23 lines
441 B
C++
23 lines
441 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
#include <cstdint>
|
|
|
|
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;
|
|
};
|