Main Page
Modules
Namespaces
Classes
Files
File List
File Members
src/terralib/ws/ogc/wcs/dataaccess/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/ws/ogc/wcs/dataaccess/DataSource.h
22
23
\brief Data Source for WS OGC WCS
24
25
\author Vinicius Campanha
26
*/
27
28
#ifndef __TERRALIB_WS_OGC_WCS_DATAACCESS_DATASOURCE_H
29
#define __TERRALIB_WS_OGC_WCS_DATAACCESS_DATASOURCE_H
30
31
32
// STL
33
#include <map>
34
#include <string>
35
#include <memory>
36
37
// TerraLib
38
#include "../../../../dataaccess/datasource/DataSource.h"
39
#include "../../../../dataaccess/datasource/DataSourceCapabilities.h"
40
#include "../client/WCSClient.h"
41
#include "
Config.h
"
42
#include "
Exception.h
"
43
44
45
namespace
te
46
{
47
namespace
ws
48
{
49
namespace
ogc
50
{
51
namespace
wcs
52
{
53
namespace
da
54
{
55
/*!
56
\class DataSource
57
58
\brief Implementation of the data source for the WCS driver.
59
*/
60
class
TEOGCWCSDATAACCESSEXPORT
DataSource
:
public
te::da::DataSource
61
{
62
public
:
63
64
DataSource
(
const
std::string& connInfo);
65
66
DataSource
(
const
te::core::URI
& uri);
67
68
~
DataSource
();
69
70
std::string getType()
const
;
71
72
std::unique_ptr<te::da::DataSourceTransactor> getTransactor();
73
74
void
open();
75
76
void
close();
77
78
bool
isOpened()
const
;
79
80
bool
isValid()
const
;
81
82
const
te::da::DataSourceCapabilities
& getCapabilities()
const
;
83
84
static
void
setCapabilities(
const
te::da::DataSourceCapabilities
&
capabilities
);
85
86
const
te::da::SQLDialect
* getDialect()
const
;
87
88
std::shared_ptr<te::ws::ogc::WCSClient> getWCSClient()
const
;
89
90
protected
:
91
92
void
create(
const
std::string& connInfo);
93
94
void
drop(
const
std::string& connInfo);
95
96
bool
exists(
const
std::string& connInfo);
97
98
std::vector<std::string> getDataSourceNames(
const
std::string& connInfo);
99
100
std::vector<te::core::EncodingType> getEncodings(
const
std::string& connInfo);
101
102
private
:
103
104
void
verifyConnectionInfo()
const
;
105
106
private
:
107
108
std::shared_ptr<te::ws::ogc::WCSClient>
m_wcs
;
109
bool
m_isOpened
;
110
static
te::da::DataSourceCapabilities
sm_capabilities
;
111
};
112
}
// end namespace da
113
}
// end namespace wcs
114
}
// end namespace ogc
115
}
// end namespace ws
116
}
// end namespace te
117
118
119
#endif // __TERRALIB_WS_OGC_WCS_DATAACCESS_DATASOURCE_H
120
te::ws::ogc::wcs::da::DataSource
Implementation of the data source for the WCS driver.
Definition:
src/terralib/ws/ogc/wcs/dataaccess/DataSource.h:60
te::da::SQLDialect
It represents the SQL query dialect accepted by a given data source.
Definition:
SQLDialect.h:55
te::ws::ogc::wcs::da::DataSource::m_isOpened
bool m_isOpened
Definition:
src/terralib/ws/ogc/wcs/dataaccess/DataSource.h:109
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
TEOGCWCSDATAACCESSEXPORT
#define TEOGCWCSDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition:
src/terralib/ws/ogc/wcs/dataaccess/Config.h:71
Exception.h
capabilities
te::da::DataSourceCapabilities capabilities
Definition:
PostGISCapabilities.h:129
te
URI C++ Library.
Definition:
Attributes.h:37
Config.h
Configuration flags for the Terrralib WS OGC WCS DATA ACCESS module.
te::ws::ogc::wcs::da::DataSource::m_wcs
std::shared_ptr< te::ws::ogc::WCSClient > m_wcs
Definition:
src/terralib/ws/ogc/wcs/dataaccess/DataSource.h:108
DataSource
void DataSource()
Definition:
ExemplifyDataacces.cpp:158
te::core::URI
A class for representing an Uniform Resource Identifier (URI).
Definition:
URI.h:49
te::ws::ogc::wcs::da::DataSource::sm_capabilities
static te::da::DataSourceCapabilities sm_capabilities
Definition:
src/terralib/ws/ogc/wcs/dataaccess/DataSource.h:110
terralib5_src
src
terralib
ws
ogc
wcs
dataaccess
DataSource.h
Generated on Wed Jun 6 2018 12:16:08 for TerraLib by
1.8.11