11 std::cout <<
"The informed data source is NULL or is closed!" << std::endl;
23 std::cout <<
"There is(are) "<< datasets.size() <<
" dataset(s) in the datasource:" << std::endl;
25 for(
unsigned int i=0; i<datasets.size(); ++i)
32 std::cout << i <<
": ";
40 std::cout <<
"\n\tCan not print dataset " << datasets[i] <<
": " << ex.
what() << std::endl;
44 std::cout <<
"\n\tCan not print dataset " << datasets[i] << std::endl;
virtual std::unique_ptr< DataSourceTransactor > getTransactor()=0
It returns the set of parameters used to set up the access channel to the underlying repository...
void PrintDataSets(te::da::DataSource *ds)
It prints datasets in a given data source.
virtual const char * what() const
It outputs the exception message.
virtual bool isOpened() const =0
It returns true if the data source is opened, otherwise it returns false.
static te::dt::Date ds(2010, 01, 01)
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
Examples on how to access/manipulate DataSources in TerraLib.
virtual std::vector< std::string > getDataSetNames()
It gets the dataset names available in the data source.
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
A dataset is the unit of information manipulated by the data access module of TerraLib.
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...
void PrintDataSet(std::string datasetName, te::da::DataSet *dataset)
It prints the data in a given dataset.