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::timeseries::ChangeSourceModeCommand Class Reference

Flip the source mode (Inline ↔ ExternalFile ↔ GeopackageObserved). Storage migration (reading file rows into inline points, writing inline points to gpkg) is the source-mode-card's responsibility — this command records only the mode flip. More...

#include <timeseriesundocommands.h>

Inheritance diagram for openswmmvis::timeseries::ChangeSourceModeCommand:
Collaboration diagram for openswmmvis::timeseries::ChangeSourceModeCommand:

Public Member Functions

 ChangeSourceModeCommand (TimeseriesProvider *provider, TimeseriesProvider::SourceMode newMode, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 

Detailed Description

Flip the source mode (Inline ↔ ExternalFile ↔ GeopackageObserved). Storage migration (reading file rows into inline points, writing inline points to gpkg) is the source-mode-card's responsibility — this command records only the mode flip.

Constructor & Destructor Documentation

◆ ChangeSourceModeCommand()

openswmmvis::timeseries::ChangeSourceModeCommand::ChangeSourceModeCommand ( TimeseriesProvider provider,
TimeseriesProvider::SourceMode  newMode,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ redo()

void openswmmvis::timeseries::ChangeSourceModeCommand::redo ( )
override
Here is the call graph for this function:

◆ undo()

void openswmmvis::timeseries::ChangeSourceModeCommand::undo ( )
override
Here is the call graph for this function:

The documentation for this class was generated from the following files: