41 virtual std::string
what()
override {
return "When loading file '" +
path +
"': " +
text;}
58 static std::shared_ptr<LibLoader>
GetByPath(std::string path);
64 static std::shared_ptr<LibLoader> Preload(std::string path);
66 const std::string path;
79 static std::map<std::string, std::shared_ptr<LibLoader>> libs_by_path;
83 #endif // LIBLOADER_HPP
std::shared_ptr< Module > AskForInstance(std::string)
virtual std::string what() override
Definition: LibLoader.hpp:41
std::string path
Definition: LibLoader.hpp:42
static std::shared_ptr< LibLoader > GetByPath(std::string path)
LibLoading(std::string p, std::string t)
Definition: LibLoader.hpp:40
Definition: Alertable.hpp:26
Definition: LibLoader.hpp:39
deleter_t * GetDeleter()
Definition: LibLoader.hpp:55
std::string text
Definition: Exception.hpp:42
Definition: LibLoader.hpp:50
void *( create_instance_func_t)(const char *)
Definition: LibLoader.hpp:35
void( deleter_t)(void *)
Definition: LibLoader.hpp:36
Definition: Exception.hpp:29