OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
ExternalContentReader.hpp
Go to the documentation of this file.
1
34
35#ifndef OPENSWMM_GEOPACKAGE_EXTERNAL_CONTENT_READER_HPP
36#define OPENSWMM_GEOPACKAGE_EXTERNAL_CONTENT_READER_HPP
37
38#include <string>
39
40struct sqlite3;
41
42namespace openswmm {
43 struct SimulationContext;
44}
45
46namespace openswmm::gpkg {
47
59void read_external_content(sqlite3* db,
60 openswmm::SimulationContext& ctx,
61 const std::string& simulation_id,
62 const std::string& scratch_dir);
63
70std::string scratchDirFor(const std::string& gpkg_path);
71
72} // namespace openswmm::gpkg
73
74#endif // OPENSWMM_GEOPACKAGE_EXTERNAL_CONTENT_READER_HPP
Definition ExternalContentReader.cpp:33
std::string scratchDirFor(const std::string &gpkg_path)
Compute the canonical scratch-dir path for a given .gpkg file.
Definition ExternalContentReader.cpp:559
void read_external_content(sqlite3 *db, SimulationContext &ctx, const std::string &sim, const std::string &scratch_dir)
Hydrate every external-file slot on ctx from the Part D tables and materialise scratch files in scrat...
Definition ExternalContentReader.cpp:572
Definition NodeCoupling.cpp:15
Central, reentrant simulation context.
Definition SimulationContext.hpp:292