YARP
Yet Another Robot Platform
StyleNameService.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_SERVERSQL_IMPL_STYLENAMESERVICE_H
7#define YARP_SERVERSQL_IMPL_STYLENAMESERVICE_H
8
9#include <yarp/os/Property.h>
11
12
13namespace yarp::serversql::impl {
14
16{
17public:
18 StyleNameService() = default;
19
20 bool configure(const yarp::os::Searchable& options)
21 {
22 this->options.fromString(options.toString());
23 return true;
24 }
25
26 bool apply(yarp::os::Bottle& cmd,
27 yarp::os::Bottle& reply,
28 yarp::os::Bottle& event,
29 const yarp::os::Contact& remote) override;
30
31private:
32 yarp::os::Property options;
33 yarp::os::Property content;
35};
36
37} // namespace yarp::serversql::impl
38
39
40#endif // YARP_SERVERSQL_IMPL_STYLENAMESERVICE_H
Abstract interface for a name server operator.
Definition: NameService.h:24
A simple collection of objects that can be described and transmitted in a portable way.
Definition: Bottle.h:64
Represents how to reach a part of a YARP network.
Definition: Contact.h:33
A class for storing options and configuration information.
Definition: Property.h:33
A base class for nested structures that can be searched.
Definition: Searchable.h:56
virtual std::string toString() const =0
Return a standard text representation of the content of the object.
bool apply(yarp::os::Bottle &cmd, yarp::os::Bottle &reply, yarp::os::Bottle &event, const yarp::os::Contact &remote) override
bool configure(const yarp::os::Searchable &options)