19 #ifndef QVCT_CUNITPOSITION_HPP
20 #define QVCT_CUNITPOSITION_HPP
68 static const QMap<EUnit,QString> &
symbols();
74 static const QMap<EUnit,QString> &
codes();
80 static QString
toString(
double _fdValue,
EType _eType,
EUnit _eUnit,
int _iPrecision = 0 );
92 static double fromString(
const QString& _rqString,
bool* _pbOK = 0 );
Container class for supported machine-friendly format/unit codes.
QMap< CUnitPosition::EUnit, QString > qMapCodes
Container class for supported human-readable format/unit symbols.
QMap< CUnitPosition::EUnit, QString > qMapSymbols
Geographical position unit (D,DM,DMS,RAD,GRAD) rendering/parsing class.
EType
Position coordinate type ID.
static QString toString(double _fdValue, EType _eType, EUnit _eUnit, int _iPrecision=0)
Returns the formatted represention of the given value, using the specified format/unit and decimal pr...
static const CUnitPositionCodes oUnitPositionCodes
Container for supported machine-friendly format/unit codes.
static const QMap< EUnit, QString > & codes()
Returns the list of supported machine-friendly format/unit codes.
@ UNDEFINED
undefined format/unit
@ DMS
degrees, minutes, seconds
static const QMap< EUnit, QString > & symbols()
Returns the list of supported human-readable format/unit symbols.
static QString toCode(EUnit _eUnit)
Returns the machine-friendly code corresponding to the given format/unit ID.
static QString toSymbol(EUnit _eUnit)
Returns the human-readable symbol corresponding to the given format/unit ID.
static double fromString(const QString &_rqString, bool *_pbOK=0)
Returns the numeric value corresponding (parsed) from the string.
static EUnit fromSymbol(const QString &_rqsSymbol)
Returns the format/unit ID corresponding to the given human-readable symbol.
static const CUnitPositionSymbols oUnitPositionSymbols
Container for supported human-readable format/unit symbols.
static EUnit fromCode(const QString &_rqsCode)
Returns the format/unit ID corresponding to the given machine-friendly code.