dxd - dynax driver framework 2.5.0d148
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::virtuel::stream::device< desc_t, preference_t, stream_t > Class Template Reference

#include <dx_virtual_stream_device.h>

+ Inheritance diagram for dx::virtuel::stream::device< desc_t, preference_t, stream_t >:
+ Collaboration diagram for dx::virtuel::stream::device< desc_t, preference_t, stream_t >:

Public Types

typedef desc_t desc_t
 

Public Member Functions

void conclude () noexcept override
 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.
 
 dx_catchall_handler (this,) void conclude() noexcept override
 
void exception (const dx::exception &exception, bool filtered=false) const noexcept override
 notification exception handler
 
virtual uint64_t frame () const
 
void hw_clock (dx::event< user > &) override
 
void info (std::ostream &os) noexcept override
 log object class information
 
virtual void launch ()
 launch notification: object mounted and ready to use
 
_devicereset ()
 
virtual bool start (uint64_t=0, unsigned int starting=1)
 
virtual unsigned int stop (bool force=false) noexcept
 

Public Attributes

promoted< typename super::client_map > clients
 
dx::event< user > * clock
 
promoted< uint32_t >::preference< preference_t > clocksource
 
std::atomic< size_t > counter
 
promoted< desc_t >::template preference< preference_t, typename desc_t::value_t > desc {this->preference}
 
dx::driver< decltype(id)> & driver
 
struct { 
 
   dx::event< user > *   clock 
 
   std::atomic< size_t >   counter 
 
   uint32_t   iosize 
 
hw 
 
const std::string id
 
uint32_t iosize
 
promoted< uint32_t >::preference< preference_t > iosize
 
bool launched {}
 
dx::stream::device::monitor monitor
 
std::deque< std::function< void(control &)> notify )
 
preference_t preference
 
std::string puid
 persistent UID - system unique - could change with location
 
std::string puuid
 persistent universal UID - universally unique ID (i.e. serial number)
 
promoted< uint32_t >::preference< preference_t > safety_offset [direction::directions]
 
promoted< uint32_t >::preference< preference_t > samplerate
 
std::atomic< unsigned int > started
 
std::map< decltype(_desc_t::stream::target.idx()), std::weak_ptr< stream_t > > streams
 
promoted< uint32_t >::preference< preference_t > sync_cycle_ticks
 
promoted< uint32_t >::preference< preference_t > sync_reference
 
dx::stream::device::monitor version
 

Protected Member Functions

virtual void flush ()
 
virtual void halt ()
 

Protected Attributes

std::recursive_mutex start_stop_in_progress
 start/stop operation in progress
 

Member Typedef Documentation

◆ desc_t

typedef desc_t dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::desc_t
inherited

Member Function Documentation

◆ conclude()

template<typename desc_t , typename preference_t , typename stream_t >
void dx::virtuel::stream::_device< desc_t, preference_t, stream_t >::conclude ( )
inlineoverridevirtualnoexceptinherited

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 from dx::object.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dx_catchall_handler()

dx::stream::control< dx::device< std::string > >::dx_catchall_handler ( this )
inlineoverridenoexceptinherited

◆ exception()

template<typename desc_t , typename preference_t , typename stream_t >
void dx::virtuel::stream::_device< desc_t, preference_t, stream_t >::exception ( const dx::exception & exception,
bool filtered = false ) const
inlineoverridevirtualnoexceptinherited

notification exception handler

Reimplemented from dx::device< std::string >.

+ Here is the call graph for this function:

◆ flush()

virtual void dx::stream::control< dx::device< std::string > >::flush ( )
inlineprotectedvirtualinherited

◆ frame()

template<typename desc_t , typename preference_t , typename stream_t >
virtual uint64_t dx::virtuel::stream::_device< desc_t, preference_t, stream_t >::frame ( ) const
inlinevirtualinherited
+ Here is the call graph for this function:

◆ halt()

virtual void dx::stream::control< dx::device< std::string > >::halt ( )
inlineprotectedvirtualinherited

◆ hw_clock()

template<typename desc_t , typename preference_t , typename stream_t >
void dx::virtuel::stream::_device< desc_t, preference_t, stream_t >::hw_clock ( dx::event< user > & )
inlineoverridevirtualinherited

◆ info()

template<typename desc_t , typename preference_t , typename stream_t >
void dx::virtuel::stream::_device< desc_t, preference_t, stream_t >::info ( std::ostream & os)
inlineoverridevirtualnoexceptinherited

log object class information

Reimplemented from dx::stream::device< dx::stream::control< dx::device< std::string > >, desc_t, preference_t, stream_t >.

+ Here is the call graph for this function:

◆ launch()

◆ reset()

template<typename desc_t , typename preference_t , typename stream_t >
_device & dx::virtuel::stream::_device< desc_t, preference_t, stream_t >::reset ( )
inlineinherited

◆ start()

virtual bool dx::stream::control< dx::device< std::string > >::start ( uint64_t = 0,
unsigned int starting = 1 )
inlinevirtualinherited

result indicates if start changed the state.

◆ stop()

virtual unsigned int dx::stream::control< dx::device< std::string > >::stop ( bool force = false)
inlinevirtualnoexceptinherited

result indicates the amount of stopped start references

Member Data Documentation

◆ clients

template<typename desc_t , typename preference_t , typename stream_t >
promoted<typename super::client_map> dx::virtuel::stream::_device< desc_t, preference_t, stream_t >::clients
inherited
Initial value:
{
[this](dx::promoted<typename super::client_map>::lock_t& lock, const typename super::client_map& value){
dx::promoted<uint32_t>::lock_t tmp(std::move(lock));
clients.commit(tmp, value);
}}
bool transient
\ indicate the value has been initialized
Definition dx_value.h:70
void commit(lock_t &lock, const value_t &value) try
Definition dx_value.h:137
std::unique_lock< mutex_t > lock_t
Definition dx_value.h:67
promoted< typename super::client_map > clients
Definition dx_virtual_stream_device.h:113

◆ clock

dx::event<user>* dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::clock
inherited

◆ clocksource

promoted<uint32_t>::preference<preference_t> dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::clocksource
inherited

◆ counter

std::atomic<size_t> dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::counter
inherited

◆ desc

template<typename desc_t , typename preference_t , typename stream_t >
promoted<desc_t>::template preference<preference_t, typename desc_t::value_t> dx::virtuel::stream::_device< desc_t, preference_t, stream_t >::desc {this->preference}
inherited

◆ driver

dx::driver<decltype(id)>& dx::device< std::string >::driver
inherited

◆ [struct]

struct { ... } dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::hw

◆ id

const std::string dx::device< std::string >::id
inherited

◆ iosize [1/2]

uint32_t dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::iosize
inherited

◆ iosize [2/2]

promoted<uint32_t>::preference<preference_t> dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::iosize
inherited

◆ launched

bool dx::object::launched {}
inherited

◆ monitor

dx::stream::device::monitor dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::monitor
inherited

◆ notify

std::deque<std::function<void(control&)> dx::stream::control< dx::device< std::string > >::notify)
inherited

◆ preference

preference_t dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::preference
inherited

◆ puid

std::string dx::device< std::string >::puid
inherited

persistent UID - system unique - could change with location

◆ puuid

std::string dx::device< std::string >::puuid
inherited

persistent universal UID - universally unique ID (i.e. serial number)

◆ safety_offset

promoted<uint32_t>::preference<preference_t> dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::safety_offset[direction::directions]
inherited

◆ samplerate

promoted<uint32_t>::preference<preference_t> dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::samplerate
inherited

◆ start_stop_in_progress

std::recursive_mutex dx::stream::control< dx::device< std::string > >::start_stop_in_progress
protectedinherited

start/stop operation in progress

◆ started

std::atomic<unsigned int> dx::stream::control< dx::device< std::string > >::started
inherited

◆ streams

std::map<decltype(_desc_t::stream::target.idx()), std::weak_ptr<stream_t> > dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::streams
inherited

◆ sync_cycle_ticks

promoted<uint32_t>::preference<preference_t> dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::sync_cycle_ticks
inherited

◆ sync_reference

promoted<uint32_t>::preference<preference_t> dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::sync_reference
inherited

◆ version

dx::stream::device::monitor dx::stream::device< dx::stream::control< dx::device< std::string > > , desc_t , preference_t, stream_t >::version
inherited

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

(c) copyright 2009 dynamic acoustics e.U. generated on Fri Aug 22 2025

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.