1 #ifndef __MARNAV__NMEA__WAYPOINT__HPP__
2 #define __MARNAV__NMEA__WAYPOINT__HPP__
10 /// This represents a waypoint ID. They must be at least 1 character,
11 /// but can only be 8 long.
16 using value_type
= std::string
;
17 using size_type
= value_type::size_type
;
19 /// default constructed, invalid waypoint.
22 explicit waypoint(const std::string
& id
);
24 waypoint(const waypoint
&) = default;
25 waypoint
& operator=(const waypoint
&) = default;
27 waypoint(waypoint
&&) = default;
28 waypoint
& operator=(waypoint
&&) = default;
30 value_type
get() const { return id_
; }
31 operator value_type() const { return id_
; }
33 const char * c_str() const { return id_
.c_str(); }
35 size_type
size() const { return id_
.size(); }
36 bool empty() const { return id_
.empty(); }