22#ifndef OPENSWMM_GEOPACKAGE_PLUGIN_INFO_HPP
23#define OPENSWMM_GEOPACKAGE_PLUGIN_INFO_HPP
55 std::string
id()
const override {
56 return "org.hydrocouple.openswmm.plugins.geopackage";
60 return "GeoPackage I/O Plugin";
64 return "Reads and writes SWMM model definitions, simulation results, "
65 "and observed data using the OGC GeoPackage format (SQLite with "
66 "spatial extensions). Supports multi-run storage, network topology "
67 "queries, and calibration workflows in a single .gpkg file.";
74 std::string
vendor()
const override {
78 std::string
url()
const override {
79 return "https://hydrocouple.org/projects/openswmm/plugins/geopackage";
82 std::vector<std::string>
tags()
const override {
83 return {
"geopackage",
"sqlite",
"spatial",
"input",
"output",
"report",
84 "ogc",
"gis",
"calibration"};
96 return "Copyright (c) 2026 Caleb Buahin. All rights reserved.\n"
97 "MIT License — see LICENSE file for full text.";
104 bool has_input() const noexcept
override {
return true; }
113 const std::string desc =
"OGC GeoPackage";
114 const std::vector<std::string> patterns = {
"*.gpkg"};
115 const std::vector<std::string> mimes = {
"application/geopackage+sqlite3"};
136 bool registered() const noexcept
override {
return registered_; }
144 bool registered_ =
false;
Interface that describes a plugin component — metadata and factory methods.
Interface for output-writing plugins.
Definition IOutputPlugin.hpp:57
Describes a plugin component: metadata, capabilities, and factory methods.
Definition IPluginComponentInfo.hpp:179
Interface for report-writing plugins.
Definition IReportPlugin.hpp:45
IPluginComponentInfo for the GeoPackage I/O plugin.
Definition GeoPackagePluginInfo.hpp:40
bool register_plugin(const RegistrationInfo &info) override
Register the plugin with the provided registration information.
Definition GeoPackagePluginInfo.cpp:26
bool has_report() const noexcept override
True if this plugin can create an IReportPlugin.
Definition GeoPackagePluginInfo.hpp:106
std::string caption() const override
Human-readable display name of the plugin.
Definition GeoPackagePluginInfo.hpp:59
std::string version() const override
Plugin version string (Semantic Versioning recommended).
Definition GeoPackagePluginInfo.hpp:70
std::string license_type() const override
SPDX license identifier for this plugin.
Definition GeoPackagePluginInfo.hpp:91
std::vector< FileFilter > file_filters() const override
File-format filters this plugin handles.
Definition GeoPackagePluginInfo.hpp:112
std::string url() const override
URL to the plugin's home page or documentation.
Definition GeoPackagePluginInfo.hpp:78
bool has_input() const noexcept override
True if this plugin can create an IInputPlugin.
Definition GeoPackagePluginInfo.hpp:104
IReportPlugin * create_report_plugin() const override
Create a new IReportPlugin instance.
Definition GeoPackagePluginInfo.cpp:22
IOutputPlugin * create_output_plugin() const override
Create a new IOutputPlugin instance.
Definition GeoPackagePluginInfo.cpp:18
std::string description() const override
Detailed description of what this plugin does.
Definition GeoPackagePluginInfo.hpp:63
std::string vendor() const override
Vendor / author name.
Definition GeoPackagePluginInfo.hpp:74
bool registered() const noexcept override
Check whether the plugin is currently registered.
Definition GeoPackagePluginInfo.hpp:136
std::string license_text() const override
Full license text for this plugin.
Definition GeoPackagePluginInfo.hpp:95
bool has_output() const noexcept override
True if this plugin can create an IOutputPlugin.
Definition GeoPackagePluginInfo.hpp:105
static GeoPackagePluginInfo & instance()
Get the singleton instance.
Definition GeoPackagePluginInfo.hpp:46
std::string id() const override
Unique plugin identifier in reverse-DNS notation.
Definition GeoPackagePluginInfo.hpp:55
RegistrationInfo registration_info() const override
Get the current registration information.
Definition GeoPackagePluginInfo.hpp:137
std::vector< std::string > tags() const override
Additional tags or keywords for discovery.
Definition GeoPackagePluginInfo.hpp:82
IInputPlugin * create_input_plugin() const override
Create a new IInputPlugin instance.
Definition GeoPackagePluginInfo.cpp:14
@ OUTPUT_WRITE
Plugin writes a time-series results file (e.g. *.out).
@ REPORT_WRITE
Plugin writes a summary report file (e.g. *.rpt).
@ INPUT_READ
Plugin reads a model input file (e.g. *.inp).
Definition GeoPackageInputPlugin.cpp:15
A file-format filter advertised by a plugin.
Definition IPluginComponentInfo.hpp:115
Registration information for plugin activation.
Definition IPluginComponentInfo.hpp:161