|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
the registry entry behind a device: its class, the bundle that provides it and every property it publishes More...
#include <dx_proxy_device.h>
Public Member Functions | |
| auto | count() const noexcept |
| device(decltype(super::driver)& driver, ::io_service_t id, const std::pair<std::string, std::string>& identity= {}) | |
| the device class constructor | |
| void | exception(const dx::exception& exception, bool filtered= false) const noexcept override |
| notification exception handler | |
| template<typename value_t, typename= cf::enable_if_convertible<value_t>> | |
| value_t | get(::CFStringRef key) const |
| ::CFTypeRef | get(::CFStringRef key) const |
| template<typename value_t, typename= cf::enable_if_convertible<value_t>> | |
| value_t | get(::CFStringRef key, ::CFTypeRef dflt) const noexcept |
| ::CFTypeRef | get(::CFStringRef key, ::CFTypeRef dflt) const noexcept |
| template<typename value_t, typename= cf::enable_if_convertible<value_t>> | |
| value_t | get(::CFStringRef key, value_t dflt) const noexcept |
| template<typename key_t, typename value_t, typename= cf::enable_if_convertible<key_t>, typename= cf::enable_if_convertible<value_t>> | |
| value_t | get(key_t key) const |
| template<typename key_t, typename= cf::enable_if_convertible<key_t>> | |
| ::CFTypeRef | get(key_t key) const |
| operator const ::io_registry_entry_t&() const noexcept | |
| auto converter into const io_object | |
| operator const ::io_registry_entry_t&() const noexcept | |
| auto converter into const io_object | |
| operator uint64_t() const | |
| operator ::CFMutableDictionaryRef() const | |
| operator ::CFStringRef() const | |
| operator ::io_registry_entry_t&() noexcept | |
| auto converter into io_object | |
| operator ::io_registry_entry_t&() noexcept | |
| auto converter into io_object | |
| operator ::io_registry_entry_t*() noexcept | |
| auto converter into io_object pointer | |
| operator ::io_registry_entry_t*() noexcept | |
| auto converter into io_object pointer | |
| bool | operator ==(::io_registry_entry_t io_object) const noexcept |
| virtual device& | operator >>(std::ostream &) const |
| the device's own diagnostics, beyond its operator << | |
| ::CFTypeRef | operator [](::CFStringRef key) const |
| template<typename key_t, typename= cf::enable_if_convertible<key_t>> | |
| ::CFTypeRef | operator [](key_t key) const |
| registry | parent() const |
| reference& | retain() |
| registry& | set(::CFStringRef key, ::CFTypeRef value) |
| template<typename value_t, typename= cf::enable_if_convertible<value_t>> | |
| registry& | set(::CFStringRef key, value_t value) |
| registry& | set(::CFTypeRef properties) |
| Setting properties in a registry entry is not generally supported, it is more common to support setting of properties of the connection based property setting of dx::device. | |
| template<typename key_t, typename= cf::enable_if_convertible<key_t>> | |
| registry& | set(key_t key, ::CFTypeRef value) |
| template<typename key_t, typename value_t, typename= cf::enable_if_convertible<key_t>, typename= cf::enable_if_convertible<value_t>> | |
| registry& | set(key_t key, value_t value) |
| virtual void | sleep() |
| notify system will sleep stub | |
| 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 void | wake() |
| notify system wake completed stub | |
Public Attributes | |
| dx::driver<decltype(id), preference_t>& | driver |
| const ::io_service_t | id |
| std::atomic<bool> | launched |
| 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) | |
Protected 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. Called only through try_conclude() - never call this directly from outside the class hierarchy. | |
| virtual void | launch() |
| launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy. | |
Protected Attributes | |
| struct dx::registry::device:: { ... } | kernel |
Friends | |
| std::ostream& | operator <<(std::ostream& os, device& device) |
the registry entry behind a device: its class, the bundle that provides it and every property it publishes
|
inline |
the device class constructor
| kIOReturn | NoMemory means that the system couldn't allocate the class defined in the drivers plist, or nub which ever its trying connecting to |
| driver | device tree hosting dx::driver |
| id | the IOService object to open the device connection for. This will be retained during device class lifetime |
|
inlineprotectedvirtualnoexceptinherited |
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.
|
inlinenoexceptinherited |
|
inlineoverridevirtualnoexcept |
notification exception handler
Reimplemented from dx::device<::io_service_t, preference_t >.
Reimplemented in 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 >, and dx::usb::platform::device< preference_t >.
|
inlineinherited |
|
inlineinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedvirtualinherited |
launch notification: object mounted and ready to use. Called only through try_launch() - never call this directly from outside the class hierarchy.
|
inlinenoexceptinherited |
auto converter into const io_object
|
inlinenoexceptinherited |
auto converter into const io_object
|
inlineexplicitinherited |
|
inlineexplicitinherited |
|
inlineexplicitinherited |
|
inlinenoexceptinherited |
auto converter into io_object
|
inlinenoexceptinherited |
auto converter into io_object
|
inlinenoexceptinherited |
auto converter into io_object pointer
|
inlinenoexceptinherited |
auto converter into io_object pointer
|
inlinenoexceptinherited |
|
inlinevirtualinherited |
the device's own diagnostics, beyond its operator <<
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Setting properties in a registry entry is not generally supported, it is more common to support setting of properties of the connection based property setting of dx::device.
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
notify system will sleep stub
|
inlinenoexceptinherited |
atomically conclude()s if currently launched; returns whether this call did it
|
inlineinherited |
|
inlinevirtualinherited |
notify system wake completed stub
|
friend |
|
inherited |
|
inherited |
| struct { ... } dx::registry::device<preference_t>::kernel |
|
inherited |
|
inherited |
|
inherited |
persistent UID - system unique - could change with location
|
inherited |
persistent universal UID - universally unique ID (i.e. serial number)