diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-06 18:58:03 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-06 20:26:21 +0300 |
commit | ef0e6c709051fc46968d64dcf1c86bd197fe45c2 (patch) | |
tree | 5873b9ac6c638c1097bb988213a86593902c02eb /bbot/manifest | |
parent | a1ca1cff56f05c9d49ccb8edac2a4c6b191199fd (diff) |
Invent notion of header for machine_manifest
Diffstat (limited to 'bbot/manifest')
-rw-r--r-- | bbot/manifest | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/bbot/manifest b/bbot/manifest index bf0471e..2cedbb6 100644 --- a/bbot/manifest +++ b/bbot/manifest @@ -26,15 +26,14 @@ namespace bbot class LIBBBOT_EXPORT machine_manifest { public: + // A "machine header". + // std::string id; std::string name; + std::string summary; - // Absent if inside task_request_manifest. - // butl::optional<machine_type> type; - std::string summary; - machine_manifest (std::string i, std::string n, std::string s) : id (std::move (i)), name (std::move (n)), summary (std::move (s)) {} @@ -43,16 +42,11 @@ namespace bbot machine_manifest (butl::manifest_parser&, bool ignore_unknown = false); machine_manifest (butl::manifest_parser&, butl::manifest_name_value start, + bool header_only = false, bool ignore_unknown = false); void serialize (butl::manifest_serializer&) const; - - private: - machine_manifest (butl::manifest_parser&, - butl::manifest_name_value start, - bool in_list, - bool ignore_unknown); }; using machine_manifests = std::vector<machine_manifest>; @@ -72,7 +66,7 @@ namespace bbot // std::string fingerprint; - machine_manifests machines; + machine_manifests machines; // Only machine headers. public: task_request_manifest () = default; // VC export. |