RobotsIO
Loading...
Searching...
No Matches
Parameters2YarpBottle.h
1/*
2 * Copyright (C) 2019 Istituto Italiano di Tecnologia (IIT)
3 *
4 * This software may be modified and distributed under the terms of the
5 * BSD 3-Clause license. See the accompanying LICENSE file for details.
6 */
7
8#ifndef ROBOTSIO_PARAMETERS2YARPBOTTLE_H
9#define ROBOTSIO_PARAMETERS2YARPBOTTLE_H
10
11#include <RobotsIO/Utils/ParametersExtractor.h>
12
13#include <yarp/os/Bottle.h>
14
15
17{
18public:
20
21 virtual ~Parameters2YarpBottle();
22
23 yarp::os::Bottle extract_to_bottle();
24
25 void extract_field(const std::string& key, const std::string& value) override;
26
27 void extract_field(const std::string& key, const std::size_t& value) override;
28
29 void extract_field(const std::string& key, const int& value) override;
30
31 void extract_field(const std::string& key, const double& value) override;
32
33 void extract_field(const std::string& key, const bool& value) override;
34
35private:
36 yarp::os::Bottle bottle_;
37};
38
39#endif