OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
ExternalContentReader.cpp File Reference

Slice IO-8 — Part D content → SimulationContext slot hydration + scratch-file materialisation. More...

#include "ExternalContentReader.hpp"
#include "GpkgUtils.hpp"
#include "formats/ClimateFormat.hpp"
#include "formats/HotstartFormat.hpp"
#include "formats/RaingageFormat.hpp"
#include "formats/RoutingInterfaceFormat.hpp"
#include "formats/TimeseriesFormat.hpp"
#include "../../core/DateTime.hpp"
#include "../../core/FilePathPair.hpp"
#include "../../core/SimulationContext.hpp"
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <filesystem>
#include <string>
#include <unordered_map>
#include <vector>
Include dependency graph for ExternalContentReader.cpp:

Classes

struct  openswmm::gpkg::FilePathPair
 Two-string carrier for any external file path that appears in a SWMM .inp file. More...
 
struct  openswmm::gpkg::SimulationContext
 Central, reentrant simulation context. More...
 

Namespaces

namespace  openswmm
 
namespace  openswmm::gpkg
 

Enumerations

enum class  openswmm::gpkg::TableType
 Type of data stored in a Table. More...
 
enum class  openswmm::gpkg::FileMode
 Mode keyword for one [FILES] row — SAVE or USE. More...
 

Functions

std::string openswmm::gpkg::scratchDirFor (const std::string &gpkg_path)
 Compute the canonical scratch-dir path for a given .gpkg file.
 
void openswmm::gpkg::read_external_content (sqlite3 *db, openswmm::SimulationContext &ctx, const std::string &simulation_id, const std::string &scratch_dir)
 Hydrate every external-file slot on ctx from the Part D tables and materialise scratch files in scratch_dir.
 

Detailed Description

Slice IO-8 — Part D content → SimulationContext slot hydration + scratch-file materialisation.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License