mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 06:03:45 +00:00
[traffxml] Store message cache in file
So far only API and tests, and without decoded segments Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -445,6 +445,13 @@ void MainWindow::OnSaveTrafficSample()
|
||||
if (fileName.isEmpty())
|
||||
return;
|
||||
|
||||
pugi::xml_document document;
|
||||
|
||||
auto const messageCache = m_framework.GetTrafficManager().GetMessageCache();
|
||||
|
||||
traffxml::GenerateTraff(messageCache, document);
|
||||
document.save_file(fileName.toStdString().data(), " " /* indent */);
|
||||
|
||||
#ifdef openlr_obsolete
|
||||
if (!m_trafficMode->SaveSampleAs(fileName.toStdString()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user