From 95c4c20586a56fd8b8d32043d85c20f2c164474d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 16 Jun 2015 16:40:31 +0200 Subject: Rename manifest to package_manifest, add repository_manifest --- bpkg/manifest | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'bpkg/manifest') 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 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 + 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 repositories; + std::vector packages; + + public: manifests (manifest_parser&); void -- cgit v1.1