YARP
Yet Another Robot Platform
IRemoteVariables.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_DEV_IREMOTEVARIABLES_H
10 #define YARP_DEV_IREMOTEVARIABLES_H
11 
12 #include <string>
13 
14 #include <yarp/os/Bottle.h>
15 #include <yarp/os/Vocab.h>
16 #include <yarp/dev/api.h>
17 
18 namespace yarp {
19  namespace dev {
20  class IRemoteVariablesRaw;
21  class IRemoteVariables;
22  }
23 }
24 
31 {
32 public:
36  virtual ~IRemoteVariablesRaw() {}
37 
38  virtual bool getRemoteVariableRaw(std::string key, yarp::os::Bottle& val) = 0;
39 
40  virtual bool setRemoteVariableRaw(std::string key, const yarp::os::Bottle& val) = 0;
41 
42  virtual bool getRemoteVariablesListRaw(yarp::os::Bottle* listOfKeys) = 0;
43 };
44 
51 {
52 public:
56  virtual ~IRemoteVariables() {}
57 
58  virtual bool getRemoteVariable(std::string key, yarp::os::Bottle& val) = 0;
59 
60  virtual bool setRemoteVariable(std::string key, const yarp::os::Bottle& val) = 0;
61 
62  virtual bool getRemoteVariablesList(yarp::os::Bottle* listOfKeys) = 0;
63 };
64 
68 
69 
70 #endif // YARP_DEV_IREMOTEVARIABLES_H
VOCAB_VARIABLE
constexpr yarp::conf::vocab32_t VOCAB_VARIABLE
Definition: IRemoteVariables.h:66
yarp::os::Bottle
A simple collection of objects that can be described and transmitted in a portable way.
Definition: Bottle.h:73
yarp::dev::IRemoteVariables
IRemoteVariables interface.
Definition: IRemoteVariables.h:51
yarp::os::createVocab
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
Definition: Vocab.h:22
yarp::dev::IRemoteVariables::getRemoteVariablesList
virtual bool getRemoteVariablesList(yarp::os::Bottle *listOfKeys)=0
yarp::dev::IRemoteVariables::setRemoteVariable
virtual bool setRemoteVariable(std::string key, const yarp::os::Bottle &val)=0
yarp::dev::IRemoteVariables::~IRemoteVariables
virtual ~IRemoteVariables()
Destructor.
Definition: IRemoteVariables.h:56
yarp::dev::IRemoteVariablesRaw::~IRemoteVariablesRaw
virtual ~IRemoteVariablesRaw()
Destructor.
Definition: IRemoteVariables.h:36
yarp::dev::IRemoteVariablesRaw::getRemoteVariablesListRaw
virtual bool getRemoteVariablesListRaw(yarp::os::Bottle *listOfKeys)=0
VOCAB_REMOTE_VARIABILE_INTERFACE
constexpr yarp::conf::vocab32_t VOCAB_REMOTE_VARIABILE_INTERFACE
Definition: IRemoteVariables.h:65
YARP_dev_API
#define YARP_dev_API
Definition: api.h:19
yarp::dev::IRemoteVariablesRaw::getRemoteVariableRaw
virtual bool getRemoteVariableRaw(std::string key, yarp::os::Bottle &val)=0
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::conf::vocab32_t
std::int32_t vocab32_t
Definition: numeric.h:52
Vocab.h
yarp::dev::IRemoteVariablesRaw::setRemoteVariableRaw
virtual bool setRemoteVariableRaw(std::string key, const yarp::os::Bottle &val)=0
VOCAB_LIST_VARIABLES
constexpr yarp::conf::vocab32_t VOCAB_LIST_VARIABLES
Definition: IRemoteVariables.h:67
yarp::dev::IRemoteVariables::getRemoteVariable
virtual bool getRemoteVariable(std::string key, yarp::os::Bottle &val)=0
api.h
Bottle.h
yarp::dev::IRemoteVariablesRaw
IRemoteVariablesRaw interface.
Definition: IRemoteVariables.h:31