Build: add test presets
[marnav.git] / src / marnav / ais / message_02.cpp
blob20f77326e9b9cb5235262ed652f72b3e8fb5aadc
1 #include <marnav/ais/message_02.hpp>
3 namespace marnav
5 namespace ais
7 constexpr message_id message_02::ID;
9 message_02::message_02()
10 : message_01(ID)
14 message_02::message_02(const raw & bits)
15 : message_01(ID)
17 if (bits.size() != SIZE_BITS)
18 throw std::invalid_argument{"invalid number of bits in ais/message_02"};
19 read_data(bits);