From 31950890c939862f79c817053c106bf711c63a64 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Tue, 30 Mar 2021 19:40:11 -0700 Subject: Product items and misc stuff --- core/src/Model/Project.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'core/src/Model/Project.hpp') 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 #include +#include class Project { public: + ItemList Products; + ItemList Factories; + ItemList 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; }; -- cgit v1.2.3-70-g09d2