kabc
KABC::Geo Class Reference
#include <geo.h>
List of all members.
Detailed Description
Geographic position.
This class represents a geographic position.
Definition at line 35 of file geo.h.
Constructor & Destructor Documentation
Creates an invalid geographics position object.
Definition at line 55 of file geo.cpp.
Geo::Geo |
( |
float |
latitude, |
|
|
float |
longitude | |
|
) |
| | |
Creates a geographics position object.
- Parameters:
-
| latitude | Geographical latitude |
| longitude | Geographical longitude |
Definition at line 60 of file geo.cpp.
Geo::Geo |
( |
const Geo & |
other |
) |
|
Copy constructor.
Definition at line 67 of file geo.cpp.
Destroys the geographics position object.
Definition at line 72 of file geo.cpp.
Member Function Documentation
bool Geo::isValid |
( |
|
) |
const |
Returns, whether this object contains a valid geographical position.
Definition at line 108 of file geo.cpp.
float Geo::latitude |
( |
|
) |
const |
Returns the latitude.
Definition at line 87 of file geo.cpp.
float Geo::longitude |
( |
|
) |
const |
Returns the longitude.
Definition at line 103 of file geo.cpp.
bool Geo::operator!= |
( |
const Geo & |
other |
) |
const |
Not-Equal operator.
Definition at line 130 of file geo.cpp.
Geo & Geo::operator= |
( |
const Geo & |
other |
) |
|
Assignment operator.
- Parameters:
-
| other | The Geo instance to assign to this |
Definition at line 135 of file geo.cpp.
bool Geo::operator== |
( |
const Geo & |
other |
) |
const |
Equality operator.
- Note:
- Two invalid Geo instance will return
true
Definition at line 113 of file geo.cpp.
void Geo::setLatitude |
( |
float |
latitude |
) |
|
Sets the latitude
.
- Parameters:
-
| latitude | The location's latitude coordinate |
Definition at line 76 of file geo.cpp.
void Geo::setLongitude |
( |
float |
longitude |
) |
|
Sets the longitude
.
- Parameters:
-
| longitude | The location's longitude coordinate |
Definition at line 92 of file geo.cpp.
Returns string representation of geographical position.
Definition at line 144 of file geo.cpp.
Friends And Related Function Documentation
Serializes the geographical position object
into the stream
.
Definition at line 157 of file geo.cpp.
Initializes the geographical position object
from the stream
.
Definition at line 163 of file geo.cpp.
The documentation for this class was generated from the following files: