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]

PGPSLocation::PGPSLocation ( double  longitude = 0.0,
double  latitude = 0.0 

Constructs a GPS location from its longitude and latitude.

See also

◆ PGPSLocation() [2/2]

PGPSLocation::PGPSLocation ( const PGPSLocation other)

Constructs a deep copy of other.

◆ ~PGPSLocation()

virtual PGPSLocation::~PGPSLocation ( )

Destroys this object.

Member Function Documentation

◆ Bad()

static const PGPSLocation& PGPSLocation::Bad ( )

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.