MCPcopy Create free account
hub / github.com/MITK/MITK / GetService

Method GetService

Modules/CppMicroServices/test/usServiceTemplateTest.cpp:61–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 std::map<long, MyService2*> m_idToServiceMap;
60
61 us::InterfaceMap GetService(us::Module* module, const us::ServiceRegistrationBase& /*registration*/) override
62 {
63 MyService2* s = new MyService2;
64 m_idToServiceMap.insert(std::make_pair(module->GetModuleId(), s));
65 return us::MakeInterfaceMap<Interface1,Interface2>(s);
66 }
67
68 void UngetService(us::Module* module, const us::ServiceRegistrationBase& /*registration*/,
69 const us::InterfaceMap& service) override

Callers

nothing calls this directly

Calls 1

GetModuleIdMethod · 0.80

Tested by

no test coverage detected