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
openswmmvis::SaveAsPathResult Struct Reference

#include <saveaspathnormalizer.h>

Collaboration diagram for openswmmvis::SaveAsPathResult:

Public Attributes

QString inpPath
 
bool isProject = false
 
bool wasNormalized = false
 

Detailed Description

Result of normalizeSaveAsPath.

Member Data Documentation

◆ inpPath

QString openswmmvis::SaveAsPathResult::inpPath

Canonical path to pass to SWMMVisProjectWindow::saveAs.

  • When isProject is true, this is <stem>.inp (the .inp the engine actually writes; the .oswp sidecar is written next to it by the caller using ProjectSerializer::sidecarPathFor).
  • When isProject is false, this is the dialog path with any <ext>.<ext> duplications collapsed (still ending in whatever writable extension the user picked — .inp, .gpkg, etc.).

◆ isProject

bool openswmmvis::SaveAsPathResult::isProject = false

True iff the dialog's original (post-collapse) extension is .oswp — i.e. the user intended a project-file save. The caller uses this to drive sidecar-only logic (e.g. picking the .oswp filename to round-trip).

◆ wasNormalized

bool openswmmvis::SaveAsPathResult::wasNormalized = false

True iff at least one duplicate-extension layer was collapsed. The caller can surface a debug log when set; not user-visible.


The documentation for this struct was generated from the following file: