YARP
Yet Another Robot Platform
ImplementRemoteVariables.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_IMPLEMENTREMOTEVARIABLES_H
7 #define YARP_DEV_IMPLEMENTREMOTEVARIABLES_H
8 
10 
11 namespace yarp {
12  namespace dev {
13  class ImplementRemoteVariables;
14  }
15 }
16 
18 {
19 protected:
21  void *helper;
22  double *temp1;
23  double *temp2;
24 
25 
32  bool initialize (int size, const int *amap);
33 
38  bool uninitialize ();
39 
40 public:
41  /* Constructor.
42  * @param y is the pointer to the class instance inheriting from this
43  * implementation.
44  */
46 
47  virtual ~ImplementRemoteVariables();
48 
49  bool getRemoteVariable(std::string key, yarp::os::Bottle& val) override;
50 
51  bool setRemoteVariable(std::string key, const yarp::os::Bottle& val) override;
52 
53  bool getRemoteVariablesList(yarp::os::Bottle* listOfKeys) override;
54 };
55 
56 #endif // YARP_DEV_IMPLEMENTREMOTEVARIABLES_H
IRemoteVariablesRaw interface.
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 bool getRemoteVariablesList(yarp::os::Bottle *listOfKeys)=0
ImplementRemoteVariables(yarp::dev::IRemoteVariablesRaw *y)
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
bool uninitialize()
Clean up internal data and memory.
A simple collection of objects that can be described and transmitted in a portable way.
Definition: Bottle.h:74
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18