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

Method Create

examples/pluginmanager.cpp:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 out << " - " << p.first << endl;
77 }
78 unique_ptr<Plugin> Create(const string& name, Menu* menu) const
79 {
80 for (auto& p: plugins)
81 if (p.first == name)
82 return p.second(menu);
83 return {};
84 }
85private:
86 static PluginRegistry instance;
87 vector<pair<string, Factory>> plugins;

Callers 1

LoadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected