1 #ifndef MODULE_CONNECTION
2 #define MODULE_CONNECTION
37 virtual std::string
what()
override {
38 if(
id ==
"")
return "While loading an unknown collection: " +
text;
39 else return "While loading collection '" +
id +
"': " +
text;
45 virtual std::string
what()
override {
46 return "While loading collection from '" +
path +
"': " +
text;
78 static std::map<std::string, std::shared_ptr<ModuleCollection>> collections_by_id;
82 static std::shared_ptr<ModuleCollection>
InstallFile(std::string filepath);
83 static const std::map<std::string, std::shared_ptr<ModuleCollection>>&
GetCollections();
90 #endif //MODULE_CONNECTION
Definition: ModuleCollection.hpp:74
virtual std::string what() override
Definition: ModuleCollection.hpp:37
CollectionLoading(std::string p, std::string t)
Definition: ModuleCollection.hpp:44
std::shared_ptr< ModuleTemplate > GetTemplateByID(std::string id)
std::string defaultlib_path
Definition: ModuleCollection.hpp:67
std::string id
Definition: ModuleCollection.hpp:63
std::shared_ptr< LibLoader > defaultlib
Definition: ModuleCollection.hpp:68
Definition: ModuleCollection.hpp:43
Definition: ModuleCollection.hpp:34
static void InstallDir(std::string dirpath)
std::string name
Definition: ModuleCollection.hpp:64
std::map< std::string, std::shared_ptr< ModuleTemplate > > templates_by_id
Definition: ModuleCollection.hpp:62
LateReturn InstallAllTemplatesIntoSC()
static std::shared_ptr< ModuleTemplate > GetTemplateByID(std::string id)
Definition: ModuleCollection.hpp:54
Definition: Alertable.hpp:26
virtual std::string what() override
Definition: ModuleCollection.hpp:45
ModuleCollection(std::ifstream &file, std::string basedir)
std::string basedir
Definition: ModuleCollection.hpp:65
std::string id
Definition: ModuleCollection.hpp:41
static std::shared_ptr< ModuleCollection > GetCollectionByID(std::string id)
CollectionParse(std::string i, std::string t)
Definition: ModuleCollection.hpp:36
static std::string ListInstalledTemplates()
static std::shared_ptr< ModuleCollection > InstallFile(std::string filepath)
std::string text
Definition: Exception.hpp:42
CollectionParse(std::string t)
Definition: ModuleCollection.hpp:35
Definition: LateReturn.hpp:35
static const std::map< std::string, std::shared_ptr< ModuleCollection > > & GetCollections()
bool has_defaultlib
Definition: ModuleCollection.hpp:66
std::string path
Definition: ModuleCollection.hpp:47
Definition: Exception.hpp:29
static LateReturn InstallAllTemplatesIntoSC()