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

Function createObject

src/Object.cpp:404–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402namespace sdbus {
403
404std::unique_ptr<IObject> createObject(IConnection& connection, ObjectPath objectPath)
405{
406 auto* sdbusConnection = dynamic_cast<internal::IConnection*>(&connection);
407 SDBUS_THROW_ERROR_IF(!sdbusConnection, "Connection is not a real sdbus-c++ connection", EINVAL);
408
409 return std::make_unique<internal::Object>(*sdbusConnection, std::move(objectPath));
410}
411
412} // namespace sdbus

Callers 1

AdaptorInterfacesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected