15#ifndef QGSNUMERICFORMAT_H
16#define QGSNUMERICFORMAT_H
22#include <QDomDocument>
64 mThousandsSep = separator;
84 mDecimalSep = separator;
104 mPercent = character;
124 mZeroDigit = character;
134 return mNegativeSign;
144 mNegativeSign = character;
154 return mPositiveSign;
164 mPositiveSign = character;
184 mExponential = character;
198 Q_ENUM( Interpretation )
209 return mInterpretation;
249 Interpretation mInterpretation = Interpretation::Generic;
284 sipType = sipType_QgsBearingNumericFormat;
286 sipType = sipType_QgsGeographicCoordinateNumericFormat;
288 sipType = sipType_QgsFallbackNumericFormat;
290 sipType = sipType_QgsPercentageNumericFormat;
292 sipType = sipType_QgsScientificNumericFormat;
294 sipType = sipType_QgsCurrencyNumericFormat;
296 sipType = sipType_QgsBasicNumericFormat;
298 sipType = sipType_QgsFractionNumericFormat;
300 sipType = sipType_QgsExpressionBasedNumericFormat;
317 virtual QString
id()
const = 0;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
A context for numeric formats.
void setThousandsSeparator(const QChar &separator)
Sets the thousands separator character.
QChar negativeSign() const
Returns the negative sign character.
QChar thousandsSeparator() const
Returns the thousands separator character.
void setPercent(const QChar &character)
Sets the percent character.
void setPositiveSign(const QChar &character)
Sets the positive sign character.
void setExponential(const QChar &character)
Sets the exponential character.
void setNegativeSign(const QChar &character)
Sets the negative sign character.
QChar zeroDigit() const
Returns the zero digit character.
QgsNumericFormatContext()
Constructor for QgsNumericFormatContext.
QChar exponential() const
Returns the exponential character.
Interpretation interpretation() const
Returns the interpretation of the numbers being converted.
void setInterpretation(Interpretation interpretation)
Sets the interpretation of the numbers being converted.
QChar decimalSeparator() const
Returns the decimal separator character.
void setDecimalSeparator(const QChar &separator)
Returns the decimal separator character.
void setZeroDigit(const QChar &character)
Returns the zero digit character.
QChar positiveSign() const
Returns the positive sign character.
QChar percent() const
Returns the percent character.
Interpretation
Interpretation of numeric values.
A container for the context for various read/write operations on objects.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)