tempoch-cpp 0.5.3
Header-only C++ wrapper for tempoch
Loading...
Searching...
No Matches
gnss_week.hpp File Reference

GNSS week-number decomposition mirroring tempoch::GnssWeek. More...

#include "scales/scales.hpp"
#include "time_base.hpp"
#include <cstdint>
#include <type_traits>
Include dependency graph for gnss_week.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tempoch::is_gnss_scale< S >
 Trait marking the GNSS coordinate scales that support week decomposition. More...
 
struct  tempoch::is_gnss_scale< scale::GPST >
 
struct  tempoch::is_gnss_scale< scale::GST >
 
struct  tempoch::is_gnss_scale< scale::BDT >
 
struct  tempoch::is_gnss_scale< scale::QZSST >
 
struct  tempoch::GnssWeek
 

Namespaces

namespace  tempoch
 

Functions

template<typename S , std::enable_if_t< is_gnss_scale_v< S >, int > = 0>
GnssWeek tempoch::to_gnss_week (const Time< S > &time)
 Decompose a GNSS-scale instant into its week-number form.
 
template<typename S , std::enable_if_t< is_gnss_scale_v< S >, int > = 0>
Time< Stempoch::from_gnss_week (const GnssWeek &gw)
 Build a GNSS-scale instant from a week-number decomposition.
 

Variables

template<typename S >
constexpr bool tempoch::is_gnss_scale_v = is_gnss_scale<S>::value
 

Detailed Description

GNSS week-number decomposition mirroring tempoch::GnssWeek.

Provides the GnssWeek value type plus to_gnss_week / from_gnss_week free functions, defined only for the GNSS coordinate scales (GPST, GST, BDT, QZSST), matching the Time::<S>::to_gnss_week / Time::<S>::from_gnss_week conversions on the Rust side.

Definition in file gnss_week.hpp.