Commit 2e267675 authored by Uwe Woessner's avatar Uwe Woessner
Browse files

turn on writing csv files if there are logging Groups in the list


Signed-off-by: Uwe Woessner's avatarhpcwoess <woessner@hlrs.de>
parent 10b4ddaf
......@@ -20,6 +20,7 @@ QString const TrafficSimulationXMLBaseModel::KeyExperimentSeed = QStringLiteral(
QString const TrafficSimulationXMLBaseModel::KeyExperimentLibraries = QStringLiteral("Libraries");
QString const TrafficSimulationXMLBaseModel::KeyExperimentLoggingGroups = QStringLiteral("LoggingGroups");
QString const TrafficSimulationXMLBaseModel::KeyExperimentLoggingGroup = QStringLiteral("LoggingGroup");
QString const TrafficSimulationXMLBaseModel::KeyExperimentLoggingCyclicsToCsv = QStringLiteral("LoggingCyclicsToCsv");
QList<QString> const TrafficSimulationXMLBaseModel::KeyListExperiment =
{
......
......@@ -56,6 +56,7 @@ protected:
static QString const KeyExperimentLibraries;
static QString const KeyExperimentLoggingGroups;
static QString const KeyExperimentLoggingGroup;
static QString const KeyExperimentLoggingCyclicsToCsv;
static QList<QString> const KeyListExperiment;
protected:
......
......@@ -85,8 +85,17 @@ void TrafficSimulationXMLSaveModel::saveLibraries(QXmlStreamWriter &xml,
void TrafficSimulationXMLSaveModel::saveLoggingGroups(QXmlStreamWriter &xml,
ExperimentInterface::LoggingGroups * const loggingGroups)
{
if (loggingGroups->size() > 0)
{
xml.writeTextElement(KeyExperimentLoggingCyclicsToCsv, "true");
}
else
{
xml.writeTextElement(KeyExperimentLoggingCyclicsToCsv, "false");
}
xml.writeStartElement(KeyExperimentLoggingGroups);
for (auto loggingGroup : *loggingGroups)
xml.writeTextElement(KeyExperimentLoggingGroup, loggingGroup);
......
Markdown is supported
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