Class device

Inheritance Relationships

Derived Types

Class Documentation

class device

Subclassed by rs2::calibrated_device, rs2::calibration_change_device, rs2::debug_protocol, rs2::firmware_logger, rs2::playback, rs2::recorder, rs2::serializable_device, rs2::software_device, rs2::updatable, rs2::update_device

Public Functions

inline std::vector<sensor> query_sensors() const

returns the list of adjacent devices, sharing the same physical parent composite device

Returns:

the list of adjacent devices

template<class T>
inline T first() const
inline bool supports(rs2_camera_info info) const

check if specific camera info is supported

Parameters:

info[in] the parameter to check for support

Returns:

true if the parameter both exist and well-defined for the specific device

inline const char *get_info(rs2_camera_info info) const

retrieve camera specific information, like versions of various internal components

Parameters:

info[in] camera info type to retrieve

Returns:

the requested camera info string, in a format specific to the device model

inline void hardware_reset()

send hardware reset request to the device

inline device &operator=(const std::shared_ptr<rs2_device> dev)
inline device &operator=(const device &dev)
inline device()
inline operator bool() const
inline const std::shared_ptr<rs2_device> &get() const
template<class T>
inline bool is() const
template<class T>
inline T as() const
inline virtual ~device()
inline explicit operator std::shared_ptr<rs2_device>()
inline explicit device(std::shared_ptr<rs2_device> dev)

Protected Attributes

std::shared_ptr<rs2_device> _dev

Friends

friend class rs2::context
friend class rs2::device_list
friend class rs2::pipeline_profile
friend class rs2::device_hub