PGPSLocation Class Reference
Detailed Description
The PGPSLocation class represents a GPS location; PGPSLocation instances are immutable (thread-safe).
Definition at line 26 of file PGPSLocation.h.
#include <PGPSLocation.h>
Constructor & Destructor Documentation
◆ PGPSLocation() [1/2]
|
explicit |
Constructs a GPS location from its longitude and latitude.
- See also
- IsValid()
◆ PGPSLocation() [2/2]
PGPSLocation::PGPSLocation | ( | const PGPSLocation & | other | ) |
Constructs a deep copy of other.
◆ ~PGPSLocation()
|
virtual |
Destroys this object.
Member Function Documentation
◆ Bad()
|
inlinestatic |
Returns the constant holding the bad instance of a PGPSLocation.
Definition at line 32 of file PGPSLocation.h.
◆ GetLatitude()
double PGPSLocation::GetLatitude | ( | ) | const |
Returns the latitude.
◆ GetLongitude()
double PGPSLocation::GetLongitude | ( | ) | const |
Returns the longitude.
◆ IsValid()
bool PGPSLocation::IsValid | ( | ) | const |
Returns true if this GPS location is valid; otherwise returns false.
◆ operator=()
PGPSLocation& PGPSLocation::operator= | ( | const PGPSLocation & | other | ) |
Performs a deep copy of other to this object.
◆ operator==()
bool PGPSLocation::operator== | ( | const PGPSLocation & | other | ) | const |
Returns true if this object is the same than other, false otherwise.