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>
10 #include <yarp/name/NameService.h>
11 
12 
13 namespace yarp {
14 namespace serversql {
15 namespace impl {
16 
18 {
19 public:
20  StyleNameService() = default;
21 
22  bool configure(const yarp::os::Searchable& options)
23  {
24  this->options.fromString(options.toString());
25  return true;
26  }
27 
28  bool apply(yarp::os::Bottle& cmd,
29  yarp::os::Bottle& reply,
30  yarp::os::Bottle& event,
31  const yarp::os::Contact& remote) override;
32 
33 private:
34  yarp::os::Property options;
35  yarp::os::Property content;
36  yarp::os::Property mime;
37 };
38 
39 } // namespace impl
40 } // namespace serversql
41 } // namespace yarp
42 
43 
44 #endif // YARP_SERVERSQL_IMPL_STYLENAMESERVICE_H
Abstract interface for a name server operator.
Definition: NameService.h:36
A simple collection of objects that can be described and transmitted in a portable way.
Definition: Bottle.h:74
Represents how to reach a part of a YARP network.
Definition: Contact.h:36
A class for storing options and configuration information.
Definition: Property.h:34
A base class for nested structures that can be searched.
Definition: Searchable.h:66
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)
The main, catch-all namespace for YARP.
Definition: dirs.h:16