| 210 | } |
| 211 | |
| 212 | bool 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 | |
| 225 | void TEnginePlugin::DumpPlugin(void) |
| 226 | { |