4 #ifndef FIRE_PLUGIN_DATA_SHARED_CONNECTIONSH_HPP_INCLUDED
5 #define FIRE_PLUGIN_DATA_SHARED_CONNECTIONSH_HPP_INCLUDED
7 #include <boost/shared_ptr.hpp>
8 #include <fire/shared/Shared.hpp>
9 #include <fire/exception/Exception.hpp>
14 #include "fire/gis/export.hpp"
15 #include "fire/source/Connection.hpp"
30 inline void setId(
const std::string& pool,
const std::string&
id) {
31 _getPtr()->setId(pool,
id);
34 inline std::string getId()
const {
35 return _getPtr()->getId();
38 inline std::string getInstanceId()
const {
39 return _getPtr()->getInstanceId();
42 inline std::string getPoolId()
const {
43 return _getPtr()->getPoolId();
46 inline Connection::ConnectionParams
const & getConnectionString()
const {
47 return _getPtr()->getConnectionString();
50 inline virtual void open() {
54 inline void open(Connection::ConnectionParams
const & cnnStr) {
55 _getPtr()->open(cnnStr);
58 inline virtual bool isEmpty()
const {
59 return _getPtr() == NULL;
62 inline bool isOpen()
const {
63 return _getPtr()->isOpen();
66 inline virtual bool isValid()
const {
67 return (_getPtr()->isValid());
69 inline virtual void close() {
73 inline virtual ConnectionType::ConnectionType getType()
const {
74 return ConnectionType::UNKNOWN;
77 inline virtual Features const getFeatures()
const {
78 return _getPtr()->getFeatures();
81 inline virtual Connection::LayerList getLayers()
const {
82 return _getPtr()->getLayers();
85 inline virtual std::string getNamespace()
const {
86 return _getPtr()->getNamespace();
Oggetto che consente di verificare la presenza di specifiche funzionalità sull'implementazione di una...
Definition: Features.hpp:21
Classe astratta che implementa l'interfaccia di base di una sorgente dati sia vettoriale che raster...
Definition: Connection.hpp:31
Classe per la gestione di un'eccezione generica.
Definition: Exception.hpp:26
Definition: Shared.hpp:17
Definition: ConnectionSh.hpp:21