heavy refactoring

This commit is contained in:
2025-04-02 11:50:32 -05:00
parent c3685d2b30
commit 44ef73395c
18 changed files with 132 additions and 93 deletions

View File

@@ -25,17 +25,18 @@ namespace Archimedes {
std::string getName() const { return name; }
void* getHandle() { return handle; }
void setSelf(std::list<Module*>::iterator s) { self = s; }
std::any getData(std::string s) { return data[s.c_str()]; };
protected:
std::string name;
void* handle;
std::list<Module*>::iterator self;
App* app;
std::unordered_map<std::string, std::variant<std::string, Module*>> deps;
std::unordered_map<std::string, std::list<Module*>::iterator> depsInstances;
std::unordered_map<std::string, Module*> depsInstances;
std::unordered_map<std::string, std::any> data;
};
}