some more thoughts of how to organize it better

This commit is contained in:
Blue 2023-09-23 13:10:24 -03:00
parent 02df7de0c3
commit 7b9112c0dd
Signed by: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 363 additions and 29 deletions

View file

@ -8,8 +8,8 @@
#include "loggable.h"
#include "loggger.h"
#include "collection.h"
#include "taskmanager.h"
class Collection;
class Component : protected Loggable {
public:
@ -33,7 +33,6 @@ public:
Component(
const std::filesystem::path& path,
const std::shared_ptr<Collection>& collection,
const std::shared_ptr<TaskManager>& taskManager,
const std::shared_ptr<Logger>& logger
);
@ -43,15 +42,10 @@ public:
void read();
void build(const std::filesystem::path& destination, const std::string& target);
private:
void performRead();
void performBuild(std::filesystem::path destination, std::string target);
private:
State state;
Type type;
std::shared_ptr<Collection> collection;
std::shared_ptr<TaskManager> taskManager;
std::filesystem::path location;
};