42 std::cout <<
"The informed data source is NULL or is closed!" << std::endl;
48 for(std::size_t i = 0; i < datasets.size(); ++i)
51 std::unique_ptr<te::da::DataSet> dataset(ds->
getDataSet(datasets[i]));
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
virtual bool isOpened() const =0
It returns true if the data source is opened, otherwise it returns false.
Examples that show how to access/manipulate an ADO data source.
static te::dt::Date ds(2010, 01, 01)
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
void PrintDataSets(te::da::DataSource *ds)
It prints datasets in a given data source.
virtual std::vector< std::string > getDataSetNames()
It gets the dataset names available in the data source.
virtual std::unique_ptr< DataSet > getDataSet(const std::string &name, te::common::TraverseType travType=te::common::FORWARDONLY, const te::common::AccessPolicy accessPolicy=te::common::RAccess)
It gets the dataset identified by the given name. This method always returns a disconnected dataset...
This file contains include headers for the TerraLib Common Runtime module.
A dataset is the unit of information manipulated by the data access module of TerraLib.
void PrintDataSetValues(const std::string &datasetName, te::da::DataSet *dataset)
It prints the data of a given dataset.