aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-04 14:09:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-04 14:09:51 +0200
commitd3f62eb0cbdd6080a26d4e9013bf9f6671cee9d9 (patch)
tree0c19bd064f26a4bed2fb1b786f70cfd8d4867f56 /bpkg/manifest
parentce6eb3555b1264c14563eb383c25f4132c0d2a89 (diff)
Split manifests into package_manifests and repository_manifests
Diffstat (limited to 'bpkg/manifest')
-rw-r--r--bpkg/manifest23
1 files changed, 18 insertions, 5 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index 0f03371..d5b036f 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -303,6 +303,19 @@ namespace bpkg
serialize (manifest_serializer&) const;
};
+ class package_manifests: public std::vector<package_manifest>
+ {
+ public:
+ using base_type = std::vector<package_manifest>;
+
+ using base_type::base_type;
+
+ package_manifests (manifest_parser&);
+
+ void
+ serialize (manifest_serializer&) const;
+ };
+
class repository_location
{
public:
@@ -425,14 +438,14 @@ namespace bpkg
serialize (manifest_serializer&) const;
};
- class manifests
+ class repository_manifests: public std::vector<repository_manifest>
{
public:
- std::vector<repository_manifest> repositories;
- std::vector<package_manifest> packages;
+ using base_type = std::vector<repository_manifest>;
- public:
- manifests (manifest_parser&);
+ using base_type::base_type;
+
+ repository_manifests (manifest_parser&);
void
serialize (manifest_serializer&) const;