some more thoughts of how to organize it better
This commit is contained in:
parent
02df7de0c3
commit
7b9112c0dd
8 changed files with 363 additions and 29 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue