26 #ifndef __TERRALIB_DATATYPE_INTERNAL_NUMERICPROPERTY_H
27 #define __TERRALIB_DATATYPE_INTERNAL_NUMERICPROPERTY_H
66 unsigned int precision,
68 bool isRequired =
false,
69 std::string* defaultValue = 0,
116 void setScale(
unsigned int scale) { m_scale = scale; }
An atomic property like an integer or double.
The type for arbitrary precison numbers, like numeric(p, q).
Property * clone() const
It returns a clone of the object.
void setPrecision(unsigned int precision)
Sets the total count of significant digits in the whole number, that is, the number of digits to both...
NumericProperty(const std::string &name, unsigned int precision, unsigned int scale, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new NumericProperty.
NumericProperty & operator=(const NumericProperty &rhs)
Assignment operator.
unsigned int getScale() const
It returns the count of decimal digits in the fractional part, to the right of the decimal point.
unsigned int m_precision
Total number of digits of a numeric value.
unsigned int m_scale
Number of digits for the right of the decimal point of a numeric value.
NumericProperty(const NumericProperty &rhs)
Copy constructor.
unsigned int getPrecision() const
It returns the total count of significant digits in the whole number, that is, the number of digits t...
void setScale(unsigned int scale)
Sets the count of decimal digits in the fractional part, to the right of the decimal point.
~NumericProperty()
Destructor.
It models a property definition.
An atomic property like an integer or double.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.