aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/version_t.h
blob: 9a4e11a395f6f263618ad57553274258d3bfbaaf (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
#pragma once
#include <string>

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

        std::string value;
    };

    bool operator ==(const version_t& left, const version_t& right);
    bool operator !=(const version_t& left, const version_t& right);
    std::string to_printf_arg(const version_t& version);

    struct version_diff_t
    {
        version_t left;
        version_t right;

        version_diff_t();
        version_diff_t(const version_t& left, const version_t& right);

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