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::controls::ControlRuleProvider Class Reference

#include <controlruleprovider.h>

Inheritance diagram for openswmmvis::controls::ControlRuleProvider:
Collaboration diagram for openswmmvis::controls::ControlRuleProvider:

Signals

void nameChanged (QString prev, QString now)
 Rule was renamed.
 
void bodyChanged ()
 Body was replaced.
 
void validationChanged ()
 Cached validation result changed.
 

Public Member Functions

 ControlRuleProvider (QString name, QString body, QObject *parent=nullptr)
 
 ~ControlRuleProvider () override
 
QString name () const noexcept
 
QString body () const noexcept
 
ValidationState validationState () const noexcept
 
QString lastError () const noexcept
 
int lastErrorLine () const noexcept
 
void setName (QString newName)
 Rename the rule. Uniqueness is the registry's responsibility; this just stores + notifies. Body is NOT rewritten here — the registry rewrites the RULE <name> header and calls setBody to keep the two in sync.
 
void setBody (QString newBody)
 Replace the full rule body (including the RULE <name> header). Resets validation to Pending so the validator re-runs.
 
void setValidation (ValidationState state, QString errorMessage={}, int errorLine=-1)
 Cache a validator verdict. Called by RuleValidator once Phase 6.8.2 is wired; the list model picks the icon up via the validationChanged signal.
 

Constructor & Destructor Documentation

◆ ControlRuleProvider()

openswmmvis::controls::ControlRuleProvider::ControlRuleProvider ( QString  name,
QString  body,
QObject *  parent = nullptr 
)

◆ ~ControlRuleProvider()

openswmmvis::controls::ControlRuleProvider::~ControlRuleProvider ( )
overridedefault

Member Function Documentation

◆ body()

QString openswmmvis::controls::ControlRuleProvider::body ( ) const
inlinenoexcept

◆ bodyChanged

void openswmmvis::controls::ControlRuleProvider::bodyChanged ( )
signal

Body was replaced.

Here is the caller graph for this function:

◆ lastError()

QString openswmmvis::controls::ControlRuleProvider::lastError ( ) const
inlinenoexcept

◆ lastErrorLine()

int openswmmvis::controls::ControlRuleProvider::lastErrorLine ( ) const
inlinenoexcept

◆ name()

QString openswmmvis::controls::ControlRuleProvider::name ( ) const
inlinenoexcept
Here is the caller graph for this function:

◆ nameChanged

void openswmmvis::controls::ControlRuleProvider::nameChanged ( QString  prev,
QString  now 
)
signal

Rule was renamed.

Here is the caller graph for this function:

◆ setBody()

void openswmmvis::controls::ControlRuleProvider::setBody ( QString  newBody)

Replace the full rule body (including the RULE <name> header). Resets validation to Pending so the validator re-runs.

Here is the call graph for this function:

◆ setName()

void openswmmvis::controls::ControlRuleProvider::setName ( QString  newName)

Rename the rule. Uniqueness is the registry's responsibility; this just stores + notifies. Body is NOT rewritten here — the registry rewrites the RULE <name> header and calls setBody to keep the two in sync.

Here is the call graph for this function:

◆ setValidation()

void openswmmvis::controls::ControlRuleProvider::setValidation ( ValidationState  state,
QString  errorMessage = {},
int  errorLine = -1 
)

Cache a validator verdict. Called by RuleValidator once Phase 6.8.2 is wired; the list model picks the icon up via the validationChanged signal.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validationChanged

void openswmmvis::controls::ControlRuleProvider::validationChanged ( )
signal

Cached validation result changed.

Here is the caller graph for this function:

◆ validationState()

ValidationState openswmmvis::controls::ControlRuleProvider::validationState ( ) const
inlinenoexcept

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