27 #include "../../common/Translator.h"
28 #include "../../dataaccess/dataset/DataSet.h"
138 std::vector<std::string> result;
139 std::string value=
"";
145 if (!dataSet->
isNull(propName))
148 result.push_back(value);
157 std::vector<double> result;
169 if (!dataSet->
isNull(propName))
176 numval = (double)dataSet->
getInt64(index);
181 result.push_back(numval);
virtual std::string getPropertyName(std::size_t i) const =0
It returns the property name at position pos.
virtual double getDouble(std::size_t i) const =0
Method for retrieving a double attribute value.
virtual std::size_t getNumProperties() const =0
It returns the number of properties that composes an item of the dataset.
Enumerations related to Vector Processing module.
TESTATEXPORT std::string GetStatSummaryFullName(const int &e)
Get the statistical parameter full name ffrom its enumerator.
TESTATEXPORT std::vector< double > GetNumericData(te::da::DataSet *dataSet, const std::string propName)
Returns the values of a numeric type property in a vector of values.
virtual float getFloat(std::size_t i) const =0
Method for retrieving a float attribute value.
virtual boost::int32_t getInt32(std::size_t i) const =0
Method for retrieving a 32-bit integer attribute value (4 bytes long).
virtual std::string getString(std::size_t i) const =0
Method for retrieving a string value attribute.
virtual bool moveNext()=0
It moves the internal pointer to the next item of the collection.
virtual bool isNull(std::size_t i) const =0
It checks if the attribute value is NULL.
TESTATEXPORT std::vector< std::string > GetStringData(te::da::DataSet *dataSet, const std::string propName)
Returns the values of a string type property in a vector of values.
virtual boost::int16_t getInt16(std::size_t i) const =0
Method for retrieving a 16-bit integer attribute value (2 bytes long).
An exception class for the statistical module.
virtual int getPropertyDataType(std::size_t i) const =0
It returns the underlying data type of the property at position pos.
virtual boost::int64_t getInt64(std::size_t i) const =0
Method for retrieving a 64-bit integer attribute value (8 bytes long).
#define TR_STATISTICS(message)
It marks a string in order to get translated. This is a special mark used in the Terrralib Statistics...
Configuration flags for the Terrralib Statistic module.
virtual bool moveFirst()=0
It moves the internal pointer to the first item in the collection.
Utility functions for Statistics.
A dataset is the unit of information manipulated by the data access module of TerraLib.
TESTATEXPORT std::string GetStatSummaryShortName(const int &e)
Get the statistical parameter short name from its enumerator.