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