![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Abstract base class for all OpenSWMMVis plug-in services. More...
#include <openswmmvisservice.h>
Public Member Functions | |
| OpenSWMMVisService ()=default | |
| Default constructor. | |
| virtual | ~OpenSWMMVisService ()=default |
| Virtual destructor — required for polymorphic deletion. | |
| virtual QString | name () const =0 |
| Returns the unique string identifier of this service. | |
| virtual QString | version () const =0 |
| Returns the version string of this service implementation. | |
| virtual void | executeRequest (const OpenSWMMVisServiceRequest &request, OpenSWMMVisServiceResponse &response)=0 |
| Execute a service request and populate a response. | |
Abstract base class for all OpenSWMMVis plug-in services.
Concrete services must override name(), version(), and executeRequest(). They are registered with the host application at runtime so that UI panels, scripts, and automation clients can invoke them by name without a compile-time dependency on the concrete implementation.
|
default |
Default constructor.
|
virtualdefault |
Virtual destructor — required for polymorphic deletion.
|
pure virtual |
Execute a service request and populate a response.
Implementations must be re-entrant: the host may call this method from multiple threads concurrently. Implementations are responsible for any internal locking.
| [in] | request | Typed request object carrying the input parameters. |
| [out] | response | Response object that will be populated by this call. |
|
pure virtual |
Returns the unique string identifier of this service.
The name is used as the registry key; it must be unique across all registered services and must not change between versions.
|
pure virtual |
Returns the version string of this service implementation.
Uses semantic versioning (MAJOR.MINOR.PATCH). Callers can compare against a minimum required version to guard against incompatible service implementations.