YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::ImplementRemoteVariables Class Reference

#include <yarp/dev/ImplementRemoteVariables.h>

+ Inheritance diagram for yarp::dev::ImplementRemoteVariables:

Public Member Functions

 ImplementRemoteVariables (yarp::dev::IRemoteVariablesRaw *y)
 
virtual ~ImplementRemoteVariables ()
 
yarp::dev::ReturnValue getRemoteVariable (std::string key, yarp::os::Bottle &val) override
 
yarp::dev::ReturnValue setRemoteVariable (std::string key, const yarp::os::Bottle &val) override
 
yarp::dev::ReturnValue getRemoteVariablesList (yarp::os::Bottle *listOfKeys) override
 
- Public Member Functions inherited from yarp::dev::IRemoteVariables
virtual ~IRemoteVariables ()
 Destructor.
 

Protected Member Functions

bool initialize (int size, const int *amap)
 Initialize the internal data and alloc memory.
 
bool uninitialize ()
 Clean up internal data and memory.
 

Protected Attributes

IRemoteVariablesRaw * m_iraw =nullptr
 
void * m_helper =nullptr
 
std::vector< int > m_buffer_ints
 
std::vector< double > m_buffer_doubles
 
std::mutex m_imp_mutex
 

Detailed Description

Definition at line 15 of file ImplementRemoteVariables.h.

Constructor & Destructor Documentation

◆ ImplementRemoteVariables()

ImplementRemoteVariables::ImplementRemoteVariables ( yarp::dev::IRemoteVariablesRaw *  y)

Definition at line 19 of file ImplementRemoteVariables.cpp.

◆ ~ImplementRemoteVariables()

ImplementRemoteVariables::~ImplementRemoteVariables ( )
virtual

Definition at line 25 of file ImplementRemoteVariables.cpp.

Member Function Documentation

◆ getRemoteVariable()

ReturnValue ImplementRemoteVariables::getRemoteVariable ( std::string  key,
yarp::os::Bottle &  val 
)
overridevirtual

Implements yarp::dev::IRemoteVariables.

Definition at line 60 of file ImplementRemoteVariables.cpp.

◆ getRemoteVariablesList()

ReturnValue ImplementRemoteVariables::getRemoteVariablesList ( yarp::os::Bottle *  listOfKeys)
overridevirtual

Implements yarp::dev::IRemoteVariables.

Definition at line 78 of file ImplementRemoteVariables.cpp.

◆ initialize()

bool ImplementRemoteVariables::initialize ( int  size,
const int *  amap 
)
protected

Initialize the internal data and alloc memory.

Parameters
sizeis the number of controlled axes the driver deals with.
amapis a lookup table mapping axes onto physical drivers.
Returns
true if initialized succeeded, false if it wasn't executed, or assert.

Definition at line 30 of file ImplementRemoteVariables.cpp.

◆ setRemoteVariable()

ReturnValue ImplementRemoteVariables::setRemoteVariable ( std::string  key,
const yarp::os::Bottle &  val 
)
overridevirtual

Implements yarp::dev::IRemoteVariables.

Definition at line 69 of file ImplementRemoteVariables.cpp.

◆ uninitialize()

bool ImplementRemoteVariables::uninitialize ( )
protected

Clean up internal data and memory.

Returns
true if uninitialization is executed, false otherwise.

Definition at line 49 of file ImplementRemoteVariables.cpp.

Member Data Documentation

◆ m_buffer_doubles

std::vector<double> yarp::dev::ImplementRemoteVariables::m_buffer_doubles
protected

Definition at line 21 of file ImplementRemoteVariables.h.

◆ m_buffer_ints

std::vector<int> yarp::dev::ImplementRemoteVariables::m_buffer_ints
protected

Definition at line 20 of file ImplementRemoteVariables.h.

◆ m_helper

void* yarp::dev::ImplementRemoteVariables::m_helper =nullptr
protected

Definition at line 19 of file ImplementRemoteVariables.h.

◆ m_imp_mutex

std::mutex yarp::dev::ImplementRemoteVariables::m_imp_mutex
protected

Definition at line 22 of file ImplementRemoteVariables.h.

◆ m_iraw

IRemoteVariablesRaw* yarp::dev::ImplementRemoteVariables::m_iraw =nullptr
protected

Definition at line 18 of file ImplementRemoteVariables.h.


The documentation for this class was generated from the following files: