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

Method writePropertyRecordToVTable

src/Object.cpp:229–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void Object::writePropertyRecordToVTable(PropertyVTableItem property, VTable& vtable)
230{
231 SDBUS_CHECK_MEMBER_NAME(property.name.c_str());
232 SDBUS_THROW_ERROR_IF(!property.getter && !property.setter, "Invalid property callbacks provided", EINVAL);
233
234 vtable.properties.push_back({ std::move(property.name)
235 , std::move(property.signature)
236 , std::move(property.getter)
237 , std::move(property.setter)
238 , std::move(property.flags) });
239}
240
241std::vector<sd_bus_vtable> Object::createInternalSdBusVTable(const VTable& vtable)
242{

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected