2025-02-08 19:58:54 -05:00
|
|
|
#include "zonefile.h"
|
|
|
|
|
#include "utils.h"
|
|
|
|
|
|
|
|
|
|
#include <QFile>
|
|
|
|
|
#include <QDataStream>
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
|
|
ZoneFile::ZoneFile() :
|
2025-02-19 19:17:31 -05:00
|
|
|
mStem(),
|
|
|
|
|
mSize(),
|
|
|
|
|
mTagCount(),
|
|
|
|
|
mTags(),
|
|
|
|
|
mRecordCount(),
|
|
|
|
|
mRecords(),
|
|
|
|
|
mAssetMap() {
|
2025-02-08 19:58:54 -05:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ZoneFile::~ZoneFile() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ZoneFile::ZoneFile(const ZoneFile &aZoneFile) {
|
2025-02-19 19:17:31 -05:00
|
|
|
mStem = aZoneFile.mStem;
|
|
|
|
|
mSize = aZoneFile.mSize;
|
|
|
|
|
mTagCount = aZoneFile.mTagCount;
|
|
|
|
|
mTags = aZoneFile.mTags;
|
|
|
|
|
mRecordCount = aZoneFile.mRecordCount;
|
|
|
|
|
mRecords = aZoneFile.mRecords;
|
|
|
|
|
mAssetMap = aZoneFile.mAssetMap;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ZoneFile &ZoneFile::operator=(const ZoneFile &other) {
|
|
|
|
|
if (this != &other) {
|
2025-02-19 19:17:31 -05:00
|
|
|
mStem = other.mStem;
|
|
|
|
|
mSize = other.mSize;
|
|
|
|
|
mTagCount = other.mTagCount;
|
|
|
|
|
mTags = other.mTags;
|
|
|
|
|
mRecordCount = other.mRecordCount;
|
|
|
|
|
mRecords = other.mRecords;
|
|
|
|
|
mAssetMap = other.mAssetMap;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-19 19:17:31 -05:00
|
|
|
QString ZoneFile::GetStem() {
|
|
|
|
|
return mStem;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
quint32 ZoneFile::GetSize() {
|
2025-02-19 19:17:31 -05:00
|
|
|
return mSize;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
quint32 ZoneFile::GetTagCount() {
|
2025-02-19 19:17:31 -05:00
|
|
|
return mTagCount;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QStringList ZoneFile::GetTags() {
|
2025-02-19 19:17:31 -05:00
|
|
|
return mTags;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
quint32 ZoneFile::GetRecordCount() {
|
2025-02-19 19:17:31 -05:00
|
|
|
return mRecordCount;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QStringList ZoneFile::GetRecords() {
|
2025-02-19 19:17:31 -05:00
|
|
|
return mRecords;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AssetMap ZoneFile::GetAssetMap() {
|
2025-02-19 19:17:31 -05:00
|
|
|
return mAssetMap;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
2025-02-19 19:17:31 -05:00
|
|
|
void ZoneFile::SetStem(const QString aStem) {
|
|
|
|
|
mStem = aStem;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
2025-02-19 19:17:31 -05:00
|
|
|
void ZoneFile::SetSize(quint32 aSize) {
|
|
|
|
|
mSize = aSize;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
2025-02-19 19:17:31 -05:00
|
|
|
void ZoneFile::SetTagCount(quint32 aTagCount) {
|
|
|
|
|
mTagCount = aTagCount;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
2025-02-19 19:17:31 -05:00
|
|
|
void ZoneFile::SetTags(const QStringList aTags) {
|
|
|
|
|
mTags = aTags;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
2025-02-19 19:17:31 -05:00
|
|
|
void ZoneFile::SetRecordCount(quint32 aRecordCount) {
|
|
|
|
|
mRecordCount = aRecordCount;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
2025-02-19 19:17:31 -05:00
|
|
|
void ZoneFile::SetRecords(const QStringList aRecords) {
|
|
|
|
|
mRecords = aRecords;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|
2025-02-19 19:17:31 -05:00
|
|
|
void ZoneFile::SetAssetMap(const AssetMap aAssetMap) {
|
|
|
|
|
mAssetMap = aAssetMap;
|
2025-02-08 19:58:54 -05:00
|
|
|
}
|
|
|
|
|
|