MCPcopy Create free account
hub / github.com/AimRT/AimRT / CreateClient

Method CreateClient

src/interface/aimrt_module_cpp_interface/context/context.h:450–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448// Context CreateClient for service client class
449template <class TServiceClient>
450inline TServiceClient Context::CreateClient(std::string_view service_name, std::source_location loc) {
451 TServiceClient client;
452 client.Init(shared_from_this(), std::string(service_name));
453 return client;
454}
455
456template <class Q, class P, concepts::RawClient<Q, P> TClient>
457res::Client<Q, P> OpCli::Init(std::string_view service_name, TClient&& client) {

Callers

nothing calls this directly

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected