MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / writeMethodRecordToVTable

Method writeMethodRecordToVTable

src/Object.cpp:206–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void Object::writeMethodRecordToVTable(MethodVTableItem method, VTable& vtable)
207{
208 SDBUS_CHECK_MEMBER_NAME(method.name.c_str());
209 SDBUS_THROW_ERROR_IF(!method.callbackHandler, "Invalid method callback provided", EINVAL);
210
211 vtable.methods.push_back({ std::move(method.name)
212 , std::move(method.inputSignature)
213 , std::move(method.outputSignature)
214 , paramNamesToString(method.inputParamNames) + paramNamesToString(method.outputParamNames)
215 , std::move(method.callbackHandler)
216 , std::move(method.flags) });
217}
218
219void Object::writeSignalRecordToVTable(SignalVTableItem signal, VTable& vtable)
220{

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected