2017-04-04 07:13:46 +08:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
|
|
|
struct VersionT
|
|
|
|
{
|
|
|
|
VersionT();
|
|
|
|
VersionT(const std::string& value);
|
|
|
|
|
|
|
|
std::string value;
|
|
|
|
};
|
|
|
|
|
|
|
|
bool operator ==(const VersionT& left, const VersionT& right);
|
|
|
|
bool operator !=(const VersionT& left, const VersionT& right);
|
|
|
|
std::string to_printf_arg(const VersionT& version);
|
|
|
|
|
2017-04-04 07:18:21 +08:00
|
|
|
struct VersionDiff
|
2017-04-04 07:13:46 +08:00
|
|
|
{
|
|
|
|
VersionT left;
|
|
|
|
VersionT right;
|
|
|
|
|
2017-04-04 07:18:21 +08:00
|
|
|
VersionDiff();
|
|
|
|
VersionDiff(const VersionT& left, const VersionT& right);
|
2017-04-04 07:13:46 +08:00
|
|
|
|
2017-04-04 07:20:12 +08:00
|
|
|
std::string to_string() const;
|
2017-04-04 07:13:46 +08:00
|
|
|
};
|
|
|
|
}
|