10 #ifndef YARP_DEV_MULTIPLEANALOGSENSORSSERVER_MULTIPLEANALOGSENSORSSERVER_H
11 #define YARP_DEV_MULTIPLEANALOGSENSORSSERVER_MULTIPLEANALOGSENSORSSERVER_H
49 double m_periodInS{0.01};
51 std::string m_streamingPortName;
52 std::string m_RPCPortName;
60 bool m_isDeviceOwned{
false};
76 bool populateAllSensorsMetadata();
77 template<
typename Interface>
78 bool populateSensorsMetadata(Interface * wrappedDeviceInterface,
79 std::vector<SensorMetadata>& metadataVector,
const std::string& tag,
80 size_t (Interface::*getNrOfSensorsMethodPtr)()
const,
81 bool (Interface::*getNameMethodPtr)(
size_t, std::string&)
const,
82 bool (Interface::*getFrameNameMethodPtr)(
size_t, std::string&)
const);
83 template<
typename Interface>
84 bool populateSensorsMetadataNoFrameName(Interface * wrappedDeviceInterface,
85 std::vector<SensorMetadata>& metadataVector,
const std::string& tag,
86 size_t (Interface::*getNrOfSensorsMethodPtr)()
const,
87 bool (Interface::*getNameMethodPtr)(
size_t, std::string&)
const);
89 template<
typename Interface>
90 bool genericStreamData(Interface* wrappedDeviceInterface,
91 const std::vector< SensorMetadata >& metadataVector,
92 std::vector< SensorMeasurement >& streamingDataVector,
94 bool (Interface::*getMeasureMethodPtr)(
size_t,
yarp::sig::Vector&,
double&)
const);
102 bool close()
override;