add remove
All checks were successful
Clang-format Check / clang-format-check (push) Successful in 22s
Tests Check / test-check (push) Successful in 2m21s

This commit is contained in:
Timofey Khoruzhii 2023-06-11 09:39:34 +03:00
parent 41c8f0c633
commit 67f0ab5d19
4 changed files with 20 additions and 0 deletions

View file

@ -8,9 +8,13 @@
class Project {
public:
Project(const std::string& path, const std::string& path_to_scripts, const std::string& name);
Project(const Project&) = delete;
Project(Project&&) = default;
Project& operator=(const Project&) = delete;
Project& operator=(Project&&) = default;
const std::filesystem::path& GetPath() const;
const std::filesystem::path& GetPathToScripts() const;
const std::string& GetName() const;

View file

@ -13,6 +13,7 @@ class ProjectList {
const std::deque<Project>& GetProjects();
void AddProject(Project&&);
void RemoveProjectByName(const std::string& name);
const Project& GetProject(
const std::filesystem::path& path = std::filesystem::current_path()) const;