AppleSAWS/src/diskfiles/dos33/vtoc.h
2015-12-14 03:32:51 -06:00

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