YARP
Yet Another Robot Platform
ImplementRemoteVariables.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_IMPLEMENTREMOTEVARIABLES_H
10 #define YARP_DEV_IMPLEMENTREMOTEVARIABLES_H
11 
13 
14 namespace yarp {
15  namespace dev {
16  class ImplementRemoteVariables;
17  }
18 }
19 
21 {
22 protected:
24  void *helper;
25  double *temp1;
26  double *temp2;
27 
28 
35  bool initialize (int size, const int *amap);
36 
41  bool uninitialize ();
42 
43 public:
44  /* Constructor.
45  * @param y is the pointer to the class instance inheriting from this
46  * implementation.
47  */
49 
50  virtual ~ImplementRemoteVariables();
51 
52  bool getRemoteVariable(std::string key, yarp::os::Bottle& val) override;
53 
54  bool setRemoteVariable(std::string key, const yarp::os::Bottle& val) override;
55 
56  bool getRemoteVariablesList(yarp::os::Bottle* listOfKeys) override;
57 };
58 
59 #endif // YARP_DEV_IMPLEMENTREMOTEVARIABLES_H
IRemoteVariables.h
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::dev::ImplementRemoteVariables::ImplementRemoteVariables
ImplementRemoteVariables(yarp::dev::IRemoteVariablesRaw *y)
Definition: ImplementRemoteVariables.cpp:17
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::ImplementRemoteVariables::uninitialize
bool uninitialize()
Clean up internal data and memory.
Definition: ImplementRemoteVariables.cpp:48
yarp::dev::ImplementRemoteVariables::initialize
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
Definition: ImplementRemoteVariables.cpp:30
yarp::dev::ImplementRemoteVariables::temp1
double * temp1
Definition: ImplementRemoteVariables.h:25
yarp::dev::ImplementRemoteVariables::ivar
IRemoteVariablesRaw * ivar
Definition: ImplementRemoteVariables.h:23
yarp::dev::ImplementRemoteVariables::temp2
double * temp2
Definition: ImplementRemoteVariables.h:26
yarp::dev::ImplementRemoteVariables
Definition: ImplementRemoteVariables.h:21
yarp::dev::ImplementRemoteVariables::~ImplementRemoteVariables
virtual ~ImplementRemoteVariables()
Definition: ImplementRemoteVariables.cpp:25
yarp::dev::ImplementRemoteVariables::helper
void * helper
Definition: ImplementRemoteVariables.h:24
YARP_dev_API
#define YARP_dev_API
Definition: api.h:19
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::dev::IRemoteVariables::getRemoteVariable
virtual bool getRemoteVariable(std::string key, yarp::os::Bottle &val)=0
yarp::dev::IRemoteVariablesRaw
IRemoteVariablesRaw interface.
Definition: IRemoteVariables.h:31