aboutsummaryrefslogtreecommitdiff
path: root/core/src/Model/Project.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/Model/Project.hpp')
-rw-r--r--core/src/Model/Project.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/src/Model/Project.hpp b/core/src/Model/Project.hpp
index 8cf3483..17d9acb 100644
--- a/core/src/Model/Project.hpp
+++ b/core/src/Model/Project.hpp
@@ -14,24 +14,24 @@
class Project
{
-public:
- WorkflowAssetList Workflows;
- TemplateAssetList Templates;
- ItemList<ProductItem> Products;
- ItemList<FactoryItem> Factories;
- ItemList<CustomerItem> Customers;
-
private:
std::filesystem::path mRootPath;
std::string mRootPathString;
std::string mName;
+ // (Exception to style guidelines)
// This is put after the private fields, so that when XxxDatabase's constructor runs, all of them will be initialized
public:
+ WorkflowAssetList Workflows;
+ TemplateAssetList Templates;
+ ItemList<ProductItem> Products;
+ ItemList<FactoryItem> Factories;
+ ItemList<CustomerItem> Customers;
MainDatabase Database;
public:
/// Load the project from a directory containing the cplt_project.json file.
+ /// This only loads the main project file, the caller needs to
Project(std::filesystem::path rootPath);
/// 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.