diff options
author | rtk0c <[email protected]> | 2021-03-31 20:19:18 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-03-31 20:19:18 -0700 |
commit | 44f5fa5c8f258e8fc1f7d7e2e45e0485bd6cc490 (patch) | |
tree | 3f09a1cce46d38f5a8c6266150e67af3802d4b95 /core/src/Model/Project.hpp | |
parent | 31950890c939862f79c817053c106bf711c63a64 (diff) |
Complete items tab (UI and serialization)
Diffstat (limited to 'core/src/Model/Project.hpp')
-rw-r--r-- | core/src/Model/Project.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/Model/Project.hpp b/core/src/Model/Project.hpp index 23eafc1..280eaf3 100644 --- a/core/src/Model/Project.hpp +++ b/core/src/Model/Project.hpp @@ -19,12 +19,14 @@ private: public: /// Load the project from a cplt_project.json file. - static Project Load(const std::filesystem::path& path); + static Project Load(const std::filesystem::path& projectFilePath); + /// Load the project from the directory containing the cplt_project.json file. + static Project LoadDir(const std::filesystem::path& projectPath); /// 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. + /// Path to a *directory* that contains the project file. const std::filesystem::path& GetPath() const; const std::string& GetPathString() const; |