2015-08-15 04:12:15 +00:00
|
|
|
#include "EVNT.hpp"
|
|
|
|
|
2017-12-29 08:08:12 +00:00
|
|
|
namespace DataSpec::DNAMP1
|
2015-08-15 04:12:15 +00:00
|
|
|
{
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
template <class Op>
|
|
|
|
void EVNT::Enumerate(typename Op::StreamT& s)
|
2015-08-15 04:12:15 +00:00
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
Do<Op>({"version"}, version, s);
|
2015-08-15 04:12:15 +00:00
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
DoSize<Op>({"boolPOICount"}, boolPOICount, s);
|
|
|
|
Do<Op>({"boolPOINodes"}, boolPOINodes, boolPOICount, s);
|
2015-08-15 04:12:15 +00:00
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
DoSize<Op>({"int32POICount"}, int32POICount, s);
|
|
|
|
Do<Op>({"int32POINodes"}, int32POINodes, int32POICount, s);
|
2015-08-15 04:12:15 +00:00
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
DoSize<Op>({"particlePOICount"}, particlePOICount, s);
|
|
|
|
Do<Op>({"particlePOINodes"}, particlePOINodes, particlePOICount, s);
|
2015-08-15 04:12:15 +00:00
|
|
|
|
2016-01-19 05:32:34 +00:00
|
|
|
if (version == 2)
|
|
|
|
{
|
2018-02-22 07:24:51 +00:00
|
|
|
DoSize<Op>({"soundPOICount"}, soundPOICount, s);
|
2018-02-26 10:39:12 +00:00
|
|
|
Do<Op>({"soundPOINodes"}, soundPOINodes, soundPOICount, s);
|
2016-01-19 05:32:34 +00:00
|
|
|
}
|
2015-08-15 04:12:15 +00:00
|
|
|
}
|
|
|
|
|
2018-02-22 07:24:51 +00:00
|
|
|
AT_SPECIALIZE_DNA_YAML(EVNT)
|
2015-08-15 04:12:15 +00:00
|
|
|
|
2016-01-19 05:32:34 +00:00
|
|
|
const char* EVNT::DNAType()
|
|
|
|
{
|
2016-03-04 23:04:53 +00:00
|
|
|
return "urde::DNAMP1::EVNT";
|
2016-01-19 05:32:34 +00:00
|
|
|
}
|
|
|
|
|
2015-08-15 04:12:15 +00:00
|
|
|
}
|