13 #ifndef USSERVICEREFERENCEBASE_H
14 #define USSERVICEREFERENCEBASE_H
23 class ServiceRegistrationBasePrivate;
24 class ServiceReferenceBasePrivate;
51 operator bool_type()
const;
193 friend class ModulePrivate;
195 friend class ModuleHooks;
196 friend class ServiceHooks;
198 friend class ServiceObjectsBasePrivate;
200 friend class ServiceRegistrationBasePrivate;
201 friend class ServiceListeners;
202 friend class ServiceRegistry;
209 std::size_t Hash()
const;
220 void SetInterfaceId(
const std::string& interfaceId);
222 ServiceReferenceBasePrivate* d;
#define MITKCPPMICROSERVICES_EXPORT
An Any class represents a general type and is capable of storing any type, supporting type-safe extra...
An RFC 1960-based Filter.
Represents a CppMicroServices module.
Base class for ServiceObjects providing type-erased service object management.
void GetUsingModules(std::vector< Module * > &modules) const
Returns the modules that are using the service referenced by this ServiceReferenceBase object....
bool operator==(std::nullptr_t) const noexcept
Equality comparison with nullptr.
Module * GetModule() const
Returns the module that registered the service referenced by this ServiceReferenceBase object.
bool IsConvertibleTo(const std::string &interfaceid) const
Checks whether this ServiceReferenceBase object can be converted to another ServiceReferenceBase obje...
std::string GetInterfaceId() const
Returns the interface identifier this ServiceReferenceBase object is bound to.
ServiceReferenceBase & operator=(const ServiceReferenceBase &reference)
Copy assignment operator.
bool operator==(const ServiceReferenceBase &reference) const
Equality comparison operator.
~ServiceReferenceBase()
Destructor.
ServiceReferenceBase(const ServiceReferenceBase &ref)
Copy constructor.
bool operator<(const ServiceReferenceBase &reference) const
Compares this ServiceReferenceBase with the specified ServiceReferenceBase for order.
void GetPropertyKeys(std::vector< std::string > &keys) const
Returns a list of the keys in the ServiceProperties object of the service referenced by this ServiceR...
Any GetProperty(const std::string &key) const
Returns the property value to which the specified property key is mapped in the properties ServicePro...
ServiceReferenceBase & operator=(int null)
Releases any resources held or locked by this ServiceReferenceBase and renders it invalid.
US_MSVC_POP_WARNING MITKCPPMICROSERVICES_EXPORT std::ostream & operator<<(std::ostream &os, const us::ServiceReferenceBase &serviceRef)
Stream output operator for ServiceReferenceBase.
std::size_t operator()(const us::ServiceReferenceBase &arg) const
#define US_MSVC_POP_WARNING
#define US_MSVC_PUSH_DISABLE_WARNING(wn)