Station API
Diff: Location.h
- Revision:
- 1:a22e390c70b3
- Child:
- 2:a9d1a9c92927
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Location.h Mon Dec 12 02:33:21 2011 +0000 @@ -0,0 +1,64 @@ +#ifndef LOCATION_H +#define LOCATION_H + +class Location { +public: + /** + * Returns longitude + * + * @returns longitude in degrees + */ + double getLongitude() { + return longitude; + } + + /** + * Sets longitude + * + * @param longitude longitude in degrees + */ + void setLongitude(double longitude) { + this->longitude = longitude; + } + + /** + * Returns longitude + * + * @returns longitude in degrees + */ double getLatitude() { + return latitude; + } + + /** + * Sets latitude + * + * @param latitude latitude in degrees + */ + void setLatitude(double latinude) { + this->latitude = latitude; + } + + /** + * Returns elevation + * + * @returns elevation in meters + */ + float getElevaion() { + return elevation; + } + + /** + * Sets elevation + * + * @param elevation elevation in meters + */ + void setElavation(float elevation) { + this->elevation = elevation; + } + +private: + double longitude, latitude; + float elevation; +}; + +#endif \ No newline at end of file