Commit a393a6ea authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

OutdoorResult

- changed ID to be a string instead of int
parent 301bb702
......@@ -14,6 +14,9 @@
#include <VistaBase/VistaVector3D.h>
#include <VistaAspects/VistaSerializable.h>
// STD
#include <string.h>
namespace ITA
{
namespace SimulationScheduler
......@@ -36,7 +39,7 @@ namespace ITA
oAirAttenuationSpectrum.SetIdentity();
};
int iID;
std::string sID;
double dPropagationDelay;
double dSpreadingLoss; //!< Wave type specific spreading loss factor
......
......@@ -128,7 +128,7 @@ namespace ITA
oIdentitySpectrum.SetIdentity();
for (int idx = 0; idx < vpEigenrays.size(); idx++)
{
pResult->voPathProperties[idx].iID = idx;
pResult->voPathProperties[idx].sID = std::to_string( idx );
pResult->voPathProperties[idx].dPropagationDelay = vpEigenrays[idx]->LastTimeStamp();
pResult->voPathProperties[idx].dSpreadingLoss = vpEigenrays[idx]->SpreadingLoss();
......
......@@ -12,11 +12,13 @@
using namespace ITA::SimulationScheduler;
using namespace ITA::SimulationScheduler::OutdoorAcoustics;
const int MAX_PATHID_STRING_LENGTH = 10000;
int COutdoorSimulationResult::CPathProperty::Serialize(IVistaSerializer& pSerializer) const
{
int returnVal = 0;
returnVal += pSerializer.WriteInt32(iID);
returnVal += pSerializer.WriteString(sID);
returnVal += pSerializer.WriteDouble(dPropagationDelay);
returnVal += pSerializer.WriteDouble(dSpreadingLoss);
......@@ -36,7 +38,7 @@ int COutdoorSimulationResult::CPathProperty::DeSerialize(IVistaDeSerializer& pDe
{
int returnVal = 0;
returnVal += pDeserializer.ReadInt32(iID);
returnVal += pDeserializer.ReadString(sID, MAX_PATHID_STRING_LENGTH);
returnVal += pDeserializer.ReadDouble(dPropagationDelay);
returnVal += pDeserializer.ReadDouble(dSpreadingLoss);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment