2016-09-18 20:50:08 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
|
|
|
struct SourceParagraph
|
|
|
|
{
|
2016-11-03 14:34:52 -07:00
|
|
|
static const std::vector<std::string>& get_list_of_valid_fields();
|
2016-11-02 20:26:52 -07:00
|
|
|
|
2016-09-18 20:50:08 -07:00
|
|
|
SourceParagraph();
|
|
|
|
|
2016-11-02 20:26:52 -07:00
|
|
|
explicit SourceParagraph(std::unordered_map<std::string, std::string> fields);
|
2016-09-18 20:50:08 -07:00
|
|
|
|
|
|
|
std::string name;
|
|
|
|
std::string version;
|
|
|
|
std::string description;
|
|
|
|
std::string maintainer;
|
|
|
|
std::vector<std::string> depends;
|
2016-11-02 20:26:52 -07:00
|
|
|
std::unordered_map<std::string, std::string> unparsed_fields;
|
2016-09-18 20:50:08 -07:00
|
|
|
};
|
|
|
|
}
|