13 #ifndef USSERVICEREGISTRATIONBASE_H
14 #define USSERVICEREGISTRATIONBASE_H
24 class ServiceRegistrationBasePrivate;
25 class ServicePropertiesImpl;
70 operator bool_type()
const;
185 friend class ServiceRegistry;
186 friend class ServiceReferenceBasePrivate;
202 const ServicePropertiesImpl& props);
204 ServiceRegistrationBasePrivate* d;
214 return std::hash<us::ServiceRegistrationBasePrivate*>()(arg.d);
221 return os <<
"us::ServiceRegistrationBase object";
#define MITKCPPMICROSERVICES_EXPORT
ServiceRegistrationBase & operator=(const ServiceRegistrationBase ®istration)
Copy assignment operator.
bool operator==(std::nullptr_t) const noexcept
Equality comparison with nullptr.
void SetProperties(const ServiceProperties &properties)
Updates the properties associated with a service.
bool IsAvailable() const
Returns whether the service is still registered.
ServiceReferenceBase GetReference(const std::string &interfaceId=std::string()) const
Returns a ServiceReference object for a service being registered.
void Unregister()
Unregisters a service. Remove a ServiceRegistrationBase object from the framework service registry....
ServiceRegistrationBase(const ServiceRegistrationBase ®)
Copy constructor.
bool operator<(const ServiceRegistrationBase &o) const
Compare two ServiceRegistrationBase objects.
~ServiceRegistrationBase()
Destructor.
ServiceRegistrationBase & operator=(int null)
Releases any resources held or locked by this ServiceRegistrationBase and renders it invalid.
bool operator==(const ServiceRegistrationBase ®istration) const
Equality comparison operator.
std::map< std::string, void * > InterfaceMap
A map containing interfaces ids and their corresponding service object pointers.
std::unordered_map< std::string, Any > ServiceProperties
std::size_t operator()(const us::ServiceRegistrationBase &arg) const
#define US_MSVC_POP_WARNING
#define US_MSVC_PUSH_DISABLE_WARNING(wn)
std::ostream & operator<<(std::ostream &os, const us::ServiceRegistrationBase &)