he GenericServiceTracker class is a specialization of the AbstractTracker for managing a service tracker.
More...
#include <Trackers.h>
|
void | waitIfAble () const |
| Wait (if not on the Celix event thread) for the tracker to be OPEN or CLOSED. More...
|
|
template<typename T > |
static std::function< void(T *)> | delCallback () |
|
he GenericServiceTracker class is a specialization of the AbstractTracker for managing a service tracker.
It defines how service trackers are opened ands manages some shared service tracker fields.
- Note
- Thread safe.
◆ GenericServiceTracker()
celix::GenericServiceTracker::GenericServiceTracker |
( |
std::shared_ptr< celix_bundle_context_t > |
_cCtx, |
|
|
std::string |
_svcName, |
|
|
std::string |
_svcVersionRange, |
|
|
celix::Filter |
_filter |
|
) |
| |
|
inline |
◆ ~GenericServiceTracker()
celix::GenericServiceTracker::~GenericServiceTracker |
( |
| ) |
|
|
overridedefault |
◆ getFilter()
const celix::Filter& celix::GenericServiceTracker::getFilter |
( |
| ) |
const |
|
inline |
The additional filter for services tracked by this service tracker.
This filter is additional to the service name and optional service version range.
◆ getServiceCount()
std::size_t celix::GenericServiceTracker::getServiceCount |
( |
| ) |
const |
|
inline |
The nr of services currently tracked by this tracker.
◆ getServiceName()
const std::string& celix::GenericServiceTracker::getServiceName |
( |
| ) |
const |
|
inline |
The service name tracked by this service tracker.
◆ getServiceRange()
const std::string& celix::GenericServiceTracker::getServiceRange |
( |
| ) |
const |
|
inline |
The service version range tracked by this service tracker.
◆ open()
void celix::GenericServiceTracker::open |
( |
| ) |
|
|
inlineoverridevirtual |
◆ filter
const celix::Filter celix::GenericServiceTracker::filter |
|
protected |
◆ opts
◆ svcCount
std::atomic<size_t> celix::GenericServiceTracker::svcCount {0} |
|
protected |
◆ svcName
const std::string celix::GenericServiceTracker::svcName |
|
protected |
◆ svcVersionRange
const std::string celix::GenericServiceTracker::svcVersionRange |
|
protected |
The documentation for this class was generated from the following file: