diff options
author | rtk0c <[email protected]> | 2021-03-29 17:55:02 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-03-29 17:55:02 -0700 |
commit | 70cc233165b5efa3a3888af34f7afce095fe6947 (patch) | |
tree | b15e8f2e3816acc204846188e78514f2ba6ad816 /core/src/Model/Project.hpp | |
parent | 6032ae108064650324b2c45352e1baa5b36961cc (diff) |
More work on project tab
Diffstat (limited to 'core/src/Model/Project.hpp')
-rw-r--r-- | core/src/Model/Project.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/Model/Project.hpp b/core/src/Model/Project.hpp index 34ae1d7..7b5c7e3 100644 --- a/core/src/Model/Project.hpp +++ b/core/src/Model/Project.hpp @@ -9,9 +9,18 @@ public: std::string mName; public: + /// Load the project from a cplt_project.json file. + static Project Load(const std::filesystem::path& path); + /// Create a project with the given name in the given path. Note that the path should be a directory that will contain the project files once created. + /// This function assumes the given directory will exist and is empty. + static Project Create(std::string name, const std::filesystem::path& path); + // Path to a *directory* that contains the project file. const std::filesystem::path& GetPath() const; const std::string& GetName() const; void SetName(std::string name); + +private: + Project() = default; }; |