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::curve::CurveRegistry Class Reference

#include <curveregistry.h>

Inheritance diagram for openswmmvis::curve::CurveRegistry:
Collaboration diagram for openswmmvis::curve::CurveRegistry:

Signals

void providerAdded (openswmmvis::curve::CurveProvider *provider)
 
void providerAboutToBeRemoved (openswmmvis::curve::CurveProvider *provider)
 
void providerRenamed (openswmmvis::curve::CurveProvider *provider, const QString &prevName, const QString &newName)
 

Public Member Functions

 CurveRegistry (QObject *parent=nullptr)
 
 ~CurveRegistry () override
 
QVector< CurveProvider * > providers () const
 
int providerCount () const noexcept
 
CurveProviderfindByName (const QString &name) const
 
bool hasName (const QString &name) const
 
CurveProvidercreate (const QString &name, CurveType type)
 Create + own a new provider with the given name + type.
 
void remove (CurveProvider *p)
 
bool rename (CurveProvider *p, const QString &newName)
 
int loadFromEngine (void *engineHandle)
 Populate from a live SWMM engine handle. Walks swmm_table_*, filters out TIMESERIES tables (type code 0).
 
int saveToEngine (void *engineHandle)
 Push every provider back to the engine via swmm_curve_add (if new) + swmm_table_clear + swmm_table_add_point.
 

Constructor & Destructor Documentation

◆ CurveRegistry()

openswmmvis::curve::CurveRegistry::CurveRegistry ( QObject *  parent = nullptr)
explicit

◆ ~CurveRegistry()

openswmmvis::curve::CurveRegistry::~CurveRegistry ( )
overridedefault

Member Function Documentation

◆ create()

CurveProvider * openswmmvis::curve::CurveRegistry::create ( const QString &  name,
CurveType  type 
)

Create + own a new provider with the given name + type.

Returns
the new provider, or nullptr if the name collides.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ findByName()

CurveProvider * openswmmvis::curve::CurveRegistry::findByName ( const QString &  name) const
Here is the caller graph for this function:

◆ hasName()

bool openswmmvis::curve::CurveRegistry::hasName ( const QString &  name) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadFromEngine()

int openswmmvis::curve::CurveRegistry::loadFromEngine ( void *  engineHandle)

Populate from a live SWMM engine handle. Walks swmm_table_*, filters out TIMESERIES tables (type code 0).

Returns
count added.
Here is the call graph for this function:

◆ providerAboutToBeRemoved

void openswmmvis::curve::CurveRegistry::providerAboutToBeRemoved ( openswmmvis::curve::CurveProvider provider)
signal
Here is the caller graph for this function:

◆ providerAdded

void openswmmvis::curve::CurveRegistry::providerAdded ( openswmmvis::curve::CurveProvider provider)
signal
Here is the caller graph for this function:

◆ providerCount()

int openswmmvis::curve::CurveRegistry::providerCount ( ) const
inlinenoexcept

◆ providerRenamed

void openswmmvis::curve::CurveRegistry::providerRenamed ( openswmmvis::curve::CurveProvider provider,
const QString &  prevName,
const QString &  newName 
)
signal
Here is the caller graph for this function:

◆ providers()

QVector< CurveProvider * > openswmmvis::curve::CurveRegistry::providers ( ) const
inline

◆ remove()

void openswmmvis::curve::CurveRegistry::remove ( CurveProvider p)
Here is the call graph for this function:

◆ rename()

bool openswmmvis::curve::CurveRegistry::rename ( CurveProvider p,
const QString &  newName 
)
Here is the call graph for this function:

◆ saveToEngine()

int openswmmvis::curve::CurveRegistry::saveToEngine ( void *  engineHandle)

Push every provider back to the engine via swmm_curve_add (if new) + swmm_table_clear + swmm_table_add_point.


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