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

Method findProperty

src/Object.cpp:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313const Object::VTable::PropertyItem* Object::findProperty(const VTable& vtable, std::string_view propertyName)
314{
315 auto it = std::lower_bound(vtable.properties.begin(), vtable.properties.end(), propertyName, [](const auto& propertyItem, const auto& propertyName)
316 {
317 return propertyItem.name < propertyName;
318 });
319
320 return it != vtable.properties.end() && it->name == propertyName ? &*it : nullptr;
321}
322
323std::string Object::paramNamesToString(const std::vector<std::string>& paramNames)
324{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected