dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::stream::driver< driver_t > Class Template Reference

stream driver interface class More...

#include <dx_stream_driver.h>

Inheritance diagram for dx::stream::driver< driver_t >:
Collaboration diagram for dx::stream::driver< driver_t >:

Public Member Functions

bool contains(const std::string& id) noexcept
virtual driver& create(const std::string& id, const typename super::device_t::desc_t& desc)
 a device made and removed by its desc: the bus driver's own where it has one
virtual driver& destroy(const std::string& id)
std::shared_ptr<typename super::device_t> wait(const std::string& id) noexcept

Protected Member Functions

void arrived(super::device_t& device) override

Detailed Description

template<class driver_t>
class dx::stream::driver< driver_t >

stream driver interface class

This is the stream interface to a driver identified by a set of matching dictionaries. The driver class is a helper to create device objects and to bind the device to the driver identified by the set of matching dictionaries.

Exceptions
incase of an error returned by the underlaying API the driver class throws a dx::exception.

Member Function Documentation

◆ arrived()

template<class driver_t>
void dx::stream::driver<driver_t>::arrived(super::device_t& device)
inlineoverrideprotected

◆ contains()

template<class driver_t>
bool dx::stream::driver<driver_t>::contains(const std::string& id)
inlinenoexcept

◆ create()

template<class driver_t>
virtual driver& dx::stream::driver<driver_t>::create(const std::string& id, const typename super::device_t::desc_t& desc)
inlinevirtual

a device made and removed by its desc: the bus driver's own where it has one

Here is the caller graph for this function:

◆ destroy()

template<class driver_t>
virtual driver& dx::stream::driver<driver_t>::destroy(const std::string& id)
inlinevirtual

◆ wait()

template<class driver_t>
std::shared_ptr<typename super::device_t> dx::stream::driver<driver_t>::wait(const std::string& id)
inlinenoexcept

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