26#ifndef __TERRALIB_DATATYPE_INTERNAL_NUMERICPROPERTY_H
27#define __TERRALIB_DATATYPE_INTERNAL_NUMERICPROPERTY_H
66 unsigned int precision,
69 std::string* defaultValue = 0,
An atomic property like an integer or double.
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.
Property * clone() const
It returns a clone of the object.
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.
SimpleProperty(const std::string &name, int datatype, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new simple property.
bool isRequired() const
It returns true if the attribute is required, otherwise it returns false.
Namespace for the Data Type module of TerraLib.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.