|
fipa_services
|
The entry definition for a service directory, containing name, type, locator and description. More...
#include <ServiceDirectoryEntry.hpp>
Public Types | |
| enum | Field { NAME = 0, TYPE, LOCATOR, DESCRIPTION, TIMESTAMP, END_MARKER } |
Public Member Functions | |
| ServiceDirectoryEntry () | |
| ServiceDirectoryEntry (const Name &name, const Type &type, const ServiceLocator &locator, const Description &description) | |
| Name | getName () const |
| void | setName (const Name &name) |
| Type | getType () const |
| void | setType (const Type &type) |
| ServiceLocator | getLocator () const |
| void | setLocator (const ServiceLocator &locator) |
| Description | getDescription () const |
| void | setDescription (const Description &description) |
| base::Time | getTimestamp () const |
| void | updateTimestamp () |
| std::string | getFieldContent (ServiceDirectoryEntry::Field field) const |
| void | setFieldContent (ServiceDirectoryEntry::Field field, const std::string &content) |
| bool | operator< (const ServiceDirectoryEntry &other) const |
| std::string | toString () const |
Static Public Attributes | |
| static std::map< Field, std::string > | FieldTxt |
The entry definition for a service directory, containing name, type, locator and description.
| fipa::services::ServiceDirectoryEntry::ServiceDirectoryEntry | ( | ) |
| fipa::services::ServiceDirectoryEntry::ServiceDirectoryEntry | ( | const Name & | name, |
| const Type & | type, | ||
| const ServiceLocator & | locator, | ||
| const Description & | description | ||
| ) |
|
inline |
| std::string fipa::services::ServiceDirectoryEntry::getFieldContent | ( | ServiceDirectoryEntry::Field | field | ) | const |
Get the string content of field based on the field identifier
|
inline |
Get locator
|
inline |
|
inline |
|
inline |
The signature type
|
inline |
Comparison operator to allow usage as map key
|
inline |
| void fipa::services::ServiceDirectoryEntry::setFieldContent | ( | ServiceDirectoryEntry::Field | field, |
| const std::string & | content | ||
| ) |
Set the field content of field based on the field identifier
| std::runtime_error | if parsing string content fails |
|
inline |
|
inline |
|
inline |
| std::string fipa::services::ServiceDirectoryEntry::toString | ( | ) | const |
Convert to string representations
|
inline |
Update the modification times of this entry
|
static |
1.8.13