mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2024-11-25 05:31:54 +00:00
34 lines
550 B
C++
34 lines
550 B
C++
#ifndef VTOC_H
|
|
#define VTOC_H
|
|
|
|
#include <Qt>
|
|
#include "util.h"
|
|
class Sector;
|
|
class QString;
|
|
|
|
|
|
class VTOC
|
|
{
|
|
public:
|
|
VTOC(Sector *data);
|
|
|
|
void dump();
|
|
TSPair firstCatalogSector();
|
|
quint8 dosVersion();
|
|
quint8 volumeNumber();
|
|
quint8 maxTSPairs();
|
|
quint8 lastTrackAllocated();
|
|
qint8 directionOfAllocation();
|
|
quint8 tracksPerDisk();
|
|
quint8 sectorsPerDisk();
|
|
qint16 bytesPerSector();
|
|
bool isSectorInUse(TSPair ts);
|
|
|
|
private:
|
|
QString buildUseString(quint8 track);
|
|
|
|
Sector *m_data;
|
|
};
|
|
|
|
#endif // VTOC_H
|