64 TempochDataHorizons raw{};
65 check_status(tempoch_time_data_status(&raw),
"tempoch::time_data_status");
67 auto opt = [](
double v) -> std::optional<double> {
68 return std::isnan(v) ? std::nullopt : std::optional<double>(v);
Error handling for the tempoch C++ wrapper.
@ Bundled
Compiled archive snapshot bundled at build time.
@ Override
Test or caller-provided override is active.
@ RuntimeCache
Bundle loaded through the runtime fetch/cache path.
TimeDataStatus time_data_status()
void check_status(tempoch_status_t status, const char *operation)
Check a tempoch_status_t and throw the appropriate exception on error.
std::optional< double > eop_observed_end_mjd
Last observed (non-predicted) EOP MJD, or std::nullopt when unloaded.
double delta_t_prediction_horizon_mjd
Last MJD covered by the ΔT prediction table.
double modern_delta_t_observed_end_mjd
Last MJD with observed ΔT in the archive-provided modern table.
std::optional< double > eop_end_mjd
Last EOP MJD including predictions, or std::nullopt when unloaded.
std::optional< double > eop_start_mjd
First MJD covered by the EOP series, or std::nullopt when unloaded.
TimeDataSource source
Source the active bundle was loaded from.
DataHorizons horizons
Validity horizons of the active bundle.