18 #ifndef GNSS_SDR_SENSOR_IDENTIFIER_H 19 #define GNSS_SDR_SENSOR_IDENTIFIER_H 33 enum value_type :
unsigned short 51 static value_type from_string(
const std::string& s);
53 static std::string to_string(value_type v);
55 static bool is_valid_type(value_type sensor_id, SensorDataType::value_type type);
57 static SensorDataType::value_type get_internal_type(value_type sensor_id);
59 static pmt::pmt_t convert_to_internal_type(value_type sensor_id, SensorDataType::value_type original_type,
const pmt::pmt_t& value);
69 std::size_t operator()(
const SensorIdentifier::value_type& key)
const noexcept
71 return std::hash<unsigned short>()(static_cast<unsigned short>(key));
79 #endif // GNSS_SDR_SENSOR_IDENTIFIER_H