Build: add GCC-13, Clang-14, Clang-15, Clang-16, Clang-17
[marnav.git] / src / marnav / nmea / vdo.cpp
blob05b03ee329ecf41d84956022da38680677a969d1
1 #include <marnav/nmea/vdo.hpp>
2 #include <stdexcept>
4 namespace marnav::nmea
6 constexpr sentence_id vdo::ID;
7 constexpr const char * vdo::TAG;
9 vdo::vdo()
10 : vdm(ID, TAG, talker::ais_mobile_station)
14 vdo::vdo(talker talk, fields::const_iterator first, fields::const_iterator last)
15 : vdm(ID, TAG, talk)
17 if (std::distance(first, last) != 6)
18 throw std::invalid_argument{"invalid number of fields in vdo"};
20 read_fields(first);