Flags indicating the features that are supported by a given CI device. More...
#include <juce_CIDeviceFeatures.h>
Public Member Functions | |
DeviceFeatures ()=default | |
Constructs a DeviceFeatures object with no flags enabled. | |
DeviceFeatures (std::byte f) | |
Constructs a DeviceFeatures object, taking flag values from the "Capability Inquiry
Category Supported" byte in a CI Discovery message. | |
DeviceFeatures | withProfileConfigurationSupported (bool x=true) const |
Returns a new DeviceFeatures instance with profile configuration marked as supported. | |
DeviceFeatures | withPropertyExchangeSupported (bool x=true) const |
Returns a new DeviceFeatures instance with property exchange marked as supported. | |
DeviceFeatures | withProcessInquirySupported (bool x=true) const |
Returns a new DeviceFeatures instance with process inquiry marked as supported. | |
bool | isProfileConfigurationSupported () const |
bool | isPropertyExchangeSupported () const |
bool | isProcessInquirySupported () const |
std::byte | getSupportedCapabilities () const |
Returns the feature flags formatted into a bitfield suitable for use as the "Capability
Inquiry Category Supported" byte in a CI Discovery message. | |
bool | operator== (const DeviceFeatures &other) const |
Returns true if this and other both have the same flags set. | |
bool | operator!= (const DeviceFeatures &other) const |
Returns true if any flags in this and other differ. | |
Flags indicating the features that are supported by a given CI device.
|
default |
Constructs a DeviceFeatures object with no flags enabled.
|
explicit |
Constructs a DeviceFeatures object, taking flag values from the "Capability Inquiry Category Supported" byte in a CI Discovery message.
|
nodiscard |
Returns a new DeviceFeatures instance with profile configuration marked as supported.
References x.
|
nodiscard |
Returns a new DeviceFeatures instance with property exchange marked as supported.
References x.
|
nodiscard |
Returns a new DeviceFeatures instance with process inquiry marked as supported.
References x.
|
nodiscard |
|
nodiscard |
|
nodiscard |
std::byte midi_ci::DeviceFeatures::getSupportedCapabilities | ( | ) | const |
Returns the feature flags formatted into a bitfield suitable for use as the "Capability Inquiry Category Supported" byte in a CI Discovery message.
bool midi_ci::DeviceFeatures::operator== | ( | const DeviceFeatures & | other | ) | const |
Returns true if this and other both have the same flags set.
Referenced by operator!=().
bool midi_ci::DeviceFeatures::operator!= | ( | const DeviceFeatures & | other | ) | const |
Returns true if any flags in this and other differ.
References operator==().