AppleSAWS/src/diskfiles/dos33/catalogsector.h

46 lines
805 B
C
Raw Normal View History

2015-12-01 16:24:51 +00:00
#ifndef CATALOGSECTOR_H
#define CATALOGSECTOR_H
#include <Qt>
#include <QByteArray>
#include <QDebug>
#include "util.h"
#include "applestring.h"
#include "filedescriptiveentry.h"
class Sector;
class CatalogSector
{
public:
CatalogSector(Sector *sector);
FileDescriptiveEntry &getFDE(quint8 number) {
if (number >= m_fdes.length()) {
number = m_fdes.length() - 1;
}
return m_fdes[number];
}
QList<FileDescriptiveEntry> getFDEs() { return m_fdes; }
TSPair nextCatalogSector() { return m_next; }
void dumpFDEs();
2016-10-27 22:46:08 +00:00
Sector *getSector() const { return m_data; }
2015-12-01 16:24:51 +00:00
private:
FileDescriptiveEntry makeFDE(int offset);
private:
Sector *m_data;
QList<FileDescriptiveEntry> m_fdes;
TSPair m_next;
};
#endif // CATALOGSECTOR_H