LCOV - code coverage report
Current view: top level - src/MIDI_Parsers - SerialMIDI_Parser.hpp (source / functions) Hit Total Coverage
Test: e224b347cd670555e44f06608ac41bd1ace9d9d8 Lines: 7 7 100.0 %
Date: 2020-09-08 17:44:46 Functions: 5 5 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include "MIDI_Parser.hpp"
       4             : #include "SysExBuffer.hpp"
       5             : 
       6             : BEGIN_CS_NAMESPACE
       7             : 
       8         108 : class SerialMIDI_Parser : public MIDI_Parser {
       9             :   public:
      10             :     MIDIReadEvent parse(uint8_t midibyte);
      11             : 
      12             : #if !IGNORE_SYSEX
      13          63 :     SysExMessage getSysExMessage() const override {
      14          63 :         return {sysexbuffer.getBuffer(), sysexbuffer.getLength(), 0};
      15             :     }
      16             : #endif
      17             : 
      18             :   protected:
      19             : #if !IGNORE_SYSEX
      20             :     SysExBuffer sysexbuffer;
      21             : 
      22         357 :     bool addSysExByte(uint8_t data) { return sysexbuffer.add(data); }
      23          25 :     void startSysEx() { sysexbuffer.start(); }
      24          25 :     void endSysEx() { sysexbuffer.end(); }
      25             : #endif
      26             : 
      27             :   private:
      28          54 :     bool thirdByte = false;
      29             : };
      30             : 
      31             : END_CS_NAMESPACE

Generated by: LCOV version 1.14-6-g40580cd