aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/VersionT.h
blob: 36d050e08650960d0704b4182127db58855cb99b (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;
    };
}