Revision 5:7fde3cc109dc MIDIFileReader.h
| MIDIFileReader.h | ||
|---|---|---|
| 33 | 33 |
#ifndef _MIDI_FILE_READER_H_ |
| 34 | 34 |
#define _MIDI_FILE_READER_H_ |
| 35 | 35 |
|
| 36 |
#include <QObject> |
|
| 37 |
#include <QList> |
|
| 38 |
#include <QMap> |
|
| 39 |
#include <QSet> |
|
| 36 |
#include "MIDIComposition.h" |
|
| 40 | 37 |
|
| 38 |
#include <set> |
|
| 41 | 39 |
#include <iostream> |
| 42 | 40 |
|
| 43 |
#include "MIDIComposition.h" |
|
| 44 |
|
|
| 45 | 41 |
typedef unsigned char MIDIByte; |
| 46 | 42 |
|
| 47 | 43 |
class MIDIFileReader |
| 48 | 44 |
{
|
| 49 | 45 |
public: |
| 50 |
MIDIFileReader(QString path);
|
|
| 46 |
MIDIFileReader(std::string path);
|
|
| 51 | 47 |
virtual ~MIDIFileReader(); |
| 52 | 48 |
|
| 53 | 49 |
virtual bool isOK() const; |
| 54 |
virtual QString getError() const;
|
|
| 50 |
virtual std::string getError() const;
|
|
| 55 | 51 |
|
| 56 | 52 |
virtual MIDIComposition load() const; |
| 57 | 53 |
|
| ... | ... | |
| 84 | 80 |
long m_trackByteCount; |
| 85 | 81 |
bool m_decrementCount; |
| 86 | 82 |
|
| 87 |
QMap<int, QString> m_trackNames;
|
|
| 83 |
std::map<int, std::string> m_trackNames;
|
|
| 88 | 84 |
MIDIComposition m_midiComposition; |
| 89 | 85 |
|
| 90 |
QString m_path;
|
|
| 86 |
std::string m_path;
|
|
| 91 | 87 |
std::ifstream *m_midiFile; |
| 92 | 88 |
size_t m_fileSize; |
| 93 |
QString m_error;
|
|
| 89 |
std::string m_error;
|
|
| 94 | 90 |
}; |
| 95 | 91 |
|
| 96 | 92 |
|
Also available in: Unified diff