sources as different names, explicit targets

This commit is contained in:
Blue 2023-10-02 14:19:24 -03:00
parent cc4d8d1fc3
commit 1d9a6ec3f8
Signed by: blue
GPG key ID: 9B203B252A63EE38
10 changed files with 252 additions and 62 deletions

View file

@ -41,7 +41,7 @@ public:
const std::filesystem::path& path,
Collection* collection,
const std::shared_ptr<Logger>& logger,
const std::string& name = ""
const std::optional<std::string>& name = std::nullopt
);
Type getType() const;
@ -84,7 +84,7 @@ private:
Collection* collection;
std::filesystem::path location;
std::optional<nlohmann::json> manifest;
std::string name;
std::optional<std::string> name;
};
class Component::WrongState : public std::runtime_error {