Public Member Functions | List of all members
universal_midi_packets::GenericUMPConverter Class Reference

Allows conversion from bytestream- or Universal MIDI Packet-formatted messages to UMP format. More...

Public Member Functions

 GenericUMPConverter (PacketProtocol m)
 
void reset ()
 
template<typename Fn >
void convert (const MidiMessage &m, Fn &&fn)
 
template<typename Fn >
void convert (const View &v, Fn &&fn)
 
template<typename Fn >
void convert (Iterator begin, Iterator end, Fn &&fn)
 
PacketProtocol getProtocol () const noexcept
 

Detailed Description

Allows conversion from bytestream- or Universal MIDI Packet-formatted messages to UMP format.

The packet protocol can be selected using the constructor parameter.

Constructor & Destructor Documentation

◆ GenericUMPConverter()

universal_midi_packets::GenericUMPConverter::GenericUMPConverter ( PacketProtocol  m)
explicit

Member Function Documentation

◆ reset()

void universal_midi_packets::GenericUMPConverter::reset ( )

◆ convert() [1/3]

template<typename Fn >
void universal_midi_packets::GenericUMPConverter::convert ( const MidiMessage m,
Fn &&  fn 
)

◆ convert() [2/3]

template<typename Fn >
void universal_midi_packets::GenericUMPConverter::convert ( const View v,
Fn &&  fn 
)

◆ convert() [3/3]

template<typename Fn >
void universal_midi_packets::GenericUMPConverter::convert ( Iterator  begin,
Iterator  end,
Fn &&  fn 
)

References begin(), convert(), and end().

◆ getProtocol()

PacketProtocol universal_midi_packets::GenericUMPConverter::getProtocol ( ) const
noexcept

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