11 #ifndef CARMA_SERVICES_LOCATION_H
12 #define CARMA_SERVICES_LOCATION_H
16 #include "carma/services/stringConstants.h"
65 explicit Location(
const std::string & observatory,
66 const std::string& position = REFERENCE);
82 void setLatitude(
double value,
const std::string &units);
96 void setLongitude(
double value,
const std::string &units);
112 void setAltitude(
double value,
const std::string &units);
159 #endif // CARMA_SERVICES_LOCATION_H
This class handles standard mathematical vector operations.
Angle getLatitude() const
Representation of an angle, return values are always modulo 2PI radians.
Location()
default constructor, longitude = 0, latitude = 0, altitude = 0.
Representation of Length in any units.
void setAltitude(Length altitude)
Specify the altitude above sea level.
carma::services::Vector< double > vector()
the longitude, latitude and altitude (in that order!!!) as a carma:services::Vector.
void setLatitude(Angle latitude)
Specify the latitude.
Location specifies a location (observatory if you wish) on planet earth, as longitude, latitude, and altitude above sea-level.
The Angle class can represent any angle in any units.
Angle getLongitude() const
Length getAltitude() const
void setLongitude(Angle longitude)
Specify the longitude.
std::ostream & operator<<(std::ostream &os, const carma::services::Angle &angle)
Define the << operator to allow, e.g.
The Length class can represent a length in any units.
std::string getName() const