NMEA: detectio of the optional tag block in front of a sentence, ignoring it for...
[marnav.git] / src / marnav / nmea / convert.hpp
blob3b0866b879bc931a617c455ebc9642f0531e9010
1 #ifndef __MARNAV__NMEA__CONVERT__HPP__
2 #define __MARNAV__NMEA__CONVERT__HPP__
4 #include <marnav/nmea/constants.hpp>
5 #include <marnav/geo/angle.hpp>
6 #include <marnav/utils/optional.hpp>
8 namespace marnav
10 namespace nmea
12 direction convert_hemisphere(const geo::latitude & p) noexcept;
13 direction convert_hemisphere(const geo::longitude & p) noexcept;
14 geo::latitude::hemisphere convert_hemisphere_lat(direction t);
15 geo::longitude::hemisphere convert_hemisphere_lon(direction t);
17 geo::latitude correct_hemisphere(const geo::latitude & v, const direction & d);
19 utils::optional<geo::latitude> correct_hemisphere(
20 const utils::optional<geo::latitude> & v, const utils::optional<direction> & d);
22 geo::longitude correct_hemisphere(const geo::longitude & v, const direction & d);
24 utils::optional<geo::longitude> correct_hemisphere(
25 const utils::optional<geo::longitude> & v, const utils::optional<direction> & d);
29 #endif