Midi Parser
A simple library that reads and parses binary MIDI files
Event Class Referenceabstract

A base class for Midi events. More...

#include <Event.h>

Inheritance diagram for Event:
MetaEvent MidiEvent SysExEvent

Public Member Functions

virtual ~Event ()=default
 
virtual Eventclone () const =0
 
virtual MidiType::EventType getType () const =0
 
uint8_t getByteLength () const
 

Protected Attributes

uint8_t byteLength {}
 

Detailed Description

A base class for Midi events.

A virtual class all event classes are derived from

Constructor & Destructor Documentation

◆ ~Event()

virtual Event::~Event ( )
virtualdefault

Destroys the Event object

Member Function Documentation

◆ clone()

virtual Event* Event::clone ( ) const
pure virtual

Clones the event

Returns
A pointer to the cloned Event object

Implemented in MetaEvent, SysExEvent, and MidiEvent.

◆ getByteLength()

uint8_t Event::getByteLength ( ) const

Returns the length of the Event

Returns
The length of the Event in bytes

◆ getType()

virtual MidiType::EventType Event::getType ( ) const
pure virtual

Returns the type of the event

Returns
Event type, should be different for every derived class

Implemented in MetaEvent, SysExEvent, and MidiEvent.


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