aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-16 16:40:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-16 16:40:31 +0200
commit95c4c20586a56fd8b8d32043d85c20f2c164474d (patch)
tree87a3b8e5dcf312677c3bc89e7eb688f975d8d242 /bpkg/manifest
parentfc76d626cc9d43f899f46bcf62e6d047abd1f362 (diff)
Rename manifest to package_manifest, add repository_manifest
Diffstat (limited to 'bpkg/manifest')
-rw-r--r--bpkg/manifest25
1 files changed, 21 insertions, 4 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index a02a4a0..c920cd6 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -105,7 +105,7 @@ namespace bpkg
std::string comment;
};
- class manifest
+ class package_manifest
{
public:
using priority_type = bpkg::priority;
@@ -128,16 +128,33 @@ namespace bpkg
std::vector<requirement_alternatives> requirements;
public:
- manifest (manifest_parser&);
- manifest (manifest_parser&, const manifest_name_value& start);
+ package_manifest (manifest_parser&);
+ package_manifest (manifest_parser&, const manifest_name_value& start);
void
serialize (manifest_serializer&) const;
};
- class manifests: public std::vector<manifest>
+ class repository_manifest
{
public:
+ std::string location;
+
+ public:
+ repository_manifest (manifest_parser&);
+ repository_manifest (manifest_parser&, const manifest_name_value& start);
+
+ void
+ serialize (manifest_serializer&) const;
+ };
+
+ class manifests
+ {
+ public:
+ std::vector<repository_manifest> repositories;
+ std::vector<package_manifest> packages;
+
+ public:
manifests (manifest_parser&);
void