| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   15 #ifndef QGSNUMERICFORMAT_H 
   16 #define QGSNUMERICFORMAT_H 
   18 #include "qgis_core.h" 
   22 #include <QVariantMap> 
   23 #include <QDomDocument> 
   65       mThousandsSep = separator;
 
   85       mDecimalSep = separator;
 
  105       mPercent = character;
 
  125       mZeroDigit = character;
 
  135       return mNegativeSign;
 
  145       mNegativeSign = character;
 
  155       return mPositiveSign;
 
  165       mPositiveSign = character;
 
  185       mExponential = character;
 
  199     Q_ENUM( Interpretation )
 
  210       return mInterpretation;
 
  222       mInterpretation = interpretation;
 
  234     Interpretation mInterpretation = Interpretation::Generic;
 
  265       sipType = sipType_QgsBearingNumericFormat;
 
  267       sipType = sipType_QgsGeographicCoordinateNumericFormat;
 
  269       sipType = sipType_QgsFallbackNumericFormat;
 
  271       sipType = sipType_QgsPercentageNumericFormat;
 
  273       sipType = sipType_QgsScientificNumericFormat;
 
  275       sipType = sipType_QgsCurrencyNumericFormat;
 
  277       sipType = sipType_QgsBasicNumericFormat;
 
  279       sipType = sipType_QgsFractionNumericFormat;
 
  299     virtual QString id() 
const = 0;
 
  304     virtual QString visibleName() 
const = 0;
 
  311     virtual int sortKey();
 
  316     virtual double suggestSampleValue() 
const;
 
  347     void writeXml( QDomElement &element, QDomDocument &document, 
const QgsReadWriteContext &context ) 
const;
 
  354     static constexpr 
int DEFAULT_SORT_KEY = 100;
 
  357 #endif // QGSNUMERICFORMAT_H 
  
The class is used as a container of context for various read/write operations on other objects.
 
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
 
void setPercent(const QChar &character)
Sets the percent character.
 
QChar negativeSign() const
Returns the negative sign character.
 
QChar exponential() const
Returns the exponential character.
 
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
 
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
 
QChar positiveSign() const
Returns the positive sign character.
 
QChar percent() const
Returns the percent character.
 
void setDecimalSeparator(const QChar &separator)
Returns the decimal separator character.
 
void setPositiveSign(const QChar &character)
Sets the positive sign character.
 
Interpretation
Interpretation of numeric values.
 
void setInterpretation(Interpretation interpretation)
Sets the interpretation of the numbers being converted.
 
void setThousandsSeparator(const QChar &separator)
Sets the thousands separator character.
 
QChar zeroDigit() const
Returns the zero digit character.
 
void setExponential(const QChar &character)
Sets the exponential character.
 
void setNegativeSign(const QChar &character)
Sets the negative sign character.
 
QChar decimalSeparator() const
Returns the decimal separator character.
 
void setZeroDigit(const QChar &character)
Returns the zero digit character.
 
A context for numeric formats.
 
QChar thousandsSeparator() const
Returns the thousands separator character.