Identifies a MIDI endpoint.
This is intended to be an opaque type that can only be compared with other instances.
For backwards compatibility, we need to ensure that port identifier strings that used to work with MidiInput and MidiOutput continue to function in the same way. However, the old identifiers weren't necessarily unique between inputs and outputs (a MIDI 1.0 input and output could have the same ID), which means that a single id string isn't enough to uniquely identify an input or output port.
Public Member Functions | |
EndpointId ()=default | |
bool | operator== (const EndpointId &x) const |
bool | operator!= (const EndpointId &x) const |
bool | operator< (const EndpointId &x) const |
bool | operator<= (const EndpointId &x) const |
bool | operator> (const EndpointId &x) const |
bool | operator>= (const EndpointId &x) const |
String | get (IOKind k) const |
Static Public Member Functions | |
static EndpointId | make (IOKind dir, const String &id) |
static EndpointId | makeSrcDst (const String &s, const String &d) |
Public Attributes | |
String | src |
String | dst |
|
default |
Referenced by make(), makeSrcDst(), operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
bool juce::universal_midi_packets::EndpointId::operator== | ( | const EndpointId & | x | ) | const |
References EndpointId(), and x.
bool juce::universal_midi_packets::EndpointId::operator!= | ( | const EndpointId & | x | ) | const |
References EndpointId(), and x.
bool juce::universal_midi_packets::EndpointId::operator< | ( | const EndpointId & | x | ) | const |
References EndpointId(), and x.
bool juce::universal_midi_packets::EndpointId::operator<= | ( | const EndpointId & | x | ) | const |
References EndpointId(), and x.
bool juce::universal_midi_packets::EndpointId::operator> | ( | const EndpointId & | x | ) | const |
References EndpointId(), and x.
bool juce::universal_midi_packets::EndpointId::operator>= | ( | const EndpointId & | x | ) | const |
References EndpointId(), and x.
References dst, src, and juce::universal_midi_packets::src.
|
static |
References EndpointId(), makeSrcDst(), and juce::universal_midi_packets::src.
|
static |
References EndpointId().
Referenced by make().