10#if !defined(GEOGRAPHICLIB_DMS_HPP)
11#define GEOGRAPHICLIB_DMS_HPP 1
18# pragma warning (push)
19# pragma warning (disable: 4251 4127)
94 static void replace(std::string& s,
const std::string& pat,
char c);
95 static const char*
const hemispheres_;
96 static const char*
const signs_;
97 static const char*
const digits_;
98 static const char*
const dmsindicators_;
99 static const char*
const components_[3];
100 static Math::real NumMatch(
const std::string& s);
101 static Math::real InternalDecode(
const std::string& dmsa, flag& ind);
236 static Math::real Decode(
const std::string& dms, flag& ind);
276 static void DecodeLatLon(
const std::string& dmsa,
const std::string& dmsb,
278 bool longfirst =
false);
291 static Math::real DecodeAngle(
const std::string& angstr);
305 static Math::real DecodeAzimuth(
const std::string& azistr);
335 static std::string Encode(
real angle, component trailing,
unsigned prec,
336 flag ind = NONE,
char dmssep =
char(0));
356 static std::string
Encode(real angle,
unsigned prec,
flag ind = NONE,
357 char dmssep =
char(0)) {
360 prec < 2 ? DEGREE : (prec < 4 ? MINUTE : SECOND),
361 prec < 2 ? prec : (prec < 4 ? prec - 2 : prec - 4),
372 static void Encode(real ang, real& d, real& m) {
384 static void Encode(real ang, real& d, real& m, real& s) {
394# pragma warning (pop)
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Header for GeographicLib::Utility class.
Convert between degrees and the DMS representation.
static void Encode(real ang, real &d, real &m)
static Math::real Decode(real d, real m=0, real s=0)
static std::string Encode(real angle, unsigned prec, flag ind=NONE, char dmssep=char(0))
static void Encode(real ang, real &d, real &m, real &s)
static std::string str(T x, int p=-1)
Namespace for GeographicLib.