| 493 | void ChangeDmpPath(std::string path) { bmf::ChangeDmpPath(path); } |
| 494 | |
| 495 | bmf::BMFModule GetModuleInstance(std::string const &moduleName, |
| 496 | std::string const &option, |
| 497 | ModuleType moduleType, |
| 498 | std::string const &modulePath, |
| 499 | std::string const &moduleEntry) { |
| 500 | std::string type_; |
| 501 | switch (moduleType) { |
| 502 | case C: |
| 503 | type_ = "c"; |
| 504 | break; |
| 505 | case CPP: |
| 506 | type_ = "c++"; |
| 507 | break; |
| 508 | case Python: |
| 509 | type_ = "python"; |
| 510 | break; |
| 511 | case Go: |
| 512 | type_ = "go"; |
| 513 | break; |
| 514 | } |
| 515 | return bmf::BMFModule(moduleName, option, type_, modulePath, moduleEntry); |
| 516 | } |
| 517 | |
| 518 | bmf::BMFCallback |
| 519 | GetCallbackInstance(std::function<bmf_sdk::CBytes(bmf_sdk::CBytes)> callback) { |