|
fipa_services
|
A ServiceLocator is a container for ServiceLocations. More...
#include <ServiceLocator.hpp>
Public Member Functions | |
| ServiceLocator () | |
| ServiceLocator (const ServiceLocations &locations) | |
| ServiceLocations | getLocations () const |
| void | addLocation (const ServiceLocation &location) |
| bool | hasLocations () const |
| ServiceLocation | getFirstLocation () const |
| ServiceLocations | search (const std::string ®ex, ServiceLocation::Field field=ServiceLocation::SIGNATURE_TYPE) |
| void | updateFromString (const std::string &locations) |
| std::string | toString () const |
Static Public Member Functions | |
| static ServiceLocator | fromString (const std::string &locations) |
A ServiceLocator is a container for ServiceLocations.
This class serves as a container and provides some convenience functions for updating information from string
|
inline |
| fipa::services::ServiceLocator::ServiceLocator | ( | const ServiceLocations & | locations | ) |
|
inline |
Add a service location
| location | A service location that shall be added to the container, does not check on duplicates |
|
static |
Create a ServiceLocator object from an existing string
|
inline |
Get the first location, i.e. the one with highest priority
|
inline |
|
inline |
Check if this locator contains any locations
| ServiceLocations fipa::services::ServiceLocator::search | ( | const std::string & | regex, |
| ServiceLocation::Field | field = ServiceLocation::SIGNATURE_TYPE |
||
| ) |
Search for a service location, e.g. given a certain signature type
| regex | Regex that is matched according to the parameter 'field' |
| field | Field to which the first parameter ('regex') should be applied |
| NotFound | if not locations could be found |
| std::string fipa::services::ServiceLocator::toString | ( | ) | const |
Create string representation of service locator <address-0> <signature-type-0> <service-signature-0>;<address-1> <...>
| void fipa::services::ServiceLocator::updateFromString | ( | const std::string & | locations | ) |
Parses a string using ';' as separators and updates the ServiceLocator object
| locations | List of ';' separated locations |
1.8.11