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
rain_interval Namespace Reference

Functions

QStringList presetsHMM ()
 
QString secondsToHMM (int secs)
 
int hmmToSeconds (const QString &text)
 

Function Documentation

◆ hmmToSeconds()

int rain_interval::hmmToSeconds ( const QString &  text)
inline

Parse a clock string into seconds, matching the engine's parser (parse_time_seconds): colon form is H:MM[:SS] (first token = hours); a bare number is decimal hours (engine [RAINGAGES] grammar). Returns -1 on malformed input so callers can reject the edit.

◆ presetsHMM()

QStringList rain_interval::presetsHMM ( )
inline

The legacy [RAINGAGES] interval presets (Epaswmm5 Uedit.pas), in clock H:MM form. The combo is editable, so custom values are still accepted.

Here is the caller graph for this function:

◆ secondsToHMM()

QString rain_interval::secondsToHMM ( int  secs)
inline

Format a second count as the legacy clock string: "H:MM" when on a whole minute, "H:MM:SS" otherwise.

Here is the caller graph for this function: