|
OpenCPN Partial API docs
|
Public Types | |
| enum class | Type { NE , NW , SE , SW , Undef } |
Public Member Functions | |
| Position (double _lat, double _lon, Type t) | |
| Construct a position from positive lat/long values and Position::Type. | |
| Position (double _lat, double _lon) | |
| Construct a position with signed lat/long defining Type. | |
| Position () | |
| Construct a (0,0) position, type == Undef. | |
| bool | IsValid () const |
| std::string | to_string () const |
| Return utf string like 65°25,11N 21°12,01E. | |
Static Public Member Functions | |
| static Position | ParseGGA (const std::string gga) |
| Parse a GGA string like "5800.588,N,01145.776,E" as present in GGA and other n0183 messages. | |
Public Attributes | |
| const double | lat |
| const double | lon |
| const Type | type |
Definition at line 44 of file comm_appmsg.h.
|
strong |
Definition at line 46 of file comm_appmsg.h.
| Position::Position | ( | double | _lat, |
| double | _lon, | ||
| Type | t ) |
Construct a position from positive lat/long values and Position::Type.
Definition at line 72 of file comm_appmsg.cpp.
| Position::Position | ( | double | _lat, |
| double | _lon ) |
Construct a position with signed lat/long defining Type.
Definition at line 75 of file comm_appmsg.cpp.
| Position::Position | ( | ) |
Construct a (0,0) position, type == Undef.
Definition at line 78 of file comm_appmsg.cpp.
|
inline |
Definition at line 57 of file comm_appmsg.h.
|
static |
Parse a GGA string like "5800.588,N,01145.776,E" as present in GGA and other n0183 messages.
Definition at line 134 of file comm_appmsg.cpp.
| std::string Position::to_string | ( | ) | const |
Return utf string like 65°25,11N 21°12,01E.
Definition at line 80 of file comm_appmsg.cpp.
| const double Position::lat |
Definition at line 62 of file comm_appmsg.h.
| const double Position::lon |
Definition at line 63 of file comm_appmsg.h.
| const Type Position::type |
Definition at line 64 of file comm_appmsg.h.