Engauge Digitizer  2
Public Member Functions | Protected Member Functions | List of all members
FormatDegreesMinutesSecondsBase Class Reference

Common input parsing and output formatting for degrees/minutes/seconds values. More...

#include <FormatDegreesMinutesSecondsBase.h>

Inheritance diagram for FormatDegreesMinutesSecondsBase:
FormatDegreesMinutesSecondsNonPolarTheta FormatDegreesMinutesSecondsPolarTheta

Public Member Functions

 FormatDegreesMinutesSecondsBase ()
 Single constructor.
 
QValidator::State parseInput (const QString &stringUntrimmed, double &value) const
 Parse the input string into a number value. More...
 

Protected Member Functions

QString formatOutputDegreesMinutesSeconds (double value) const
 Format as degrees, minutes and seconds without hemisphere.
 
QString formatOutputDegreesMinutesSecondsNsew (double value, bool isNsHemisphere) const
 Format as degrees, minutes and seconds with hemisphere.
 

Detailed Description

Common input parsing and output formatting for degrees/minutes/seconds values.

Definition at line 14 of file FormatDegreesMinutesSecondsBase.h.

Member Function Documentation

◆ parseInput()

QValidator::State FormatDegreesMinutesSecondsBase::parseInput ( const QString &  stringUntrimmed,
double &  value 
) const

Parse the input string into a number value.

Success flag is false if the parsing failed. Either signed values or hemisphere (North, South, East, West) values can be accepted irregardless of the output format selected by the user. Leading/trailing spaces are trimmed. Leading/trailing spaces are trimmed (=ignored)

Definition at line 87 of file FormatDegreesMinutesSecondsBase.cpp.


The documentation for this class was generated from the following files: