aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/PackageSpec.h
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-08-19 19:27:34 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-08-19 19:27:34 -0700
commitf219ce0b8c3e84e5fc1df21ad2f2c8b13f0fe413 (patch)
treed78ee0a1a2e2a30ee465c6c90cd8544106a9c133 /toolsrc/include/PackageSpec.h
parent4d34488649fe5d71b8a553706d960a3784c56bb1 (diff)
downloadvcpkg-f219ce0b8c3e84e5fc1df21ad2f2c8b13f0fe413.tar.gz
vcpkg-f219ce0b8c3e84e5fc1df21ad2f2c8b13f0fe413.zip
[vcpkg] Reorganize some parsing functions.
Diffstat (limited to 'toolsrc/include/PackageSpec.h')
-rw-r--r--toolsrc/include/PackageSpec.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/toolsrc/include/PackageSpec.h b/toolsrc/include/PackageSpec.h
index 77a14e90e..8e986b4d6 100644
--- a/toolsrc/include/PackageSpec.h
+++ b/toolsrc/include/PackageSpec.h
@@ -1,6 +1,6 @@
#pragma once
+
#include "PackageSpecParseResult.h"
-#include "SourceParagraph.h"
#include "Triplet.h"
#include "vcpkg_expected.h"
@@ -17,7 +17,6 @@ namespace vcpkg
struct PackageSpec
{
- static std::string to_string(const std::string& name, const Triplet& triplet);
static ExpectedT<PackageSpec, PackageSpecParseResult> from_name_and_triplet(const std::string& name,
const Triplet& triplet);
@@ -43,6 +42,14 @@ namespace vcpkg
const Triplet& default_triplet);
};
+ struct Features
+ {
+ std::string name;
+ std::vector<std::string> features;
+
+ static ExpectedT<Features, PackageSpecParseResult> from_string(const std::string& input);
+ };
+
bool operator==(const PackageSpec& left, const PackageSpec& right);
bool operator!=(const PackageSpec& left, const PackageSpec& right);
}