YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IRemoteVariables.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_DEV_IREMOTEVARIABLES_H
7#define YARP_DEV_IREMOTEVARIABLES_H
8
9#include <string>
10
11#include <yarp/os/Bottle.h>
12#include <yarp/os/Vocab.h>
13#include <yarp/dev/api.h>
14
15namespace yarp::dev {
16class IRemoteVariablesRaw;
17class IRemoteVariables;
18}
19
26{
27public:
32
33 virtual bool getRemoteVariableRaw(std::string key, yarp::os::Bottle& val) = 0;
34
35 virtual bool setRemoteVariableRaw(std::string key, const yarp::os::Bottle& val) = 0;
36
37 virtual bool getRemoteVariablesListRaw(yarp::os::Bottle* listOfKeys) = 0;
38};
39
46{
47public:
51 virtual ~IRemoteVariables() {}
52
53 virtual bool getRemoteVariable(std::string key, yarp::os::Bottle& val) = 0;
54
55 virtual bool setRemoteVariable(std::string key, const yarp::os::Bottle& val) = 0;
56
57 virtual bool getRemoteVariablesList(yarp::os::Bottle* listOfKeys) = 0;
58};
59
63
64
65#endif // YARP_DEV_IREMOTEVARIABLES_H
constexpr yarp::conf::vocab32_t VOCAB_LIST_VARIABLES
constexpr yarp::conf::vocab32_t VOCAB_VARIABLE
constexpr yarp::conf::vocab32_t VOCAB_REMOTE_VARIABILE_INTERFACE
IRemoteVariablesRaw interface.
virtual bool getRemoteVariableRaw(std::string key, yarp::os::Bottle &val)=0
virtual bool getRemoteVariablesListRaw(yarp::os::Bottle *listOfKeys)=0
virtual ~IRemoteVariablesRaw()
Destructor.
virtual bool setRemoteVariableRaw(std::string key, const yarp::os::Bottle &val)=0
IRemoteVariables interface.
virtual bool setRemoteVariable(std::string key, const yarp::os::Bottle &val)=0
virtual bool getRemoteVariable(std::string key, yarp::os::Bottle &val)=0
virtual ~IRemoteVariables()
Destructor.
virtual bool getRemoteVariablesList(yarp::os::Bottle *listOfKeys)=0
A simple collection of objects that can be described and transmitted in a portable way.
Definition Bottle.h:64
std::int32_t vocab32_t
Definition numeric.h:78
For streams capable of holding different kinds of content, check what they actually have.
Definition jointData.cpp:13
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
Definition Vocab.h:27
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18