cl3/include/projects/project_list.hpp
Timofey Khoruzhii 67f0ab5d19
All checks were successful
Clang-format Check / clang-format-check (push) Successful in 22s
Tests Check / test-check (push) Successful in 2m21s
add remove
2023-06-11 09:39:34 +03:00

26 lines
582 B
C++

#pragma once
#include <filesystem>
#include <iostream>
#include <fstream>
#include <deque>
#include <string>
#include "projects/project.hpp"
class ProjectList {
public:
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;
void LoadFromYaml(const std::string& file_path);
void SaveToYaml(const std::string& file_path) const;
private:
std::deque<Project> projects_;
};