1 #ifndef FIPA_SERVICES_SERVICE_LOCATOR_HPP 2 #define FIPA_SERVICES_SERVICE_LOCATOR_HPP 17 std::string mServiceAddress;
20 std::string mSignatureType;
23 std::string mServiceSignature;
33 ServiceLocation(
const std::string& serviceAddress,
const std::string& signatureType =
"",
const std::string& serviceSignature =
"")
34 : mServiceAddress(serviceAddress)
35 , mSignatureType(signatureType)
36 , mServiceSignature(serviceSignature)
99 ServiceLocations mLocations;
142 void updateFromString(
const std::string& locations);
162 #endif // FIPA_SERVICES_SERVICE_LOCATOR_HPP ServiceLocation()
Definition: ServiceLocator.hpp:31
ServiceLocator()
Definition: ServiceLocator.hpp:102
std::string getServiceSignature() const
Definition: ServiceLocator.hpp:56
std::vector< ServiceLocation > ServiceLocations
Definition: ServiceLocator.hpp:89
Definition: ServiceLocator.hpp:26
bool operator==(const ServiceLocation &other) const
Definition: ServiceLocator.cpp:53
std::string getProtocol() const
Definition: ServiceLocator.cpp:58
std::string getFieldContent(ServiceLocation::Field field) const
Definition: ServiceLocator.cpp:11
ServiceLocation getFirstLocation() const
Definition: ServiceLocator.hpp:125
static ServiceLocation fromString(const std::string &locationString)
Definition: ServiceLocator.cpp:31
std::string getServiceAddress() const
Definition: ServiceLocator.hpp:62
Definition: ServiceLocator.hpp:26
std::string getSignatureType() const
Definition: ServiceLocator.hpp:50
Field
Definition: ServiceLocator.hpp:26
Definition: ServiceLocator.hpp:26
A ServiceLocator is a container for ServiceLocations.
Definition: ServiceLocator.hpp:96
ServiceLocations getLocations() const
Definition: ServiceLocator.hpp:106
bool hasLocations() const
Definition: ServiceLocator.hpp:119
std::string toString() const
Definition: ServiceLocator.cpp:24
Class to describe the location of a service.
Definition: ServiceLocator.hpp:14
Definition: DistributedServiceDirectory.cpp:5
ServiceLocation(const std::string &serviceAddress, const std::string &signatureType="", const std::string &serviceSignature="")
Definition: ServiceLocator.hpp:33
void addLocation(const ServiceLocation &location)
Definition: ServiceLocator.hpp:113