casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casatools::Registrar Class Reference

#include <Registrar.h>

Public Member Functions

 Registrar ()
 
virtual ~Registrar ()
 
std::list< ServiceIdservices ()
 get map of registrations More...
 
std::list< std::string > types ()
 get list of service types More...
 
bool remove (std::string id)
 returns true if a registration for 'id' was found More...
 
ServiceId add (const ServiceId &proposed)
 returns assigned identifier (likely based upon the proposed_id) More...
 
std::string uri ()
 

Private Attributes

std::mutex service_list_mutex
 
std::list< ServiceIdservice_list
 
std::mutex uri_mutex
 
std::string uri_
 

Detailed Description

Definition at line 71 of file Registrar.h.

Constructor & Destructor Documentation

casatools::Registrar::Registrar ( )
virtual casatools::Registrar::~Registrar ( )
virtual

Member Function Documentation

ServiceId casatools::Registrar::add ( const ServiceId proposed)

returns assigned identifier (likely based upon the proposed_id)

Referenced by casatools::State::addService().

bool casatools::Registrar::remove ( std::string  id)

returns true if a registration for 'id' was found

Referenced by casatools::State::removeService().

std::list<ServiceId> casatools::Registrar::services ( )
inline

get map of registrations

Definition at line 79 of file Registrar.h.

References service_list, and service_list_mutex.

Referenced by casatools::State::services().

std::list<std::string> casatools::Registrar::types ( )
inline

get list of service types

Definition at line 85 of file Registrar.h.

References service_list, and service_list_mutex.

std::string casatools::Registrar::uri ( )
inline

Definition at line 101 of file Registrar.h.

References uri_, and uri_mutex.

Referenced by casatools::State::registryURI().

Member Data Documentation

std::list<ServiceId> casatools::Registrar::service_list
private

Definition at line 108 of file Registrar.h.

Referenced by services(), and types().

std::mutex casatools::Registrar::service_list_mutex
private

Definition at line 107 of file Registrar.h.

Referenced by services(), and types().

std::string casatools::Registrar::uri_
private

Definition at line 110 of file Registrar.h.

Referenced by uri().

std::mutex casatools::Registrar::uri_mutex
private

Definition at line 109 of file Registrar.h.

Referenced by uri().


The documentation for this class was generated from the following file: