dxd - dynax driver framework 2.2.0d81
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::device< id_t > Class Template Reference

abstract commom base device interface class More...

#include <dx_device.h>

+ Inheritance diagram for dx::device< id_t >:
+ Collaboration diagram for dx::device< id_t >:

Public Member Functions

virtual void conclude () noexcept
 conclude notification: object will be removed. If you overwrite conclude() you also need to overwrite destructor and check if its needed to be called from there.
 
 device (decltype(driver)&driver, const id_t &id)
 the device class constructor
 
void exception (const dx::exception &exception, bool filtered=false) const noexcept override
 notification exception handler
 
void info (std::ostream &os) noexcept override
 log object class information
 
virtual void launch ()
 launch notification: object mounted and ready to use
 

Public Attributes

dx::driver< decltype(id)> & driver
 
const id_t id
 
bool launched {}
 
decltype(driver.preference) preference
 
uint32_t version = DX_VERSION32
 

Detailed Description

template<typename id_t>
class dx::device< id_t >

abstract commom base device interface class

Constructor & Destructor Documentation

◆ device()

template<typename id_t >
dx::device< id_t >::device ( decltype(driver)& driver,
const id_t & id )
inline

the device class constructor

Member Function Documentation

◆ conclude()

virtual void dx::object::conclude ( )
inlinevirtualnoexceptinherited

conclude notification: object will be removed. If you overwrite conclude() you also need to overwrite destructor and check if its needed to be called from there.

Reimplemented in dx::proxy::device, dx::proxy::device, dx::map::driver< device >, and dx::map::driver< device_t >.

+ Here is the caller graph for this function:

◆ exception()

template<typename id_t >
void dx::device< id_t >::exception ( const dx::exception & exception,
bool filtered = false ) const
inlineoverridevirtualnoexcept

notification exception handler

Implements dx::object.

Reimplemented in dx::proxy::device, dx::usb::platform::device, and dx::proxy::device.

+ Here is the call graph for this function:

◆ info()

template<typename id_t >
void dx::device< id_t >::info ( std::ostream & os)
inlineoverridevirtualnoexcept

log object class information

Reimplemented from dx::object.

Reimplemented in dx::proxy::device, and dx::proxy::device.

+ Here is the call graph for this function:

◆ launch()

Member Data Documentation

◆ driver

template<typename id_t >
dx::driver<decltype(id)>& dx::device< id_t >::driver

◆ id

template<typename id_t >
const id_t dx::device< id_t >::id

◆ launched

bool dx::object::launched {}
inherited

◆ preference

template<typename id_t >
decltype(driver.preference) dx::device< id_t >::preference

◆ version

template<typename id_t >
uint32_t dx::device< id_t >::version = DX_VERSION32

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

(c) copyright 2009 dynamic acoustics e.U. generated on Fri Dec 20 2024

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.