Numeric formatting function. More...
#include <FormatNumber.h>
Public Types | |
typedef void | ReturnType |
typedef Visitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
virtual Expression * | clone () const =0 |
It returns a clone of this object. More... | |
const std::string & | getFallbackValue () const |
void | setDecimalPoint (const std::string &dp) |
void | setFallbackValue (const std::string &v) |
void | setGroupingSeparator (const std::string &gs) |
void | setNegativePattern (const std::string &np) |
void | setNumericValue (ParameterValue *v) |
void | setPattern (const std::string &p) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
FormatNumber () | |
It initializes a new FormatNumber. More... | |
~FormatNumber () | |
Destructor. More... | |
Protected Attributes | |
std::string | m_fallbackValue |
The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory) More... | |
Private Member Functions | |
Not Allowed Methods | |
No copy allowed. | |
FormatNumber (const FormatNumber &rhs) | |
No copy constructor allowed. More... | |
FormatNumber & | operator= (const FormatNumber &rhs) |
No assignment operator allowed. More... | |
Private Attributes | |
std::string | m_decimalPoint |
Optional. Default: ".". More... | |
std::string | m_groupingSeparator |
Optional. Default: ",". More... | |
std::string | m_negativePattern |
Optional. More... | |
ParameterValue * | m_numericValue |
Mandatory. More... | |
std::string | m_pattern |
Mandatory. More... | |
Numeric formatting function.
Function for formatting numbers to make them human readable. One of the most needed is a function for formatting numbers to make them human readable. You need such a function whenever a TextSymbolizer is employed to output a numeric property value.
Definition at line 52 of file FormatNumber.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
te::se::FormatNumber::FormatNumber | ( | ) |
It initializes a new FormatNumber.
te::se::FormatNumber::~FormatNumber | ( | ) |
Destructor.
|
private |
No copy constructor allowed.
rhs | The other object. |
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
|
pure virtualinherited |
It returns a clone of this object.
Implemented in te::fe::BinaryOperator, te::fe::Function, te::se::Interpolate, te::se::Categorize, te::fe::Literal, te::fe::PropertyName, te::se::Recode, te::se::InterpolationPoint, and te::se::MapItem.
|
inherited |
|
private |
No assignment operator allowed.
rhs | The other object. |
void te::se::FormatNumber::setDecimalPoint | ( | const std::string & | dp | ) |
|
inherited |
void te::se::FormatNumber::setGroupingSeparator | ( | const std::string & | gs | ) |
void te::se::FormatNumber::setNegativePattern | ( | const std::string & | np | ) |
void te::se::FormatNumber::setNumericValue | ( | ParameterValue * | v | ) |
void te::se::FormatNumber::setPattern | ( | const std::string & | p | ) |
|
private |
Optional. Default: ".".
Definition at line 125 of file FormatNumber.h.
|
protectedinherited |
The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory)
Definition at line 88 of file Function.h.
|
private |
Optional. Default: ",".
Definition at line 126 of file FormatNumber.h.
|
private |
Optional.
Definition at line 124 of file FormatNumber.h.
|
private |
Mandatory.
Definition at line 122 of file FormatNumber.h.
|
private |
Mandatory.
Definition at line 123 of file FormatNumber.h.