SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
rulelistio.cpp File Reference

RuleList file I/O implementation (Slice Z.17-files). More...

#include "render/rulelistio.h"
#include "render/rule.h"
#include "render/rulelist.h"
#include <QFile>
#include <QFileInfo>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QSaveFile>
Include dependency graph for rulelistio.cpp:

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 
namespace  OpenSWMM::Render::RuleListIO
 

Functions

RuleListIoResult OpenSWMM::Render::RuleListIO::save (const RuleList *list, const QString &path)
 Serialise list as a top-level JSON envelope and write it to path. The file is overwritten if it already exists.
 
RuleListIoResult OpenSWMM::Render::RuleListIO::load (const QString &path, RuleList *list)
 Read path and populate list. The list is cleared first when the file loads successfully; on failure list is left unchanged.
 

Detailed Description

RuleList file I/O implementation (Slice Z.17-files).

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later