WiiUPluginLoaderBackend/source/plugin/WUPSVersion.h
2024-11-28 19:44:14 +01:00

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;
};