2016-03-02 07:29:19 +00:00
|
|
|
#include "PART.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAParticle
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
template <>
|
|
|
|
const char* GPSM<UniqueID32>::DNAType() {return "GPSM<UniqueID32>";}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
const char* GPSM<UniqueID64>::DNAType() {return "GPSM<UniqueID64>";}
|
|
|
|
|
2016-03-02 07:29:19 +00:00
|
|
|
template <class IDType>
|
2018-02-22 07:24:51 +00:00
|
|
|
void GPSM<IDType>::_read(typename ReadYaml::StreamT& r)
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
|
|
|
for (const auto& elem : r.getCurNode()->m_mapChildren)
|
|
|
|
{
|
|
|
|
if (elem.first.size() < 4)
|
|
|
|
{
|
2016-03-05 00:03:41 +00:00
|
|
|
LogModule.report(logvisor::Warning, "short FourCC in element '%s'", elem.first.c_str());
|
2016-03-02 07:29:19 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = r.enterSubRecord(elem.first.c_str()))
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
2017-02-12 23:56:03 +00:00
|
|
|
switch (*reinterpret_cast<const uint32_t*>(elem.first.data()))
|
|
|
|
{
|
|
|
|
case SBIG('PMCL'):
|
|
|
|
x78_PMCL.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LFOR'):
|
|
|
|
x118_LFOR.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('IDTS'):
|
|
|
|
xa4_IDTS.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('EMTR'):
|
|
|
|
x40_EMTR.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('COLR'):
|
|
|
|
x30_COLR.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('CIND'):
|
|
|
|
x45_30_CIND = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('AAPH'):
|
|
|
|
x44_26_AAPH = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('CSSD'):
|
|
|
|
xa0_CSSD.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('GRTE'):
|
|
|
|
x2c_GRTE.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('FXLL'):
|
|
|
|
x44_25_FXLL = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('ICTS'):
|
|
|
|
x8c_ICTS.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('KSSM'):
|
|
|
|
xd0_KSSM.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ILOC'):
|
|
|
|
x38_ILOC.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('IITS'):
|
|
|
|
xb8_IITS.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('IVEC'):
|
|
|
|
x3c_IVEC.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LDIR'):
|
|
|
|
x110_LDIR.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LCLR'):
|
|
|
|
x104_LCLR.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LENG'):
|
|
|
|
x20_LENG.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('MAXP'):
|
|
|
|
x28_MAXP.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LOFF'):
|
|
|
|
x10c_LOFF.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LINT'):
|
|
|
|
x108_LINT.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LINE'):
|
|
|
|
x44_24_LINE = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('LFOT'):
|
|
|
|
x114_LFOT.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LIT_'):
|
|
|
|
x44_29_LIT_ = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('LTME'):
|
|
|
|
x34_LTME.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LSLA'):
|
|
|
|
x11c_LSLA.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('LTYP'):
|
|
|
|
x100_LTYP.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('NDSY'):
|
|
|
|
xb4_NDSY.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('MBSP'):
|
|
|
|
x48_MBSP.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('MBLR'):
|
|
|
|
x44_30_MBLR = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('NCSY'):
|
|
|
|
x9c_NCSY.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PISY'):
|
|
|
|
xc8_PISY.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('OPTS'):
|
|
|
|
x45_31_OPTS = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('PMAB'):
|
|
|
|
x44_31_PMAB = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('SESD'):
|
|
|
|
xf8_SESD.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('SEPO'):
|
|
|
|
xfc_SEPO.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PSLT'):
|
|
|
|
xc_PSLT.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PMSC'):
|
|
|
|
x74_PMSC.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PMOP'):
|
|
|
|
x6c_PMOP.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PMDL'):
|
|
|
|
x5c_PMDL.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PMRT'):
|
|
|
|
x70_PMRT.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('POFS'):
|
|
|
|
x18_POFS.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PMUS'):
|
|
|
|
x45_24_PMUS = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('PSIV'):
|
|
|
|
x0_PSIV.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ROTA'):
|
|
|
|
x50_ROTA.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PSVM'):
|
|
|
|
x4_PSVM.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PSTS'):
|
|
|
|
x14_PSTS.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PSOV'):
|
|
|
|
x8_PSOV.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PSWT'):
|
|
|
|
x10_PSWT.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PMLC'):
|
|
|
|
xec_PMLC.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('SEED'):
|
|
|
|
x1c_SEED.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('PMOO'):
|
|
|
|
x45_25_PMOO = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('SSSD'):
|
|
|
|
xe4_SSSD.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('SORT'):
|
|
|
|
x44_28_SORT = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('SIZE'):
|
|
|
|
x4c_SIZE.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('SISY'):
|
|
|
|
xcc_SISY.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('SSPO'):
|
|
|
|
xe8_SSPO.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('TEXR'):
|
|
|
|
x54_TEXR.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('SSWH'):
|
|
|
|
xd4_SSWH.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('TIND'):
|
|
|
|
x58_TIND.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('VMD4'):
|
|
|
|
x45_29_VMD4 = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('VMD3'):
|
|
|
|
x45_28_VMD3 = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('VMD2'):
|
|
|
|
x45_27_VMD2 = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('VMD1'):
|
|
|
|
x45_26_VMD1 = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('VEL4'):
|
|
|
|
x88_VEL4.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('VEL3'):
|
|
|
|
x84_VEL3.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('VEL2'):
|
|
|
|
x80_VEL2.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('VEL1'):
|
|
|
|
x7c_VEL1.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ZBUF'):
|
|
|
|
x44_27_ZBUF = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('WIDT'):
|
|
|
|
x24_WIDT.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ORNT'):
|
|
|
|
x30_30_ORNT = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('RSOP'):
|
|
|
|
x30_31_RSOP = r.readBool(nullptr);
|
|
|
|
break;
|
|
|
|
case SBIG('ADV1'):
|
|
|
|
x10c_ADV1.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ADV2'):
|
|
|
|
x110_ADV2.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ADV3'):
|
|
|
|
x114_ADV3.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ADV4'):
|
|
|
|
x118_ADV4.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ADV5'):
|
|
|
|
x11c_ADV5.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ADV6'):
|
|
|
|
x120_ADV6.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('ADV7'):
|
|
|
|
x124_ADV7.read(r);
|
|
|
|
break;
|
|
|
|
case SBIG('SELC'):
|
|
|
|
xd8_SELC.read(r);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
template <class IDType>
|
2018-02-22 07:24:51 +00:00
|
|
|
void GPSM<IDType>::_write(typename WriteYaml::StreamT& w) const
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
|
|
|
if (x0_PSIV)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PSIV"))
|
|
|
|
x0_PSIV.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x4_PSVM)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PSVM"))
|
|
|
|
x4_PSVM.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x8_PSOV)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PSOV"))
|
|
|
|
x8_PSOV.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xc_PSLT)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PSLT"))
|
|
|
|
xc_PSLT.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x10_PSWT)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PSWT"))
|
|
|
|
x10_PSWT.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x14_PSTS)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PSTS"))
|
|
|
|
x14_PSTS.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x18_POFS)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("POFS"))
|
|
|
|
x18_POFS.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x1c_SEED)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("SEED"))
|
|
|
|
x1c_SEED.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x20_LENG)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LENG"))
|
|
|
|
x20_LENG.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x24_WIDT)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("WIDT"))
|
|
|
|
x24_WIDT.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x28_MAXP)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("MAXP"))
|
|
|
|
x28_MAXP.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x2c_GRTE)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("GRTE"))
|
|
|
|
x2c_GRTE.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x30_COLR)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("COLR"))
|
|
|
|
x30_COLR.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x34_LTME)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LTME"))
|
|
|
|
x34_LTME.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x38_ILOC)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ILOC"))
|
|
|
|
x38_ILOC.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x3c_IVEC)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("IVEC"))
|
|
|
|
x3c_IVEC.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x40_EMTR)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("EMTR"))
|
|
|
|
x40_EMTR.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x44_24_LINE)
|
|
|
|
w.writeBool("LINE", true);
|
|
|
|
if (x44_25_FXLL)
|
|
|
|
w.writeBool("FXLL", true);
|
|
|
|
if (x44_26_AAPH)
|
|
|
|
w.writeBool("AAPH", true);
|
|
|
|
if (x44_27_ZBUF)
|
|
|
|
w.writeBool("ZBUF", true);
|
|
|
|
if (x44_28_SORT)
|
|
|
|
w.writeBool("SORT", true);
|
|
|
|
if (x44_29_LIT_)
|
|
|
|
w.writeBool("LIT_", true);
|
|
|
|
if (x44_30_MBLR)
|
|
|
|
w.writeBool("MBLR", true);
|
|
|
|
if (x44_31_PMAB)
|
|
|
|
w.writeBool("PMAB", true);
|
|
|
|
if (x45_24_PMUS)
|
|
|
|
w.writeBool("PMUS", true);
|
|
|
|
if (!x45_25_PMOO)
|
|
|
|
w.writeBool("PMOO", false);
|
|
|
|
if (x45_26_VMD1)
|
|
|
|
w.writeBool("VMD1", true);
|
|
|
|
if (x45_27_VMD2)
|
|
|
|
w.writeBool("VMD2", true);
|
|
|
|
if (x45_28_VMD3)
|
|
|
|
w.writeBool("VMD3", true);
|
|
|
|
if (x45_29_VMD4)
|
|
|
|
w.writeBool("VMD4", true);
|
|
|
|
if (x45_30_CIND)
|
|
|
|
w.writeBool("CIND", true);
|
|
|
|
if (x45_31_OPTS)
|
|
|
|
w.writeBool("OPTS", true);
|
|
|
|
if (x30_30_ORNT)
|
|
|
|
w.writeBool("ORNT", true);
|
|
|
|
if (x30_31_RSOP)
|
|
|
|
w.writeBool("RSOP", true);
|
|
|
|
if (x48_MBSP)
|
2018-04-05 06:58:11 +00:00
|
|
|
if (auto rec = w.enterSubRecord("MBSP"))
|
2017-02-12 23:56:03 +00:00
|
|
|
x48_MBSP.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x4c_SIZE)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("SIZE"))
|
|
|
|
x4c_SIZE.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x50_ROTA)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ROTA"))
|
|
|
|
x50_ROTA.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x54_TEXR)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("TEXR"))
|
|
|
|
x54_TEXR.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x58_TIND)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("TIND"))
|
|
|
|
x58_TIND.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x5c_PMDL)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PMDL"))
|
|
|
|
x5c_PMDL.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x6c_PMOP)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PMOP"))
|
|
|
|
x6c_PMOP.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x70_PMRT)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PMRT"))
|
|
|
|
x70_PMRT.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x74_PMSC)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PMSC"))
|
|
|
|
x74_PMSC.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x78_PMCL)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PMCL"))
|
|
|
|
x78_PMCL.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x7c_VEL1)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("VEL1"))
|
|
|
|
x7c_VEL1.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x80_VEL2)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("VEL2"))
|
|
|
|
x80_VEL2.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x84_VEL3)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("VEL3"))
|
|
|
|
x84_VEL3.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x88_VEL4)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("VEL4"))
|
|
|
|
x88_VEL4.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x8c_ICTS)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ICTS"))
|
|
|
|
x8c_ICTS.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x9c_NCSY)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("NCSY"))
|
|
|
|
x9c_NCSY.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xa0_CSSD)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("CSSD"))
|
|
|
|
xa0_CSSD.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xa4_IDTS)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("IDTS"))
|
|
|
|
xa4_IDTS.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xb4_NDSY)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("NDSY"))
|
|
|
|
xb4_NDSY.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xb8_IITS)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("IITS"))
|
|
|
|
xb8_IITS.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xc8_PISY)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PISY"))
|
|
|
|
xc8_PISY.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xcc_SISY)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("SISY"))
|
|
|
|
xcc_SISY.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xd0_KSSM)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("KSSM"))
|
|
|
|
xd0_KSSM.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xd4_SSWH)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("SSWH"))
|
|
|
|
xd4_SSWH.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xd8_SELC)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("SELC"))
|
|
|
|
xd8_SELC.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xe4_SSSD)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("SSSD"))
|
|
|
|
xe4_SSSD.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xe8_SSPO)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("SSPO"))
|
|
|
|
xe8_SSPO.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xf8_SESD)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("SESD"))
|
|
|
|
xf8_SESD.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xfc_SEPO)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("SEPO"))
|
|
|
|
xfc_SEPO.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xec_PMLC)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("PMLC"))
|
|
|
|
xec_PMLC.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x100_LTYP)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LTYP"))
|
|
|
|
x100_LTYP.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x104_LCLR)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LCLR"))
|
|
|
|
x104_LCLR.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x108_LINT)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LINT"))
|
|
|
|
x108_LINT.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x10c_LOFF)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LOFF"))
|
|
|
|
x10c_LOFF.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x110_LDIR)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LDIR"))
|
|
|
|
x110_LDIR.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x114_LFOT)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LFOT"))
|
|
|
|
x114_LFOT.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x118_LFOR)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LFOR"))
|
|
|
|
x118_LFOR.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x11c_LSLA)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("LSLA"))
|
|
|
|
x11c_LSLA.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x10c_ADV1)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ADV1"))
|
|
|
|
x10c_ADV1.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x110_ADV2)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ADV2"))
|
|
|
|
x110_ADV2.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x114_ADV3)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ADV3"))
|
|
|
|
x114_ADV3.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x118_ADV4)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ADV4"))
|
|
|
|
x118_ADV4.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x11c_ADV5)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ADV5"))
|
|
|
|
x11c_ADV5.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x120_ADV6)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ADV6"))
|
|
|
|
x120_ADV6.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x124_ADV7)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ADV7"))
|
|
|
|
x124_ADV7.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x128_ADV8)
|
2017-02-12 23:56:03 +00:00
|
|
|
if (auto rec = w.enterSubRecord("ADV8"))
|
|
|
|
x128_ADV8.write(w);
|
2016-03-02 07:29:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
template <class IDType>
|
2018-02-22 07:24:51 +00:00
|
|
|
void GPSM<IDType>::_binarySize(typename BinarySize::StreamT& s) const
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 4;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x0_PSIV)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x0_PSIV.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x4_PSVM)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x4_PSVM.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x8_PSOV)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x8_PSOV.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xc_PSLT)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xc_PSLT.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x10_PSWT)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x10_PSWT.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x14_PSTS)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x14_PSTS.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x18_POFS)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x18_POFS.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x1c_SEED)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x1c_SEED.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x20_LENG)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x20_LENG.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x24_WIDT)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x24_WIDT.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x28_MAXP)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x28_MAXP.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x2c_GRTE)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x2c_GRTE.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x30_COLR)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x30_COLR.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x34_LTME)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x34_LTME.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x38_ILOC)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x38_ILOC.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x3c_IVEC)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x3c_IVEC.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x40_EMTR)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x40_EMTR.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x44_24_LINE)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x44_25_FXLL)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x44_26_AAPH)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x44_27_ZBUF)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x44_28_SORT)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x44_29_LIT_)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x44_30_MBLR)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x44_31_PMAB)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x45_24_PMUS)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (!x45_25_PMOO)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x45_26_VMD1)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x45_27_VMD2)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x45_28_VMD3)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x45_29_VMD4)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x45_30_CIND)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x45_31_OPTS)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x30_30_ORNT)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x30_31_RSOP)
|
2018-02-22 07:24:51 +00:00
|
|
|
s += 9;
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x48_MBSP)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x48_MBSP.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x4c_SIZE)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x4c_SIZE.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x50_ROTA)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x50_ROTA.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x54_TEXR)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x54_TEXR.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x58_TIND)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x58_TIND.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x5c_PMDL)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x5c_PMDL.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x6c_PMOP)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x6c_PMOP.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x70_PMRT)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x70_PMRT.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x74_PMSC)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x74_PMSC.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x78_PMCL)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x78_PMCL.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x7c_VEL1)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x7c_VEL1.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x80_VEL2)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x80_VEL2.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x84_VEL3)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x84_VEL3.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x88_VEL4)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x88_VEL4.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x8c_ICTS)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x8c_ICTS.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x9c_NCSY)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x9c_NCSY.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xa0_CSSD)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xa0_CSSD.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xa4_IDTS)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xa4_IDTS.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xb4_NDSY)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xb4_NDSY.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xb8_IITS)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xb8_IITS.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xc8_PISY)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xc8_PISY.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xcc_SISY)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xcc_SISY.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xd0_KSSM)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xd0_KSSM.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xd4_SSWH)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xd4_SSWH.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xd8_SELC)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xd8_SELC.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xe4_SSSD)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xe4_SSSD.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xe8_SSPO)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xe8_SSPO.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xf8_SESD)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xf8_SESD.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xfc_SEPO)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xfc_SEPO.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (xec_PMLC)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
xec_PMLC.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x100_LTYP)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x100_LTYP.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x104_LCLR)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x104_LCLR.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x108_LINT)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x108_LINT.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x10c_LOFF)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x10c_LOFF.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x110_LDIR)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x110_LDIR.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x114_LFOT)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x114_LFOT.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x118_LFOR)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x118_LFOR.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x11c_LSLA)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x11c_LSLA.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x10c_ADV1)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x10c_ADV1.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x110_ADV2)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x110_ADV2.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x114_ADV3)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x114_ADV3.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x118_ADV4)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x118_ADV4.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x11c_ADV5)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x11c_ADV5.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x120_ADV6)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x120_ADV6.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x124_ADV7)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x124_ADV7.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
if (x128_ADV8)
|
2018-02-22 07:24:51 +00:00
|
|
|
{
|
|
|
|
s += 4;
|
|
|
|
x128_ADV8.binarySize(s);
|
|
|
|
}
|
2016-03-02 07:29:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
template <class IDType>
|
2018-02-22 07:24:51 +00:00
|
|
|
void GPSM<IDType>::_read(typename Read::StreamT& r)
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
|
|
|
uint32_t clsId;
|
|
|
|
r.readBytesToBuf(&clsId, 4);
|
|
|
|
if (clsId != SBIG('GPSM'))
|
|
|
|
{
|
2016-03-05 00:03:41 +00:00
|
|
|
LogModule.report(logvisor::Warning, "non GPSM provided to GPSM parser");
|
2016-03-02 07:29:19 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
r.readBytesToBuf(&clsId, 4);
|
|
|
|
while (clsId != SBIG('_END'))
|
|
|
|
{
|
|
|
|
switch (clsId)
|
|
|
|
{
|
|
|
|
case SBIG('PMCL'):
|
|
|
|
x78_PMCL.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LFOR'):
|
|
|
|
x118_LFOR.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('IDTS'):
|
|
|
|
xa4_IDTS.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('EMTR'):
|
|
|
|
x40_EMTR.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('COLR'):
|
|
|
|
x30_COLR.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('CIND'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x45_30_CIND = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('AAPH'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x44_26_AAPH = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('CSSD'):
|
|
|
|
xa0_CSSD.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('GRTE'):
|
|
|
|
x2c_GRTE.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('FXLL'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x44_25_FXLL = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ICTS'):
|
|
|
|
x8c_ICTS.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('KSSM'):
|
|
|
|
xd0_KSSM.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ILOC'):
|
|
|
|
x38_ILOC.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('IITS'):
|
|
|
|
xb8_IITS.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('IVEC'):
|
|
|
|
x3c_IVEC.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LDIR'):
|
|
|
|
x110_LDIR.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LCLR'):
|
|
|
|
x104_LCLR.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LENG'):
|
|
|
|
x20_LENG.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('MAXP'):
|
|
|
|
x28_MAXP.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LOFF'):
|
|
|
|
x10c_LOFF.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LINT'):
|
|
|
|
x108_LINT.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LINE'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x44_24_LINE = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LFOT'):
|
|
|
|
x114_LFOT.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LIT_'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x44_29_LIT_ = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LTME'):
|
|
|
|
x34_LTME.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LSLA'):
|
|
|
|
x11c_LSLA.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('LTYP'):
|
|
|
|
x100_LTYP.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('NDSY'):
|
|
|
|
xb4_NDSY.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('MBSP'):
|
|
|
|
x48_MBSP.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('MBLR'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x44_30_MBLR = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('NCSY'):
|
|
|
|
x9c_NCSY.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PISY'):
|
|
|
|
xc8_PISY.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('OPTS'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x45_31_OPTS = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PMAB'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x44_31_PMAB = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SESD'):
|
|
|
|
xf8_SESD.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SEPO'):
|
|
|
|
xfc_SEPO.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PSLT'):
|
|
|
|
xc_PSLT.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PMSC'):
|
|
|
|
x74_PMSC.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PMOP'):
|
|
|
|
x6c_PMOP.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PMDL'):
|
|
|
|
x5c_PMDL.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PMRT'):
|
|
|
|
x70_PMRT.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('POFS'):
|
|
|
|
x18_POFS.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PMUS'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x45_24_PMUS = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PSIV'):
|
|
|
|
x0_PSIV.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ROTA'):
|
|
|
|
x50_ROTA.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PSVM'):
|
|
|
|
x4_PSVM.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PSTS'):
|
|
|
|
x14_PSTS.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PSOV'):
|
|
|
|
x8_PSOV.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PSWT'):
|
|
|
|
x10_PSWT.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PMLC'):
|
|
|
|
xec_PMLC.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SEED'):
|
|
|
|
x1c_SEED.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('PMOO'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x45_25_PMOO = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SSSD'):
|
|
|
|
xe4_SSSD.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SORT'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x44_28_SORT = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SIZE'):
|
|
|
|
x4c_SIZE.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SISY'):
|
|
|
|
xcc_SISY.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SSPO'):
|
|
|
|
xe8_SSPO.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('TEXR'):
|
|
|
|
x54_TEXR.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SSWH'):
|
|
|
|
xd4_SSWH.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('TIND'):
|
|
|
|
x58_TIND.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('VMD4'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x45_29_VMD4 = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('VMD3'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x45_28_VMD3 = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('VMD2'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x45_27_VMD2 = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('VMD1'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x45_26_VMD1 = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('VEL4'):
|
|
|
|
x88_VEL4.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('VEL3'):
|
|
|
|
x84_VEL3.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('VEL2'):
|
|
|
|
x80_VEL2.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('VEL1'):
|
|
|
|
x7c_VEL1.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ZBUF'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x44_27_ZBUF = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('WIDT'):
|
|
|
|
x24_WIDT.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ORNT'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x30_30_ORNT = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('RSOP'):
|
|
|
|
r.readUint32Big();
|
|
|
|
x30_31_RSOP = r.readBool();
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ADV1'):
|
|
|
|
x10c_ADV1.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ADV2'):
|
|
|
|
x110_ADV2.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ADV3'):
|
|
|
|
x114_ADV3.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ADV4'):
|
|
|
|
x118_ADV4.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ADV5'):
|
|
|
|
x11c_ADV5.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ADV6'):
|
|
|
|
x120_ADV6.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ADV7'):
|
|
|
|
x124_ADV7.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('ADV8'):
|
|
|
|
x128_ADV8.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
case SBIG('SELC'):
|
|
|
|
xd8_SELC.read(r);
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
default:
|
2016-03-05 00:03:41 +00:00
|
|
|
LogModule.report(logvisor::Fatal, "Unknown GPSM class %.4s @%" PRIi64, &clsId, r.position());
|
2016-03-28 08:54:02 +00:00
|
|
|
break;
|
2016-03-02 07:29:19 +00:00
|
|
|
}
|
|
|
|
r.readBytesToBuf(&clsId, 4);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
template <class IDType>
|
2018-02-22 07:24:51 +00:00
|
|
|
void GPSM<IDType>::_write(typename Write::StreamT& w) const
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"GPSM", 4);
|
|
|
|
if (x0_PSIV)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PSIV", 4);
|
|
|
|
x0_PSIV.write(w);
|
|
|
|
}
|
|
|
|
if (x4_PSVM)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PSVM", 4);
|
|
|
|
x4_PSVM.write(w);
|
|
|
|
}
|
|
|
|
if (x8_PSOV)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PSOV", 4);
|
|
|
|
x8_PSOV.write(w);
|
|
|
|
}
|
|
|
|
if (xc_PSLT)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PSLT", 4);
|
|
|
|
xc_PSLT.write(w);
|
|
|
|
}
|
|
|
|
if (x10_PSWT)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PSWT", 4);
|
|
|
|
x10_PSWT.write(w);
|
|
|
|
}
|
|
|
|
if (x14_PSTS)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PSTS", 4);
|
|
|
|
x14_PSTS.write(w);
|
|
|
|
}
|
|
|
|
if (x18_POFS)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"POFS", 4);
|
|
|
|
x18_POFS.write(w);
|
|
|
|
}
|
|
|
|
if (x1c_SEED)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SEED", 4);
|
|
|
|
x1c_SEED.write(w);
|
|
|
|
}
|
|
|
|
if (x20_LENG)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LENG", 4);
|
|
|
|
x20_LENG.write(w);
|
|
|
|
}
|
|
|
|
if (x24_WIDT)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"WIDT", 4);
|
|
|
|
x24_WIDT.write(w);
|
|
|
|
}
|
|
|
|
if (x28_MAXP)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"MAXP", 4);
|
|
|
|
x28_MAXP.write(w);
|
|
|
|
}
|
|
|
|
if (x2c_GRTE)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"GRTE", 4);
|
|
|
|
x2c_GRTE.write(w);
|
|
|
|
}
|
|
|
|
if (x30_COLR)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"COLR", 4);
|
|
|
|
x30_COLR.write(w);
|
|
|
|
}
|
|
|
|
if (x34_LTME)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LTME", 4);
|
|
|
|
x34_LTME.write(w);
|
|
|
|
}
|
|
|
|
if (x38_ILOC)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ILOC", 4);
|
|
|
|
x38_ILOC.write(w);
|
|
|
|
}
|
|
|
|
if (x3c_IVEC)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"IVEC", 4);
|
|
|
|
x3c_IVEC.write(w);
|
|
|
|
}
|
|
|
|
if (x40_EMTR)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"EMTR", 4);
|
|
|
|
x40_EMTR.write(w);
|
|
|
|
}
|
|
|
|
if (x44_24_LINE)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LINECNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x44_25_FXLL)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"FXLLCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x44_26_AAPH)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"AAPHCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x44_27_ZBUF)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ZBUFCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x44_28_SORT)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SORTCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x44_29_LIT_)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LIT_CNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x44_30_MBLR)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"MBLRCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x44_31_PMAB)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PMABCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x45_24_PMUS)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PMUSCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (!x45_25_PMOO)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PMOOCNST\x00", 9);
|
|
|
|
}
|
|
|
|
if (x45_26_VMD1)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"VMD1CNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x45_27_VMD2)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"VMD2CNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x45_28_VMD3)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"VMD3CNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x45_29_VMD4)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"VMD4CNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x45_30_CIND)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"CINDCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x45_31_OPTS)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"OPTSCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x30_30_ORNT)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ORNTCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x30_31_RSOP)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"RSOPCNST\x01", 9);
|
|
|
|
}
|
|
|
|
if (x48_MBSP)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"MBSP", 4);
|
|
|
|
x48_MBSP.write(w);
|
|
|
|
}
|
|
|
|
if (x4c_SIZE)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SIZE", 4);
|
|
|
|
x4c_SIZE.write(w);
|
|
|
|
}
|
|
|
|
if (x50_ROTA)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ROTA", 4);
|
|
|
|
x50_ROTA.write(w);
|
|
|
|
}
|
|
|
|
if (x54_TEXR)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"TEXR", 4);
|
|
|
|
x54_TEXR.write(w);
|
|
|
|
}
|
|
|
|
if (x58_TIND)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"TIND", 4);
|
|
|
|
x58_TIND.write(w);
|
|
|
|
}
|
|
|
|
if (x5c_PMDL)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PMDL", 4);
|
|
|
|
x5c_PMDL.write(w);
|
|
|
|
}
|
|
|
|
if (x6c_PMOP)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PMOP", 4);
|
|
|
|
x6c_PMOP.write(w);
|
|
|
|
}
|
|
|
|
if (x70_PMRT)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PMRT", 4);
|
|
|
|
x70_PMRT.write(w);
|
|
|
|
}
|
|
|
|
if (x74_PMSC)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PMSC", 4);
|
|
|
|
x74_PMSC.write(w);
|
|
|
|
}
|
|
|
|
if (x78_PMCL)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PMCL", 4);
|
|
|
|
x78_PMCL.write(w);
|
|
|
|
}
|
|
|
|
if (x7c_VEL1)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"VEL1", 4);
|
|
|
|
x7c_VEL1.write(w);
|
|
|
|
}
|
|
|
|
if (x80_VEL2)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"VEL2", 4);
|
|
|
|
x80_VEL2.write(w);
|
|
|
|
}
|
|
|
|
if (x84_VEL3)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"VEL3", 4);
|
|
|
|
x84_VEL3.write(w);
|
|
|
|
}
|
|
|
|
if (x88_VEL4)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"VEL4", 4);
|
|
|
|
x88_VEL4.write(w);
|
|
|
|
}
|
|
|
|
if (x8c_ICTS)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ICTS", 4);
|
|
|
|
x8c_ICTS.write(w);
|
|
|
|
}
|
|
|
|
if (x9c_NCSY)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"NCSY", 4);
|
|
|
|
x9c_NCSY.write(w);
|
|
|
|
}
|
|
|
|
if (xa0_CSSD)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"CSSD", 4);
|
|
|
|
xa0_CSSD.write(w);
|
|
|
|
}
|
|
|
|
if (xa4_IDTS)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"IDTS", 4);
|
|
|
|
xa4_IDTS.write(w);
|
|
|
|
}
|
|
|
|
if (xb4_NDSY)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"NDSY", 4);
|
|
|
|
xb4_NDSY.write(w);
|
|
|
|
}
|
|
|
|
if (xb8_IITS)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"IITS", 4);
|
|
|
|
xb8_IITS.write(w);
|
|
|
|
}
|
|
|
|
if (xc8_PISY)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PISY", 4);
|
|
|
|
xc8_PISY.write(w);
|
|
|
|
}
|
|
|
|
if (xcc_SISY)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SISY", 4);
|
|
|
|
xcc_SISY.write(w);
|
|
|
|
}
|
|
|
|
if (xd0_KSSM)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"KSSM", 4);
|
|
|
|
xd0_KSSM.write(w);
|
|
|
|
}
|
|
|
|
if (xd4_SSWH)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SSWH", 4);
|
|
|
|
xd4_SSWH.write(w);
|
|
|
|
}
|
|
|
|
if (xd8_SELC)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SELC", 4);
|
|
|
|
xd8_SELC.write(w);
|
|
|
|
}
|
|
|
|
if (xe4_SSSD)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SSSD", 4);
|
|
|
|
xe4_SSSD.write(w);
|
|
|
|
}
|
|
|
|
if (xe8_SSPO)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SSPO", 4);
|
|
|
|
xe8_SSPO.write(w);
|
|
|
|
}
|
|
|
|
if (xf8_SESD)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SESD", 4);
|
|
|
|
xf8_SESD.write(w);
|
|
|
|
}
|
|
|
|
if (xfc_SEPO)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"SEPO", 4);
|
|
|
|
xfc_SEPO.write(w);
|
|
|
|
}
|
|
|
|
if (xec_PMLC)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"PMLC", 4);
|
|
|
|
xec_PMLC.write(w);
|
|
|
|
}
|
|
|
|
if (x100_LTYP)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LTYP", 4);
|
|
|
|
x100_LTYP.write(w);
|
|
|
|
}
|
|
|
|
if (x104_LCLR)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LCLR", 4);
|
|
|
|
x104_LCLR.write(w);
|
|
|
|
}
|
|
|
|
if (x108_LINT)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LINT", 4);
|
|
|
|
x108_LINT.write(w);
|
|
|
|
}
|
|
|
|
if (x10c_LOFF)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LOFF", 4);
|
|
|
|
x10c_LOFF.write(w);
|
|
|
|
}
|
|
|
|
if (x110_LDIR)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LDIR", 4);
|
|
|
|
x110_LDIR.write(w);
|
|
|
|
}
|
|
|
|
if (x114_LFOT)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LFOT", 4);
|
|
|
|
x114_LFOT.write(w);
|
|
|
|
}
|
|
|
|
if (x118_LFOR)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LFOR", 4);
|
|
|
|
x118_LFOR.write(w);
|
|
|
|
}
|
|
|
|
if (x11c_LSLA)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"LSLA", 4);
|
|
|
|
x11c_LSLA.write(w);
|
|
|
|
}
|
|
|
|
if (x10c_ADV1)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ADV1", 4);
|
|
|
|
x10c_ADV1.write(w);
|
|
|
|
}
|
|
|
|
if (x110_ADV2)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ADV2", 4);
|
|
|
|
x110_ADV2.write(w);
|
|
|
|
}
|
|
|
|
if (x114_ADV3)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ADV3", 4);
|
|
|
|
x114_ADV3.write(w);
|
|
|
|
}
|
|
|
|
if (x118_ADV4)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ADV4", 4);
|
|
|
|
x118_ADV4.write(w);
|
|
|
|
}
|
|
|
|
if (x11c_ADV5)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ADV5", 4);
|
|
|
|
x11c_ADV5.write(w);
|
|
|
|
}
|
|
|
|
if (x120_ADV6)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ADV6", 4);
|
|
|
|
x120_ADV6.write(w);
|
|
|
|
}
|
|
|
|
if (x124_ADV7)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ADV7", 4);
|
|
|
|
x124_ADV7.write(w);
|
|
|
|
}
|
|
|
|
if (x128_ADV8)
|
|
|
|
{
|
|
|
|
w.writeBytes((atInt8*)"ADV8", 4);
|
|
|
|
x128_ADV8.write(w);
|
|
|
|
}
|
2016-03-28 09:25:50 +00:00
|
|
|
w.writeBytes("_END", 4);
|
2016-03-02 07:29:19 +00:00
|
|
|
}
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_SUBSPECIALIZE_DNA_YAML(GPSM<UniqueID32>)
|
|
|
|
AT_SUBSPECIALIZE_DNA_YAML(GPSM<UniqueID64>)
|
|
|
|
|
2016-10-02 22:41:36 +00:00
|
|
|
template <class IDType>
|
|
|
|
void GPSM<IDType>::gatherDependencies(std::vector<hecl::ProjectPath>& pathsOut) const
|
|
|
|
{
|
|
|
|
if (x54_TEXR.m_elem)
|
|
|
|
x54_TEXR.m_elem->gatherDependencies(pathsOut);
|
|
|
|
if (x58_TIND.m_elem)
|
|
|
|
x58_TIND.m_elem->gatherDependencies(pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(x5c_PMDL.id, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(x8c_ICTS.id, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(xa4_IDTS.id, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(xb8_IITS.id, pathsOut);
|
|
|
|
xd0_KSSM.gatherDependencies(pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(xd4_SSWH.id, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(xec_PMLC.id, pathsOut);
|
|
|
|
g_curSpec->flattenDependencies(xd8_SELC.id, pathsOut);
|
|
|
|
}
|
|
|
|
|
2016-03-02 07:29:19 +00:00
|
|
|
template struct GPSM<UniqueID32>;
|
|
|
|
template struct GPSM<UniqueID64>;
|
|
|
|
|
|
|
|
template <class IDType>
|
2016-03-05 00:03:41 +00:00
|
|
|
bool ExtractGPSM(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath)
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
2016-08-22 03:47:48 +00:00
|
|
|
athena::io::FileWriter writer(outPath.getAbsolutePath());
|
|
|
|
if (writer.isOpen())
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
|
|
|
GPSM<IDType> gpsm;
|
|
|
|
gpsm.read(rs);
|
2018-02-22 07:24:51 +00:00
|
|
|
athena::io::ToYAMLStream(gpsm, writer);
|
2016-03-02 07:29:19 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
2016-03-05 00:03:41 +00:00
|
|
|
template bool ExtractGPSM<UniqueID32>(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath);
|
|
|
|
template bool ExtractGPSM<UniqueID64>(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath);
|
2016-03-02 07:29:19 +00:00
|
|
|
|
|
|
|
template <class IDType>
|
2016-03-05 00:03:41 +00:00
|
|
|
bool WriteGPSM(const GPSM<IDType>& gpsm, const hecl::ProjectPath& outPath)
|
2016-03-02 07:29:19 +00:00
|
|
|
{
|
2016-03-05 00:03:41 +00:00
|
|
|
athena::io::FileWriter w(outPath.getAbsolutePath(), true, false);
|
2016-03-02 07:29:19 +00:00
|
|
|
if (w.hasError())
|
|
|
|
return false;
|
|
|
|
gpsm.write(w);
|
|
|
|
int64_t rem = w.position() % 32;
|
|
|
|
if (rem)
|
|
|
|
for (int64_t i=0 ; i<32-rem ; ++i)
|
2017-10-22 06:11:22 +00:00
|
|
|
w.writeUByte(0xff);
|
2016-03-02 07:29:19 +00:00
|
|
|
return true;
|
|
|
|
}
|
2016-03-05 00:03:41 +00:00
|
|
|
template bool WriteGPSM<UniqueID32>(const GPSM<UniqueID32>& gpsm, const hecl::ProjectPath& outPath);
|
|
|
|
template bool WriteGPSM<UniqueID64>(const GPSM<UniqueID64>& gpsm, const hecl::ProjectPath& outPath);
|
2016-03-02 07:29:19 +00:00
|
|
|
|
|
|
|
}
|