cl3/include/projects/project.hpp

37 lines
933 B
C++
Raw Permalink Normal View History

2023-04-15 21:23:12 +00:00
#pragma once
#include <filesystem>
#include <iostream>
#include <optional>
#include <string>
class Project {
public:
Project(const std::string& path, const std::string& path_to_scripts, const std::string& name);
2023-06-11 06:39:34 +00:00
2023-04-15 21:23:12 +00:00
Project(const Project&) = delete;
Project(Project&&) = default;
2023-06-11 06:39:34 +00:00
Project& operator=(const Project&) = delete;
Project& operator=(Project&&) = default;
2023-04-15 21:23:12 +00:00
const std::filesystem::path& GetPath() const;
const std::filesystem::path& GetPathToScripts() const;
const std::string& GetName() const;
bool IsSubDirectory(const std::filesystem::path&) const;
void SetPath(const std::string& path);
void SetPathToScripts(const std::string& path_to_scripts);
void SetName(const std::string& name);
void PrintInfo() const;
private:
std::filesystem::path path_;
std::filesystem::path path_to_scripts_;
std::string name_;
};
Project CreateProject();
Project CreateProject(const std::string& name);