Midi Parser
A simple library that reads and parses binary MIDI files
SysExEvent Class Reference

Contains data of the System Exclusive event. More...

#include <SysExEvent.h>

Inheritance diagram for SysExEvent:
Event

Public Member Functions

 SysExEvent ()=default
 
 SysExEvent (const char *filePath, long addr)
 
 ~SysExEvent () override
 
SysExEventclone () const override
 
MidiType::EventType getType () const override
 
MidiType::SysExMessageStatus getStatus () const
 
uint8_t getLength () const
 
uint8_t * getData () const
 
- Public Member Functions inherited from Event
virtual ~Event ()=default
 
uint8_t getByteLength () const
 

Protected Attributes

uint8_t status {}
 
uint8_t length {}
 
uint8_t * data {}
 
- Protected Attributes inherited from Event
uint8_t byteLength {}
 

Detailed Description

Contains data of the System Exclusive event.

Contains the data of the System Exclusive event and provides the methods to retrieve it

Constructor & Destructor Documentation

◆ SysExEvent() [1/2]

SysExEvent::SysExEvent ( )
default

Default constructor

◆ SysExEvent() [2/2]

SysExEvent::SysExEvent ( const char *  filePath,
long  addr 
)

Reads the Midi file and constructs the event object

Parameters
filePathFile path to read the data from
addrAddress of the event in bytes

◆ ~SysExEvent()

SysExEvent::~SysExEvent ( )
override

Destroys the event object

Member Function Documentation

◆ clone()

SysExEvent * SysExEvent::clone ( ) const
overridevirtual

Clones the event object

Returns
Pointer to the cloned event object

Implements Event.

◆ getData()

uint8_t * SysExEvent::getData ( ) const

Returns the event data

Returns
Pointer to the event data. Should not be read past its length

◆ getLength()

uint8_t SysExEvent::getLength ( ) const

Returns event data length

Returns
Length of the event data in bytes

◆ getStatus()

MidiType::SysExMessageStatus SysExEvent::getStatus ( ) const

Returns the event status

Returns
Status of the event

◆ getType()

MidiType::EventType SysExEvent::getType ( ) const
overridevirtual

Returns the type of the event

Returns
Event type. Always equals to MidiType::EventType::SysExEvent

Implements Event.


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