|
| bool | add(const device_id_t& device_id) override |
| | a device whose bus states nothing of it: an empty match takes it
|
| bool | add(const device_id_t& device_id, const lookup_t& lookup) |
| | adds a new device to the device list where the match takes it, asked ahead of the device - lookup(verb) what the bus's system or a desc it holds states of the device, none where neither does
|
| void | add(const std::string& id, const typename device_t::desc_t& descdesc) |
| const_iterator | begin() const noexcept |
| iterator | begin() noexcept |
| virtual bool | boot() |
| 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. Called only through try_conclude() - never call this directly from outside the class hierarchy.
|
| bool | contains(const std::string& id) noexcept |
| | driver(const match& matching_ids, const char* product_id, dx::log log= {}) |
| | the driver interface class constructor
|
| const_iterator | end() const noexcept |
| iterator | end() noexcept |
| void | exception(const class exception& exception, bool filtered= false) const noexcept override |
| | notification exception handler
|
| virtual void | exception(const exception& exception, bool filtered= false) const noexcept= 0 |
| | notification exception handler
|
| iterator | find(const device_id_t& device_id) |
| const_iterator | find(const device_id_t& device_id) const |
| void | launch() override |
| | launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy.
|
| | operator bool() const noexcept override |
| super& | operator <<(std::ifstream& ifstream) override |
| | restores device tree
|
| virtual driver& | operator <<(const char* file) |
| virtual driver& | operator >>(const char* file) const |
| virtual driver& | operator >>(std::ostream& ostream) const |
| | saves device tree
|
| std::shared_ptr<device_t> | operator [](const std::string& id) |
| void | remove(const device_id_t& device_id) override |
| | finds and removes a device from the device list
|
| void | remove(const std::string& id, bool= false) |
| virtual bool | shutdown() |
| | client driver::shutdown/boot(): override to shutdown/boot host driver
|
| bool | try_conclude() noexcept |
| | atomically conclude()s if currently launched; returns whether this call did it
|
| bool | try_launch() |
| | atomically launch()es if not already launched; returns whether this call did it. A launch() that throws is concluded before the exception leaves: the object never claims a launch it did not finish
|
|
| virtual bool | add(const device_id_t &)= 0 |
| | adds a new device to the device list
|
| virtual void | arrived() |
| | notify device arrivals completed stub
|
| virtual void | arrived(device_t &) |
| | notify specific device arrival stub
|
| virtual void | clear() noexcept |
| | replaces std::map::clear to call virtual notification methods
|
| virtual bool | filter(const ::MIDIDeviceRef id) |
| | a device CoreMIDI lists or announces: a verb is a property's name, its value a text
|
| virtual void | notify(const ::MIDINotification& notify) |
| virtual void | remove(const device_id_t &)= 0 |
| | finds and removes a device from the device list
|
| virtual void | removed() noexcept |
| | notify device removals completed stub
|
| virtual void | removed(device_t &) noexcept |
| | notify specific device removal stub
|
| void | sleep() override |
| | < notify system will sleep
|
| void | wake() override |
CoreMIDI client driver interface class.
This is the CoreMIDI 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
-
| in | case of an error returned by the underlaying API the driver class throws a dx::exception. |
|
|
inlineoverridevirtualnoexcept |
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. Called only through try_conclude() - never call this directly from outside the class hierarchy.
It is not essential to call this function; the CoreMIDI framework will automatically dispose all MIDIClients when an application terminates. However, if this method is called to dispose the last/only MIDIClient owned by an application, the MIDI server may exit if there are no other MIDIClients remaining in the system, causing all subsequent calls to MIDIClientCreate and MIDIClientCreateWithBlock by that application to fail. For this reason, disposing all of an application's MIDIClients is strongly discouraged.
Reimplemented from dx::object.
| virtual void dx::object::exception(const exception& exception, bool filtered= false) const |
|
pure virtualnoexceptinherited |
notification exception handler
Implemented in dx::asio::client::_device< desc_t, preference_t, stream_t, group_t >, dx::asio::client::_device< desc, preference, stream< device< desc, preference, stream, group > >, group< device< desc, preference, stream, group > > >, dx::asio::client::_device< desc_t, preference_t, stream_t< device< desc_t, preference_t, stream_t, group_t > >, group_t< device< desc_t, preference_t, stream_t, group_t > > >, dx::device< id_t, preference_t >, dx::device< dx::guid, preference >, dx::device< std::string, dx::preference >, dx::device< std::string, preference >, dx::device< std::string, preference_t >, dx::device<::AudioObjectID, cf::preference >, dx::device<::io_service_t, dx::preference >, dx::device<::io_service_t, preference_t >, dx::device<::MIDIDeviceRef, cf::preference >, dx::device<>, dx::proxy::device< preference_t >, dx::proxy::device< preference_t >, dx::proxy::device< dx::preference >, dx::proxy::device<>, dx::registry::device< preference_t >, dx::registry::device< dx::preference >, dx::service::app, dx::service::app, dx::service::client::_device< desc_t, preference_t, stream_t, group_t >, dx::service::client::_device< desc, preference, stream< device< desc, preference, stream, group > >, group< device< desc, preference, stream, group > > >, dx::service::client::_device< desc_t, preference_t, stream_t< device< desc_t, preference_t, stream_t, group_t > >, group_t< device< desc_t, preference_t, stream_t, group_t > > >, dx::stream::object< _device_t >, dx::stream::object< device<> >, dx::stream::pin< device_t, _circular_t >, dx::usb::device< preference_t >, dx::usb::device< dx::preference >, dx::usb::platform::device< preference_t >, dx::usb::platform::device< preference_t >, dx::usb::platform::device< dx::preference >, dx::usb::platform::device< preference_t >, dx::usb::platform::device< preference_t >, dx::usb::stream::pipe< device_t, circular_t, stream_t >, dx::virtuel::stream::_device< desc_t, preference_t, stream_t, group_t >, dx::virtuel::stream::_device< desc, dx::preference, dx::stream::shared::stream< device< desc, dx::preference, dx::stream::shared::stream, group > >, group< device< desc, dx::preference, dx::stream::shared::stream, group > > >, dx::virtuel::stream::_device< desc_t, preference_t, stream_t< device< desc_t, preference_t, stream_t, group_t > >, group_t< device< desc_t, preference_t, stream_t, group_t > > >, and dx::wasapi::client::_device< desc, preference, stream< device< desc, preference, stream, group > >, group< device< desc, preference, stream, group > > >.