SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
timeseriesstore.h
Go to the documentation of this file.
1
9#pragma once
11#include <atomic>
12#include <memory>
13#include <functional>
14
16{
19{
20public:
36 static bool importDescriptor(const QString &descriptorPath, const QString &destination,
37 QString *error = nullptr, std::atomic_bool *cancel = nullptr,
38 std::function<bool()> cancelled = {});
39
45 static std::shared_ptr<const TimeSeriesDataset> open(const QString &path,
46 QString *error = nullptr);
47
57 static ObservationPage readPage(const QString &path, const QString &seriesId,
58 const ObservationQuery &query = {}, QString *error = nullptr,
59 std::atomic_bool *cancel = nullptr,
60 std::function<bool()> cancelled = {});
61};
62}
Source-neutral storage; every call owns/closes GDAL handles on its calling thread.
Definition timeseriesstore.h:19
static ObservationPage readPage(const QString &path, const QString &seriesId, const ObservationQuery &query={}, QString *error=nullptr, std::atomic_bool *cancel=nullptr, std::function< bool()> cancelled={})
Read a bounded ordered sample page using the persistent series/time index.
Definition timeseriesstore.cpp:637
static bool importDescriptor(const QString &descriptorPath, const QString &destination, QString *error=nullptr, std::atomic_bool *cancel=nullptr, std::function< bool()> cancelled={})
Import a local versioned JSON descriptor and its long-form CSV sources atomically.
Definition timeseriesstore.cpp:296
static std::shared_ptr< const TimeSeriesDataset > open(const QString &path, QString *error=nullptr)
Read schema-validated metadata, without loading samples.
Definition timeseriesstore.cpp:577
QString path
Populated by the worker only after its own successful atomic creation.
Definition extensiontimeseriesaccess.cpp:32
std::function< bool()> cancel
Definition meshassignmentsampling.cpp:32
Definition timeseriesassignment.h:15
Owning bounded page; a successful empty page is not an error.
Definition timeseriesdataset.h:88
Keyset/range sample query; all bounds use the series' native time basis.
Definition timeseriesdataset.h:78
double error
Definition terrainerrorfield.cpp:42
Owning metadata and bounded sample values for native observation datasets.
bool cancelled
Definition vectorexport.cpp:214