aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/VersionT.h
blob: 67efd8da321bc34d9941a19d7268bd893d97d879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#include <string>

namespace vcpkg
{
    struct VersionT
    {
        VersionT();
        VersionT(const std::string& value);

        std::string to_string() const;

        std::string value;
    };

    bool operator==(const VersionT& left, const VersionT& right);
    bool operator!=(const VersionT& left, const VersionT& right);

    struct VersionDiff
    {
        VersionT left;
        VersionT right;

        VersionDiff();
        VersionDiff(const VersionT& left, const VersionT& right);

        std::string to_string() const;
    };
}