QDataStream& TriggersResults::LoadOldVersion(QDataStream& stream) { Q_D(TriggersResults); ClearResults(); qint32 tempInt, tempKey; QMap<QDate, bool> Tempmap; stream >> tempInt; for (qint32 i = 0; i < tempInt; i++) { Tempmap.clear(); stream >> tempKey >> Tempmap; d->m_Results.insert(tempKey, std::make_shared< QMap<QDate, bool> >(Tempmap)); } ResetProtocolVersion(); return stream; }
QDataStream& LoanAssumption::LoadOldVersion(QDataStream& stream) { Q_D(LoanAssumption); qint32 OldAssumptionTypeSize, OldSenioritySize; stream >> OldAssumptionTypeSize >> OldSenioritySize >> d->m_ScenarioName >> d->m_Aliases; for (int i = 0; i < qMin(static_cast<qint32>(LoanAssumptionPrivate::SenioritySize), OldSenioritySize); ++i) { stream >> d->m_LastUpdate[i]; } for (int i = 0; i < qMin(static_cast<qint32>(LoanAssumptionPrivate::AssumptionTypeSize), OldAssumptionTypeSize); ++i) { for (int j = 0; j < qMin(static_cast<qint32>(LoanAssumptionPrivate::SenioritySize), OldSenioritySize); ++j) { stream >> d->m_Assumptions[i][j]; } } ResetProtocolVersion(); return stream; }
QDataStream& ConstantBaseRateTable::LoadOldVersion(QDataStream& stream) { Q_D(ConstantBaseRateTable); stream >> d->Values >> d->UpdateDate; ResetProtocolVersion(); return stream; }
void BackwardInterface::SetLoadProtocolVersion() { ResetProtocolVersion(); }