Main Page
Modules
Namespaces
Classes
Files
File List
File Members
attic/src/wcs/DataSource.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 terralib/wcs/DataSource.h
22
23
\brief Implementation of the data source for the WCS driver.
24
*/
25
26
#ifndef __TERRALIB_WCS_INTERNAL_DATASOURCE_H
27
#define __TERRALIB_WCS_INTERNAL_DATASOURCE_H
28
29
// TerraLib
30
#include "../dataaccess/datasource/DataSource.h"
31
#include "../dataaccess/datasource/DataSourceCapabilities.h"
32
#include "
Config.h
"
33
#include "
Exception.h
"
34
35
// STL
36
#include <map>
37
#include <string>
38
39
namespace
te
40
{
41
namespace
core {
class
URI
; }
42
namespace
wcs
43
{
44
/*!
45
\class DataSource
46
47
\brief Implementation of the data source for the WCS driver.
48
*/
49
class
TEWCSEXPORT
DataSource
:
public
te::da::DataSource
50
{
51
public
:
52
53
DataSource
(
const
std::string& connInfo);
54
55
DataSource
(
const
te::core::URI
& uri);
56
57
~
DataSource
();
58
59
std::string getType()
const
;
60
61
std::auto_ptr<te::da::DataSourceTransactor> getTransactor();
62
63
void
open();
64
65
void
close();
66
67
bool
isOpened()
const
;
68
69
bool
isValid()
const
;
70
71
const
te::da::DataSourceCapabilities
& getCapabilities()
const
;
72
73
static
void
setCapabilities(
const
te::da::DataSourceCapabilities
&
capabilities
);
74
75
const
te::da::SQLDialect
* getDialect()
const
;
76
77
protected
:
78
79
void
create(
const
std::string& connInfo);
80
81
void
drop(
const
std::string& connInfo);
82
83
bool
exists(
const
std::string& connInfo);
84
85
std::vector<std::string> getDataSourceNames(
const
std::string& connInfo);
86
87
std::vector<te::core::EncodingType> getEncodings(
const
std::string& connInfo);
88
89
private
:
90
91
void
verifyConnectionInfo()
const
;
92
93
private
:
94
95
bool
m_isOpened
;
96
static
te::da::DataSourceCapabilities
sm_capabilities
;
97
};
98
99
}
// end namespace wcs
100
}
// end namespace te
101
102
#endif // __TERRALIB_WCS_INTERNAL_DATASOURCE_H
TEWCSEXPORT
#define TEWCSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition:
attic/src/wcs/Config.h:69
te::da::SQLDialect
It represents the SQL query dialect accepted by a given data source.
Definition:
SQLDialect.h:55
te::da::DataSourceCapabilities
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
Definition:
DataSourceCapabilities.h:55
te::da::DataSource
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
Definition:
src/terralib/dataaccess/datasource/DataSource.h:119
capabilities
te::da::DataSourceCapabilities capabilities
Definition:
PostGISCapabilities.h:129
te
URI C++ Library.
Definition:
Attributes.h:37
te::wcs::DataSource
Implementation of the data source for the WCS driver.
Definition:
attic/src/wcs/DataSource.h:49
te::wcs::DataSource::sm_capabilities
static te::da::DataSourceCapabilities sm_capabilities
Definition:
attic/src/wcs/DataSource.h:96
DataSource
void DataSource()
Definition:
ExemplifyDataacces.cpp:158
te::core::URI
A class for representing an Uniform Resource Identifier (URI).
Definition:
URI.h:49
te::wcs::DataSource::m_isOpened
bool m_isOpened
Definition:
attic/src/wcs/DataSource.h:95
Exception.h
Config.h
terralib5_src
attic
src
wcs
DataSource.h
Generated on Wed Jun 6 2018 12:16:07 for TerraLib by
1.8.11