AIS: latitude/longitude of messages are now handled using utils::optional.
commitcd247c445f98e7a7dd238827124fc8d851e09a2e
authorMario Konrad <mario.konrad@gmx.net>
Tue, 13 Sep 2016 21:09:39 +0000 (13 23:09 +0200)
committerMario Konrad <mario.konrad@gmx.net>
Tue, 13 Sep 2016 21:09:39 +0000 (13 23:09 +0200)
treed3b089c42f165826146c461c368fee83c43f49ca
parent9808c28a85189d61d0139b64a3bd97843ad28afa
AIS: latitude/longitude of messages are now handled using utils::optional.

This is necessary because the geo::latitude and geo::longitude objects
do not have a 'not defined' status, but this can happen in an AIS message.

This also solves the situation, where an 'not defined' lat/lon is
present in an AIS message, bug geo::Latitude/geo::Longitude cannot
handle the out of range value. An exception was thrown.
22 files changed:
src/marnav/ais/message_01.cpp
src/marnav/ais/message_01.hpp
src/marnav/ais/message_04.cpp
src/marnav/ais/message_04.hpp
src/marnav/ais/message_09.cpp
src/marnav/ais/message_09.hpp
src/marnav/ais/message_18.cpp
src/marnav/ais/message_18.hpp
src/marnav/ais/message_19.cpp
src/marnav/ais/message_19.hpp
src/marnav/ais/message_21.cpp
src/marnav/ais/message_21.hpp
src/marnav/utils/optional.hpp
src/nmeadump.cpp
test/ais/Test_ais_message_01.cpp
test/ais/Test_ais_message_02.cpp
test/ais/Test_ais_message_03.cpp
test/ais/Test_ais_message_04.cpp
test/ais/Test_ais_message_09.cpp
test/ais/Test_ais_message_11.cpp
test/ais/Test_ais_message_18.cpp
test/ais/Test_ais_message_19.cpp