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

Method GetBundle

framework/src/bundle/BundleRegistry.cpp:416–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 }
415
416 std::shared_ptr<BundlePrivate>
417 BundleRegistry::GetBundle(long id) const
418 {
419 CheckIllegalState();
420
421 auto l = bundles.Lock();
422 US_UNUSED(l);
423
424 for (auto& m : bundles.v)
425 {
426 if (m.second->id == id)
427 {
428 return m.second;
429 }
430 }
431 return nullptr;
432 }
433
434 std::vector<std::shared_ptr<BundlePrivate>>
435 BundleRegistry::GetBundles(std::string const& location) const

Callers

nothing calls this directly

Calls 1

LockMethod · 0.80

Tested by

no test coverage detected