RobotsIO
Loading...
Searching...
No Matches
src
RobotsIO
include
RobotsIO
Utils
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
16
class
Parameters2YarpBottle
:
public
RobotsIO::Utils::ParametersExtractor
17
{
18
public
:
19
Parameters2YarpBottle
(
const
RobotsIO::Utils::Parameters
& parameters);
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
35
private
:
36
yarp::os::Bottle bottle_;
37
};
38
39
#endif
Parameters2YarpBottle
Definition:
Parameters2YarpBottle.h:17
RobotsIO::Utils::ParametersExtractor
Definition:
ParametersExtractor.h:22
RobotsIO::Utils::Parameters
Definition:
Parameters.h:186
Generated by
1.9.6