AppleSAWS/src/applesoftfile/applesoftfile.h

41 lines
753 B
C
Raw Normal View History

2015-12-01 16:24:51 +00:00
#ifndef APPLESOFTFILE_H
#define APPLESOFTFILE_H
#include <QByteArray>
#include <QStringList>
#include <QMap>
2015-12-14 09:20:36 +00:00
#include <QVector>
2015-12-01 16:24:51 +00:00
#include "applesoftline.h"
2015-12-01 16:24:51 +00:00
#include "genericfile.h"
2015-12-14 09:20:36 +00:00
#include "applesofttoken.h"
#include "ApplesoftRetokenizer.h"
2015-12-01 16:24:51 +00:00
class ApplesoftFile : public GenericFile
{
public:
ApplesoftFile(QByteArray data = QByteArray());
void setData(QByteArray data);
QByteArray extraData();
QStringList extraDataHexValues();
QVector<ApplesoftLine> getLines() const { return m_lines; }
2016-02-10 16:10:37 +00:00
quint16 length() const { return m_length; }
QByteArray rawData();
2015-12-01 16:24:51 +00:00
private:
QVector<ApplesoftLine> m_lines;
2015-12-01 16:24:51 +00:00
int m_data_end;
quint16 m_length;
ApplesoftRetokenizer *m_retokenizer;
2015-12-01 16:24:51 +00:00
};
2015-12-01 16:24:51 +00:00
#endif // APPLESOFTFILE_H