JUCE API reference
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
juce::universal_midi_packets::EndpointId Class Reference

Identifies a MIDI endpoint. More...

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ EndpointId()

juce::universal_midi_packets::EndpointId::EndpointId ( )
default

Member Function Documentation

◆ operator==()

bool juce::universal_midi_packets::EndpointId::operator== ( const EndpointId &  x) const

◆ operator!=()

bool juce::universal_midi_packets::EndpointId::operator!= ( const EndpointId &  x) const

◆ operator<()

bool juce::universal_midi_packets::EndpointId::operator< ( const EndpointId &  x) const

◆ operator<=()

bool juce::universal_midi_packets::EndpointId::operator<= ( const EndpointId &  x) const

◆ operator>()

bool juce::universal_midi_packets::EndpointId::operator> ( const EndpointId &  x) const

◆ operator>=()

bool juce::universal_midi_packets::EndpointId::operator>= ( const EndpointId &  x) const

◆ get()

String juce::universal_midi_packets::EndpointId::get ( IOKind  k) const
inline

◆ make()

static EndpointId juce::universal_midi_packets::EndpointId::make ( IOKind  dir,
const String &  id 
)
inlinestatic

◆ makeSrcDst()

static EndpointId juce::universal_midi_packets::EndpointId::makeSrcDst ( const String &  s,
const String &  d 
)
inlinestatic

Referenced by make().

Member Data Documentation

◆ src

String juce::universal_midi_packets::EndpointId::src

Referenced by get().

◆ dst

String juce::universal_midi_packets::EndpointId::dst

Referenced by get().


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