aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/BinaryParagraph.h
blob: 01979c924c9d1b9afbc1de30634cda9b649593ed (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"
#include "package_spec.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;

        package_spec spec;
        std::string version;
        std::string description;
        std::string maintainer;
        std::vector<std::string> depends;
    };

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