aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/BinaryParagraph.h
blob: 88d6e84b1b874649fc54f1076ccbcf1e5c6d6413 (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
30
#pragma once

#include <unordered_map>
#include "SourceParagraph.h"
#include "triplet.h"

namespace vcpkg
{
    struct BinaryParagraph
    {
        BinaryParagraph();
        explicit BinaryParagraph(const std::unordered_map<std::string, std::string>& fields);
        BinaryParagraph(const SourceParagraph& spgh, const triplet& target_triplet);

        std::string displayname() const;

        std::string fullstem() const;

        std::string dir() const;

        std::string name;
        std::string version;
        std::string description;
        std::string maintainer;
        triplet target_triplet;
        std::vector<std::string> depends;
    };

    std::ostream& operator<<(std::ostream& os, const BinaryParagraph& pgh);
}