tempoch-cpp 0.5.3
Header-only C++ wrapper for tempoch
Loading...
Searching...
No Matches
gps.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "base.hpp"
4
5namespace tempoch {
6
7namespace format {
8struct GPS {};
9} // namespace format
10
11template <> struct is_format<format::GPS> : std::true_type {};
12
13template <> struct FormatTraits<format::GPS> {
14 using quantity_type = qtty::Second;
15 static constexpr tempoch_format_tag_t ffi_tag = TEMPOCH_FORMAT_TAG_T_GPS;
16 static constexpr const char *name() { return "GPS"; }
17};
18
19} // namespace tempoch
static constexpr const char * name()
Definition gps.hpp:16