Classes | Public Member Functions | Private Attributes | List of all members
UsbSensorEnumerator Class Reference

#include <usb_sensor_enumerator.h>

Inheritance diagram for UsbSensorEnumerator:
Inheritance graph
[legend]

Classes

struct  SensorInfo
 

Public Member Functions

virtual aditof::Status getDepthSensors (std::vector< std::shared_ptr< aditof::DepthSensorInterface >> &depthSensors) override
 
virtual aditof::Status getKernelVersion (std::string &kernelVersion) const override
 Get the kernel version that is installed on the embedded system that the camera is attached to. More...
 
virtual aditof::Status getSdVersion (std::string &sdVersion) const override
 Get the SD card image version on the embedded system that the camera is attached to. More...
 
virtual aditof::Status getUbootVersion (std::string &uBootVersion) const override
 Get the U-Boot version that is installed on the embedded system that the camera is attached to. More...
 
virtual aditof::Status searchSensors () override
 Do a search for the available sensors. More...
 
 ~UsbSensorEnumerator ()
 
- Public Member Functions inherited from aditof::SensorEnumeratorInterface
virtual aditof::Status getDepthSensors (std::vector< std::shared_ptr< aditof::DepthSensorInterface >> &depthSensors)=0
 Get the available depth sensors. More...
 
virtual ~SensorEnumeratorInterface ()=default
 Destructor. More...
 

Private Attributes

int fd
 
std::string m_kernelVersion
 
std::string m_sdVersion
 
std::string m_sensorName
 
std::vector< SensorInfom_sensorsInfo
 
std::string m_uBootVersion
 

Detailed Description

Definition at line 38 of file usb_sensor_enumerator.h.

Constructor & Destructor Documentation

◆ ~UsbSensorEnumerator()

UsbSensorEnumerator::~UsbSensorEnumerator ( )
default

Member Function Documentation

◆ getDepthSensors()

Status UsbSensorEnumerator::getDepthSensors ( std::vector< std::shared_ptr< aditof::DepthSensorInterface >> &  depthSensors)
overridevirtual

Definition at line 199 of file linux/usb_sensor_enumerator.cpp.

◆ getKernelVersion()

aditof::Status UsbSensorEnumerator::getKernelVersion ( std::string kernelVersion) const
overridevirtual

Get the kernel version that is installed on the embedded system that the camera is attached to.

Parameters
[out]kernelVersion- string containing data abouth the version.
Returns
Status

Implements aditof::SensorEnumeratorInterface.

Definition at line 220 of file linux/usb_sensor_enumerator.cpp.

◆ getSdVersion()

aditof::Status UsbSensorEnumerator::getSdVersion ( std::string sdVersion) const
overridevirtual

Get the SD card image version on the embedded system that the camera is attached to.

Parameters
[out]sdVersion- string containing data abouth the version.
Returns
Status

Implements aditof::SensorEnumeratorInterface.

Definition at line 225 of file linux/usb_sensor_enumerator.cpp.

◆ getUbootVersion()

aditof::Status UsbSensorEnumerator::getUbootVersion ( std::string uBootVersion) const
overridevirtual

Get the U-Boot version that is installed on the embedded system that the camera is attached to.

Parameters
[out]uBootVersion- string containing data abouth the version.
Returns
Status

Implements aditof::SensorEnumeratorInterface.

Definition at line 214 of file linux/usb_sensor_enumerator.cpp.

◆ searchSensors()

Status UsbSensorEnumerator::searchSensors ( )
overridevirtual

Do a search for the available sensors.

Returns
Status

Implements aditof::SensorEnumeratorInterface.

Definition at line 56 of file linux/usb_sensor_enumerator.cpp.

Member Data Documentation

◆ fd

int UsbSensorEnumerator::fd
private

Definition at line 59 of file usb_sensor_enumerator.h.

◆ m_kernelVersion

std::string UsbSensorEnumerator::m_kernelVersion
private

Definition at line 63 of file usb_sensor_enumerator.h.

◆ m_sdVersion

std::string UsbSensorEnumerator::m_sdVersion
private

Definition at line 64 of file usb_sensor_enumerator.h.

◆ m_sensorName

std::string UsbSensorEnumerator::m_sensorName
private

Definition at line 57 of file usb_sensor_enumerator.h.

◆ m_sensorsInfo

std::vector<SensorInfo> UsbSensorEnumerator::m_sensorsInfo
private

Definition at line 61 of file usb_sensor_enumerator.h.

◆ m_uBootVersion

std::string UsbSensorEnumerator::m_uBootVersion
private

Definition at line 62 of file usb_sensor_enumerator.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06