Go to the documentation of this file.
6 namespace fusion_engine {
13 return stream <<
"<invalid>";
27 char* end_c =
nullptr;
31 tmp = strtol(str, &end_c, 10);
32 if (end_c == str || tmp > 0xFF || tmp < 0) {
37 const char* minor_str = end_c + 1;
39 tmp = strtol(minor_str, &end_c, 10);
40 if (end_c == minor_str || tmp > 0xFFFF || tmp < 0) {
std::string ToString(const DataVersion &ver)
GNSS signal and frequency type definitions.
P1_CONSTEXPR_FUNC const char * to_string(ConfigType type)
Get a human-friendly string name for the specified ConfigType.
bool IsValid() const
Returns whether the stored version is valid.
DataVersion FromString(const char *str)
p1_ostream & operator<<(p1_ostream &stream, ConfigType type)
ConfigType stream operator.
A struct representing the version of a data object.
constexpr DataVersion INVALID_DATA_VERSION