ADOExamples.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file ADOExamples.h
22 
23  \brief Examples that show how to access/manipulate an ADO data source.
24  */
25 
26 #ifndef __TERRALIB_EXAMPLES_ADO_INTERNAL_ADOEXAMPLES_H
27 #define __TERRALIB_EXAMPLES_ADO_INTERNAL_ADOEXAMPLES_H
28 
29 // TerraLib
30 #include <terralib/common.h>
32 #include <terralib/datatype_fw.h>
33 #include "../Config.h"
34 
35 /*! \brief It loads the data source drivers. */
36 void LoadModules();
37 
38 /*!
39  \brief This example will print to the standard output all the information about the datasets stored in a data source.
40 
41  \param ds The data source used to retrieve information about their datasets.
42  */
44 
45 /*!
46  \brief It prints datasets in a given data source.
47 
48  \param ds The data source you want to print its data.
49  */
51 
52 /*!
53 \brief It copies a shapefile to the given datasource.
54 
55 \param ds The data source you want to copy the data to.
56 */
58 /*!
59  \brief It prints the data of a given dataset.
60 
61  \param dataset A dataset.
62  */
63 void PrintDataSetValues(const std::string& datasetName, te::da::DataSet* dataset);
64 
65 void Copy(std::string dataSetName, std::unique_ptr<te::da::DataSource> inDs, te::da::DataSource* outDs);
66 
67 std::unique_ptr<te::da::DataSource> GetADOConnection();
68 
69 
70 
71 #endif // __TERRALIB_EXAMPLES_ADO_INTERNAL_ADOEXAMPLES_H
72 
void PrintCatalog(te::da::DataSource *ds)
This example will print to the standard output all the information about the datasets stored in a dat...
void LoadModules()
It loads the data source drivers.
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.
static te::dt::Date ds(2010, 01, 01)
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
void CopyFromShapeFile(te::da::DataSource *ds)
It copies a shapefile to the given datasource.
Definition: CopyDataSet.cpp:81
void Copy(std::string dataSetName, std::unique_ptr< te::da::DataSource > inDs, te::da::DataSource *outDs)
Definition: CopyDataSet.cpp:68
This file contains forward declarations for the Data Type module of TerraLib.
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.
std::unique_ptr< te::da::DataSource > GetADOConnection()
void PrintDataSetValues(const std::string &datasetName, te::da::DataSet *dataset)
It prints the data of a given dataset.