Examples that show how to access/manipulate an ADO data source. More...
#include <terralib/common.h>#include <terralib/dataaccess/datasource/DataSource.h>#include <terralib/datatype_fw.h>#include "../Config.h"Go to the source code of this file.
Functions | |
| void | Copy (std::string dataSetName, std::unique_ptr< te::da::DataSource > inDs, te::da::DataSource *outDs) |
| void | CopyFromShapeFile (te::da::DataSource *ds) |
| It copies a shapefile to the given datasource. More... | |
| std::unique_ptr< te::da::DataSource > | GetADOConnection () |
| void | LoadModules () |
| It loads the data source drivers. More... | |
| void | PrintCatalog (te::da::DataSource *ds) |
| This example will print to the standard output all the information about the datasets stored in a data source. More... | |
| void | PrintDataSets (te::da::DataSource *ds) |
| It prints datasets in a given data source. More... | |
| void | PrintDataSetValues (const std::string &datasetName, te::da::DataSet *dataset) |
| It prints the data of a given dataset. More... | |
Examples that show how to access/manipulate an ADO data source.
Definition in file ADOExamples.h.
| void Copy | ( | std::string | dataSetName, |
| std::unique_ptr< te::da::DataSource > | inDs, | ||
| te::da::DataSource * | outDs | ||
| ) |
Definition at line 68 of file CopyDataSet.cpp.
References te::da::Create().
Referenced by te::rst::Copy(), CopyFromShapeFile(), and te::rst::CreateCopy().
| void CopyFromShapeFile | ( | te::da::DataSource * | ds | ) |
It copies a shapefile to the given datasource.
| ds | The data source you want to copy the data to. |
Definition at line 81 of file CopyDataSet.cpp.
References Copy(), ds, and te::da::DataSourceFactory::make().
Referenced by main().
| std::unique_ptr<te::da::DataSource> GetADOConnection | ( | ) |
Definition at line 37 of file GetADOConnection.cpp.
References ds, and te::da::DataSourceFactory::make().
Referenced by main().
| void LoadModules | ( | ) |
It loads the data source drivers.
It loads the data source drivers.
Definition at line 38 of file attic/unittest/dataaccess/LoadModules.h.
| void PrintCatalog | ( | te::da::DataSource * | ds | ) |
This example will print to the standard output all the information about the datasets stored in a data source.
| ds | The data source used to retrieve information about their datasets. |
Definition at line 40 of file PrintCatalog.cpp.
Referenced by main().
| void PrintDataSets | ( | te::da::DataSource * | ds | ) |
It prints datasets in a given data source.
| ds | The data source you want to print its data. |
Definition at line 38 of file ado/PrintDataSets.cpp.
Referenced by main(), OpenDirectory(), and OpenFile().
| void PrintDataSetValues | ( | const std::string & | datasetName, |
| te::da::DataSet * | dataset | ||
| ) |
It prints the data of a given dataset.
| dataset | A dataset. |
Definition at line 38 of file PrintDataSetValues.cpp.
References te::dt::BYTE_ARRAY_TYPE, te::dt::DATETIME_TYPE, te::da::DataSet::getAsString(), te::da::DataSet::getNumProperties(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getPropertyName(), te::da::DataSet::isConnected(), te::da::DataSet::isNull(), te::da::DataSet::moveNext(), and te::dt::UNKNOWN_TYPE.
Referenced by PrintDataSets().