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

Method GetBundle

framework/src/service/ServiceReferenceBase.cpp:95–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 Bundle
96 ServiceReferenceBase::GetBundle() const
97 {
98 auto refP = d.Load();
99 auto reg = refP->registration.lock();
100 if (!reg)
101 {
102 return Bundle();
103 }
104
105 auto l = refP->LockServiceRegistration();
106 US_UNUSED(l);
107 auto bundle = refP->coreInfo->bundle_.lock();
108 if (bundle == nullptr)
109 {
110 return Bundle();
111 }
112 return MakeBundle(bundle->shared_from_this());
113 }
114
115 std::vector<Bundle>
116 ServiceReferenceBase::GetUsingBundles() const

Callers 9

GetServiceFromFactoryMethod · 0.45
ServiceChangedMethod · 0.45
AddingServiceMethod · 0.45

Calls 6

MakeBundleFunction · 0.85
lockMethod · 0.80
shared_from_thisMethod · 0.80
BundleClass · 0.70
LoadMethod · 0.45

Tested by

no test coverage detected