2017-04-03 16:13:46 -07:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
|
|
|
struct VersionT
|
|
|
|
{
|
|
|
|
VersionT();
|
|
|
|
VersionT(const std::string& value);
|
|
|
|
|
2017-04-07 17:56:26 -07:00
|
|
|
std::string to_string() const;
|
|
|
|
|
2017-04-03 16:13:46 -07:00
|
|
|
std::string value;
|
|
|
|
};
|
|
|
|
|
2017-04-27 17:56:06 -07:00
|
|
|
bool operator==(const VersionT& left, const VersionT& right);
|
|
|
|
bool operator!=(const VersionT& left, const VersionT& right);
|
2017-04-03 16:13:46 -07:00
|
|
|
|
2017-04-03 16:18:21 -07:00
|
|
|
struct VersionDiff
|
2017-04-03 16:13:46 -07:00
|
|
|
{
|
|
|
|
VersionT left;
|
|
|
|
VersionT right;
|
|
|
|
|
2017-04-03 16:18:21 -07:00
|
|
|
VersionDiff();
|
|
|
|
VersionDiff(const VersionT& left, const VersionT& right);
|
2017-04-03 16:13:46 -07:00
|
|
|
|
2017-04-03 16:20:12 -07:00
|
|
|
std::string to_string() const;
|
2017-04-03 16:13:46 -07:00
|
|
|
};
|
|
|
|
}
|