44 std::cout <<
"The informed dataset is NULL!" << std::endl;
53 std::cout << std::endl <<
"===========================================================" << std::endl;
54 std::cout << std::endl <<
"===========================================================" << std::endl;
55 std::cout <<
"Printing information about the dataset: " << datasetName << std::endl;
60 std::cout << std::endl <<
"Row Number: " << item++ <<
" =======================" << std::endl;
62 for(std::size_t i = 0; i < numProperties; ++i)
69 std::cout << std::endl;
77 value =
"Binary Type";
79 value =
"Unknown column type";
81 value =
"Not implemented yet";
85 std::cout << value << std::endl;
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
void PrintDataSetValues(const std::string &datasetName, te::da::DataSet *dataset)
It prints the data of a given dataset.
Examples that show how to access/manipulate an ADO data source.
virtual bool moveNext()=0
It moves the internal pointer to the next item of the collection.
virtual int getPropertyDataType(std::size_t i) const =0
It returns the underlying data type of the property at position pos.
virtual std::string getAsString(std::size_t i, int precision=0) const
Method for retrieving a data value as a string plain representation.
A dataset is the unit of information manipulated by the data access module of TerraLib.
This file contains include headers for the TerraLib Common Runtime module.
virtual bool isNull(std::size_t i) const =0
It checks if the attribute value is NULL.
A dataset is the unit of information manipulated by the data access module of TerraLib.
virtual bool isConnected() const =0
It returns true if the dataset is connected and false if it is disconnected. A dataset can be connect...
virtual std::size_t getNumProperties() const =0
It returns the number of properties that composes an item of the dataset.
virtual std::string getPropertyName(std::size_t i) const =0
It returns the property name at position pos.