YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
11namespace yarp::dev {
12class ImplementRemoteVariables;
13}
14
16{
17protected:
18 IRemoteVariablesRaw* m_iraw=nullptr;
19 void* m_helper=nullptr;
20 std::vector<int> m_buffer_ints;
21 std::vector<double> m_buffer_doubles;
22 std::mutex m_imp_mutex;
23
24
31 bool initialize (int size, const int *amap);
32
37 bool uninitialize ();
38
39public:
40 /* Constructor.
41 * @param y is the pointer to the class instance inheriting from this
42 * implementation.
43 */
45
47
48 yarp::dev::ReturnValue getRemoteVariable(std::string key, yarp::os::Bottle& val) override;
49
50 yarp::dev::ReturnValue setRemoteVariable(std::string key, const yarp::os::Bottle& val) override;
51
53};
54
55#endif // YARP_DEV_IMPLEMENTREMOTEVARIABLES_H
IRemoteVariablesRaw interface.
IRemoteVariables interface.
yarp::dev::ReturnValue setRemoteVariable(std::string key, const yarp::os::Bottle &val) override
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
yarp::dev::ReturnValue getRemoteVariablesList(yarp::os::Bottle *listOfKeys) override
bool uninitialize()
Clean up internal data and memory.
yarp::dev::ReturnValue getRemoteVariable(std::string key, yarp::os::Bottle &val) override
A simple collection of objects that can be described and transmitted in a portable way.
Definition Bottle.h:65
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18