MCPcopy Create free account
hub / github.com/OAID/Tengine / GetHandler

Method GetHandler

core/lib/tengine_plugin.cpp:212–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212bool TEnginePlugin::GetHandler(const std::string& name, ShareLibParser& handler)
213{
214 HandlerManager* hm = GetHandlerManager();
215 if(!hm->ExistAttr(name))
216 {
217 LOG_ERROR() << "The handler is not got yet!\n";
218 return false;
219 }
220
221 handler = *any_cast<ShareLibParserPtr>(hm->GetAttr(name)).get();
222 return true;
223}
224
225void TEnginePlugin::DumpPlugin(void)
226{

Callers

nothing calls this directly

Calls 3

getMethod · 0.80
ExistAttrMethod · 0.45
GetAttrMethod · 0.45

Tested by

no test coverage detected