heavy refactoring
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user