Midi Parser
A simple library that reads and parses binary MIDI files
|
A base class for any chunk. More...
#include <BaseChunk.h>
Public Member Functions | |
BaseChunk (const char *filePath, long addr) | |
BaseChunk (const BaseChunk &chunk) | |
~BaseChunk () | |
char * | getName () const |
int | getLength () const |
long | getByteLength () const |
Protected Attributes | |
char * | name {} |
uint32_t | length {} |
long | byteLength {} |
A base class for any chunk.
BaseChunk::BaseChunk | ( | const char * | filePath, |
long | addr | ||
) |
Reads the Midi file and constructs the chunk object
filePath | A path to the file to read the chunk data from |
addr | An address of the chunk in bytes |
BaseChunk::BaseChunk | ( | const BaseChunk & | chunk | ) |
Copies the chunk
chunk | Chunk to copy from |
BaseChunk::~BaseChunk | ( | ) |
Destroys the chunk object
long BaseChunk::getByteLength | ( | ) | const |
Returns the length of the chunk
int BaseChunk::getLength | ( | ) | const |
Returns the length of the chunk
char * BaseChunk::getName | ( | ) | const |
Returns the name of the chunk