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

Method GetService

Modules/CppMicroServices/test/usServiceTemplateTest.cpp:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 std::map<long, MyService3*> m_idToServiceMap;
84
85 us::InterfaceMap GetService(us::Module* module, const us::ServiceRegistrationBase& /*registration*/) override
86 {
87 MyService3* s = new MyService3;
88 m_idToServiceMap.insert(std::make_pair(module->GetModuleId(), s));
89 return us::MakeInterfaceMap<Interface1,Interface2,Interface3>(s);
90 }
91
92 void UngetService(us::Module* module, const us::ServiceRegistrationBase& /*registration*/,
93 const us::InterfaceMap& service) override

Callers

nothing calls this directly

Calls 1

GetModuleIdMethod · 0.80

Tested by

no test coverage detected