Telescope Control Library
LocationProvider.h
- Committer:
- caoyu@caoyuan9642-desktop.MIT.EDU
- Date:
- 2018-09-14
- Revision:
- 10:e356188d208e
- Parent:
- 9:d0413a9b1386
File content as of revision 10:e356188d208e:
#ifndef LOCATION_PROVIDER_H #define LOCATION_PROVIDER_H class LocationProvider; #include "CelestialMath.h" /** * Provides location information. Can be overriden if a GPS is installed for example. */ class LocationProvider { public: LocationProvider() { } virtual ~LocationProvider() { } virtual double getLongtitude() const; virtual double getLatitude() const; LocationCoordinates getLocation() const { return LocationCoordinates(getLatitude(), getLongtitude()); } }; #endif