mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-13 11:40:33 +00:00
Fixed block iteration withing a file
The `File` object only holds a shallow reference to its `Lane` (without the list of blocks). So we must retrieve the full reference manually.
This commit is contained in:
parent
38d548ba50
commit
5c442c8aae
@ -46,10 +46,14 @@ std::vector<IONMetadataStdFileSource::sptr> GnssMetadataHandler::make_stream_sou
|
||||
std::vector<IONMetadataStdFileSource::sptr> sources{};
|
||||
for (const auto& file : metadata_.Files())
|
||||
{
|
||||
for (const auto& block : file.Lane().Blocks())
|
||||
for (const auto& lane : metadata_.Lanes())
|
||||
{
|
||||
for (const auto& chunk : block.Chunks())
|
||||
if (lane.Id() == file.Lane().Id())
|
||||
{
|
||||
for (const auto& block : lane.Blocks())
|
||||
{
|
||||
for (const auto& chunk : block.Chunks())
|
||||
{
|
||||
for (const auto& lump : chunk.Lumps())
|
||||
{
|
||||
for (const auto& stream : lump.Streams())
|
||||
@ -71,8 +75,11 @@ std::vector<IONMetadataStdFileSource::sptr> GnssMetadataHandler::make_stream_sou
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
next_block:
|
||||
}
|
||||
break;
|
||||
}
|
||||
next_block:
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user