NMEA: detectio of the optional tag block in front of a sentence, ignoring it for...
[marnav.git] / src / marnav / nmea / waypoint.cpp
blob1b6fba61b5a346a81b2170c6a4f58c7d05e33f7e
1 #include "waypoint.hpp"
2 #include <stdexcept>
4 namespace marnav
6 namespace nmea
8 /// Checks the specified ID if it is valid or not.
9 waypoint::waypoint(const std::string & id)
10 : id_(id)
12 if (id.size() > 8)
13 throw std::invalid_argument{"string size to large (max 8)"};