MCPcopy Create free account
hub / github.com/Norbyte/ositools / CallWrapper

Method CallWrapper

OsiInterface/CustomFunctions.cpp:354–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354bool CustomFunctionInjector::CallWrapper(std::function<bool (uint32_t, OsiArgumentDesc *)> const & next, uint32_t handle, OsiArgumentDesc * params)
355{
356 auto it = osiToDivMappings_.find(handle);
357 if (it != osiToDivMappings_.end()) {
358 return functions_.Call(it->second, *params);
359 } else {
360 return next(handle, params);
361 }
362}
363
364bool CustomFunctionInjector::QueryWrapper(std::function<bool(uint32_t, OsiArgumentDesc *)> const & next, uint32_t handle, OsiArgumentDesc * params)
365{

Callers

nothing calls this directly

Calls 1

CallMethod · 0.45

Tested by

no test coverage detected