MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / GetServicesInUse

Method GetServicesInUse

framework/src/bundle/Bundle.cpp:292–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290 }
291
292 std::vector<ServiceReferenceU>
293 Bundle::GetServicesInUse() const
294 {
295 if (!d)
296 {
297 throw std::invalid_argument("invalid bundle");
298 }
299
300 d->CheckUninstalled();
301 std::vector<ServiceRegistrationBase> sr;
302 std::vector<ServiceReferenceU> res;
303 d->coreCtx->services.GetUsedByBundle(d.get(), sr);
304 for (std::vector<ServiceRegistrationBase>::const_iterator i = sr.begin(); i != sr.end(); ++i)
305 {
306 res.emplace_back(i->GetReference());
307 }
308 return res;
309 }
310
311 BundleResource
312 Bundle::GetResource(std::string const& path) const

Callers 2

TESTFunction · 0.80
TEST_FFunction · 0.80

Calls 6

CheckUninstalledMethod · 0.80
GetUsedByBundleMethod · 0.80
getMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetReferenceMethod · 0.45

Tested by 2

TESTFunction · 0.64
TEST_FFunction · 0.64