Fire Core  8.0.0.alpha
GIS framework per tutti gli usi
 Tutto Classi Namespace Funzioni Variabili Ridefinizioni di tipo (typedef) Tipi enumerati (enum) Valori del tipo enumerato Friend
ConnectionSpatialDbSh.hpp
1 // Copyright © 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef FIRE_PLUGIN_DATA_SHARED_CONNECTIONSPATIALDBSH_HPP_INCLUDED
5 #define FIRE_PLUGIN_DATA_SHARED_CONNECTIONSPATIALDBSH_HPP_INCLUDED
6 
7 #include <fire/exception/Exception.hpp>
8 
9 #include <exception>
10 
11 #include "fire/gis/export.hpp"
12 #include "fire/source/vector/ConnectionSpatialDb.hpp"
13 #include "fire/source/vector/shared/ConnectionVectorSh.hpp"
14 
15 namespace fire {
16 namespace source {
17 namespace vector {
18 namespace shared {
19 
20 class FIRE_GIS_DLL ConnectionSpatialDbSh : public ConnectionVectorSh {
21  public:
23  }
24 
26  }
27 
28  explicit ConnectionSpatialDbSh(ConnectionSh const & c): ConnectionVectorSh(c) {
29  }
30 
31  inline ConnectionSpatialDbSh & operator=(ConnectionSpatialDbSh const & c) {
32  ConnectionVectorSh::operator =(c);
33  return *this;
34  }
35 
36  inline ConnectionSpatialDbSh & operator=(ConnectionVectorSh const & c) {
37  ConnectionVectorSh::operator =(c);
38  return *this;
39  }
40 
41  inline ConnectionSpatialDbSh & operator=(ConnectionSh const & c) {
42  ConnectionVectorSh::operator =(c);
43  return *this;
44  }
45 
46  /*inline void setQueryBuilder(QueryBuilder::QueryBuilderShp qb) {
47  _getPtr()->setQueryBuilder(qb);
48  }
49 
50  inline QueryBuilder::QueryBuilderShp const getQueryBuilder() const {
51  return _getPtr()->getQueryBuilder();
52  }*/
53 
54  inline virtual ConnectionType::ConnectionType getType() const {
55  return _getPtr()->getType();
56  }
57 
58  inline virtual void beginTransaction() {
59  _getPtr()->beginTransaction();
60  }
61 
62  inline virtual void commitTransaction() {
63  _getPtr()->commitTransaction();
64  }
65 
66  inline virtual void rollbackTransaction() {
67  _getPtr()->rollbackTransaction();
68  }
69 
70  inline void resetFromNative(OCIEnv* env, OCISvcCtx* ctx) {
71  _getPtr()->resetFromNative(env, ctx);
72  }
73 
74  private:
75  inline ConnectionSpatialDb* _getPtr() {
76  ConnectionSpatialDb* ret = dynamic_cast< ConnectionSpatialDb* >(_ptr.get());
77  if (NULL == ret)
78  throw fire::exception::Exception("Invalid ConnectionSpatialDb pointer");
79 
80  return ret;
81  }
82 
83  inline const ConnectionSpatialDb* _getPtr() const {
84  const ConnectionSpatialDb* ret = dynamic_cast< const ConnectionSpatialDb* >(_ptr.get());
85  if (NULL == ret)
86  throw fire::exception::Exception("Invalid ConnectionSpatialDb pointer");
87 
88  return ret;
89  }
90 };
91 } // namespace shared
92 } // namespace vector
93 } // namespace source
94 } // namespace fire
95 
96 #endif
Specializzazione per connessioni vettoriali su db con supporto spaziale.
Definition: ConnectionSpatialDb.hpp:27
Definition: ConnectionSpatialDbSh.hpp:20
Classe per la gestione di un'eccezione generica.
Definition: Exception.hpp:26
Definition: ConnectionVectorSh.hpp:21