MCPcopy Create free account
hub / github.com/BabitMF/bmf / GetModuleInstance

Function GetModuleInstance

bmf/engine/connector/src/builder.cpp:495–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493void ChangeDmpPath(std::string path) { bmf::ChangeDmpPath(path); }
494
495bmf::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
518bmf::BMFCallback
519GetCallbackInstance(std::function<bmf_sdk::CBytes(bmf_sdk::CBytes)> callback) {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68