dxd - dynax driver framework  2675
cross platform open source driver development framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dx::midi::plugin< io_t, bus_t, desc_t, exception_t > Class Template Reference

CoreMIDI plugin. More...

#include <dx_midi.h>

+ Inheritance diagram for dx::midi::plugin< io_t, bus_t, desc_t, exception_t >:
+ Collaboration diagram for dx::midi::plugin< io_t, bus_t, desc_t, exception_t >:

Public Member Functions

 operator::MIDIDriverRef () noexcept
 
 plugin (const ::CFDictionaryRef match) throw (exception_t)
 

Public Attributes

::MIDIDriverInterface * interface
 

Protected Member Functions

virtual void arrived (device_t &device) throw (exception_t)
 encode and send MIDI from system to device void send(const::MIDIPacketList*pktlist,pin_t*pin)throw(exception_t){ if(!pin)throw exception_t(not_initialized); pin->send(pktlist); } More...
 
virtual void exception (const exception_t &exception) const noexcept
 notification exception handler More...
 

Private Member Functions

virtual void arrived (device< io_t, bus_t, desc_t, exception_t > &) throw (exception_t)
 notify specific device arrival stub More...
 
virtual void arrived () throw (exception_t)
 notify device arrivals completed stub More...
 
virtual void clear () noexcept
 replaces non-virtual std::deque::clear to call virtual notification methods More...
 
virtual void clear () noexcept
 replaces non-virtual std::deque::clear to call virtual notification methods More...
 
virtual void conclude () noexcept
 
virtual void conclude () noexcept
 
device< io_t, bus_t, desc_t,
exception_t > * 
find (std::string uid) const noexcept
 Finds the device by guid.
The user is responsible for making sure the device list cannot be modified during find(). More...
 
virtual void launch () throw (exception_t)
 
virtual void launch () throw (exception_t)
 
virtual void removed (device< io_t, bus_t, desc_t, exception_t > &) noexcept
 notify specific device removal stub More...
 
virtual void removed () noexcept
 notify device removals completed stub More...
 
virtual void removed (device< io_t, bus_t, desc_t, exception_t > &) noexcept
 notify specific device removal stub More...
 
virtual void removed () noexcept
 notify device removals completed stub More...
 

Static Private Member Functions

static void idle (int64_t nsec) noexcept
 
static void idle (uint64_t timeout) noexcept
 

Private Attributes

elements
 STL member. More...
 
typedef::CFDictionaryRef match
 
typedef::GUID match
 

Detailed Description

template<typename io_t, typename bus_t, typename desc_t, typename exception_t = os_result>
class dx::midi::plugin< io_t, bus_t, desc_t, exception_t >

CoreMIDI plugin.

Constructor & Destructor Documentation

template<typename io_t , typename bus_t , typename desc_t , typename exception_t = os_result>
dx::midi::plugin< io_t, bus_t, desc_t, exception_t >::plugin ( const ::CFDictionaryRef  match)
throw (exception_t
)
inline

Member Function Documentation

template<typename io_t , typename bus_t , typename desc_t , typename exception_t = os_result>
virtual void dx::midi::plugin< io_t, bus_t, desc_t, exception_t >::arrived ( device_t device)
throw (exception_t
)
inlineprotectedvirtual

encode and send MIDI from system to device void send(const::MIDIPacketList*pktlist,pin_t*pin)throw(exception_t){ if(!pin)throw exception_t(not_initialized); pin->send(pktlist); }

create CoreMIDI device and attach it to CoreMIDI server

template<typename io_t , typename bus_t , typename desc_t , typename exception_t = os_result>
virtual void dx::midi::plugin< io_t, bus_t, desc_t, exception_t >::exception ( const exception_t &  exception) const
inlineprotectedvirtualnoexcept

notification exception handler

Reimplemented from dx::driver< exception_t, device< io_t, bus_t, desc_t, exception_t > >.

template<typename io_t , typename bus_t , typename desc_t , typename exception_t = os_result>
dx::midi::plugin< io_t, bus_t, desc_t, exception_t >::operator::MIDIDriverRef ( )
inlinenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

template<typename io_t , typename bus_t , typename desc_t , typename exception_t = os_result>
::MIDIDriverInterface* dx::midi::plugin< io_t, bus_t, desc_t, exception_t >::interface

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

(c) copyright 2009 dynamic acoustics e.U. generated on Tue Dec 4 2018

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.