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

Method writePropertyRecordToSdBusVTable

src/Object.cpp:283–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void Object::writePropertyRecordToSdBusVTable(const VTable::PropertyItem& property, std::vector<sd_bus_vtable>& vtable)
284{
285 auto vtableItem = !property.setCallback
286 ? createSdBusVTableReadOnlyPropertyItem( property.name.c_str()
287 , property.signature.c_str()
288 , &Object::sdbus_property_get_callback
289 , property.flags.toSdBusPropertyFlags() )
290 : createSdBusVTableWritablePropertyItem( property.name.c_str()
291 , property.signature.c_str()
292 , &Object::sdbus_property_get_callback
293 , &Object::sdbus_property_set_callback
294 , property.flags.toSdBusWritablePropertyFlags() );
295 vtable.push_back(std::move(vtableItem));
296}
297
298void Object::finalizeSdBusVTable(std::vector<sd_bus_vtable>& vtable)
299{

Callers

nothing calls this directly

Tested by

no test coverage detected