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.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/src/Model/Project.hpp b/core/src/Model/Project.hpp
index 7b5c7e3..23eafc1 100644
--- a/core/src/Model/Project.hpp
+++ b/core/src/Model/Project.hpp
@@ -1,11 +1,20 @@
#pragma once
+#include "Model/Items.hpp"
+
#include <filesystem>
#include <string>
+#include <json/forwards.h>
class Project {
public:
+ ItemList<ProductItem> Products;
+ ItemList<FactoryItem> Factories;
+ ItemList<CustomerItem> Customers;
+
+private:
std::filesystem::path mRootPath;
+ std::string mRootPathString;
std::string mName;
public:
@@ -17,10 +26,14 @@ public:
// Path to a *directory* that contains the project file.
const std::filesystem::path& GetPath() const;
+ const std::string& GetPathString() const;
const std::string& GetName() const;
void SetName(std::string name);
+ Json::Value Serialize();
+ void WriteToDisk();
+
private:
Project() = default;
};