MCPcopy Create free account
hub / github.com/daniele77/cli / Load

Method Load

examples/pluginmanager.cpp:97–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 static PluginContainer& Instance() { return instance; }
96 void SetMenu(Menu& _menu) { menu = &_menu; }
97 void Load(const string& plugin)
98 {
99 auto p = PluginRegistry::Instance().Create(plugin, menu);
100 if (p)
101 plugins.push_back(std::move(p));
102 }
103 void Unload(const string& plugin)
104 {
105 plugins.erase(

Callers 1

mainFunction · 0.80

Calls 1

CreateMethod · 0.45

Tested by

no test coverage detected