38#ifndef OPENSWMM_GEOPACKAGE_PLUGIN_INFO_HPP
39#define OPENSWMM_GEOPACKAGE_PLUGIN_INFO_HPP
63 static GeoPackagePluginInfo inst;
71 std::string
id()
const override {
72 return "org.hydrocouple.openswmm.plugins.geopackage";
76 return "GeoPackage I/O Plugin";
80 return "Reads and writes SWMM model definitions, simulation results, "
81 "and observed data using the OGC GeoPackage format (SQLite with "
82 "spatial extensions). Supports multi-run storage, network topology "
83 "queries, and calibration workflows in a single .gpkg file.";
90 std::string
vendor()
const override {
94 std::string
url()
const override {
95 return "https://hydrocouple.org/projects/openswmm/plugins/geopackage";
98 std::vector<std::string>
tags()
const override {
99 return {
"geopackage",
"sqlite",
"spatial",
"input",
"output",
"report",
100 "ogc",
"gis",
"calibration"};
112 return "Copyright (c) 2026 Caleb Buahin. All rights reserved.\n"
113 "Licensed under the Apache License, Version 2.0 — see the\n"
114 "LICENSE and NOTICE files for full text.";
121 bool has_input() const noexcept
override {
return true; }
130 const std::string desc =
"OGC GeoPackage";
131 const std::vector<std::string> patterns = {
"*.gpkg"};
132 const std::vector<std::string> mimes = {
"application/geopackage+sqlite3"};
153 bool registered() const noexcept
override {
return registered_; }
161 bool registered_ =
false;
Interface that describes a plugin component — metadata and factory methods.
Interface for output-writing plugins.
Definition IOutputPlugin.hpp:73
Describes a plugin component: metadata, capabilities, and factory methods.
Definition IPluginComponentInfo.hpp:195
Interface for report-writing plugins.
Definition IReportPlugin.hpp:61
IPluginComponentInfo for the GeoPackage I/O plugin.
Definition GeoPackagePluginInfo.hpp:56
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:123
std::string caption() const override
Human-readable display name of the plugin.
Definition GeoPackagePluginInfo.hpp:75
std::string version() const override
Plugin version string (Semantic Versioning recommended).
Definition GeoPackagePluginInfo.hpp:86
std::string license_type() const override
SPDX license identifier for this plugin.
Definition GeoPackagePluginInfo.hpp:107
std::vector< FileFilter > file_filters() const override
File-format filters this plugin handles.
Definition GeoPackagePluginInfo.hpp:129
std::string url() const override
URL to the plugin's home page or documentation.
Definition GeoPackagePluginInfo.hpp:94
bool has_input() const noexcept override
True if this plugin can create an IInputPlugin.
Definition GeoPackagePluginInfo.hpp:121
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:79
std::string vendor() const override
Vendor / author name.
Definition GeoPackagePluginInfo.hpp:90
bool registered() const noexcept override
Check whether the plugin is currently registered.
Definition GeoPackagePluginInfo.hpp:153
std::string license_text() const override
Full license text for this plugin.
Definition GeoPackagePluginInfo.hpp:111
bool has_output() const noexcept override
True if this plugin can create an IOutputPlugin.
Definition GeoPackagePluginInfo.hpp:122
static GeoPackagePluginInfo & instance()
Get the singleton instance.
Definition GeoPackagePluginInfo.hpp:62
std::string id() const override
Unique plugin identifier in reverse-DNS notation.
Definition GeoPackagePluginInfo.hpp:71
RegistrationInfo registration_info() const override
Get the current registration information.
Definition GeoPackagePluginInfo.hpp:154
std::vector< std::string > tags() const override
Additional tags or keywords for discovery.
Definition GeoPackagePluginInfo.hpp:98
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).
Definition IPluginComponentInfo.hpp:95
@ REPORT_WRITE
Plugin writes a summary report file (e.g. *.rpt).
Definition IPluginComponentInfo.hpp:96
@ INPUT_READ
Plugin reads a model input file (e.g. *.inp).
Definition IPluginComponentInfo.hpp:94
Definition ExternalContentReader.cpp:49
A file-format filter advertised by a plugin.
Definition IPluginComponentInfo.hpp:131
Registration information for plugin activation.
Definition IPluginComponentInfo.hpp:177