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
VectorLayerInfoQt.hpp
1 // Copyright 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 #ifndef FIRE_CONNECTION_QT_VECTORLAYERINFOQT_HPP_INCLUDED
4 #define FIRE_CONNECTION_QT_VECTORLAYERINFOQT_HPP_INCLUDED
5 
6 #include <boost/thread/mutex.hpp>
7 #include <fire/source/vector/VectorLayerInfo.hpp>
8 #include <fire/source/vector/VectorLayerType.hpp>
9 
10 #include <string>
11 
12 #include "fire/plugin-impl/connection/qt/ConnectionQtSql.hpp"
13 
14 namespace fire {
15 namespace connection {
16 namespace qt {
17 
19  public:
20  VectorLayerInfoQt(const std::string& name, const std::string& schema, const std::string& dbName, const source::vector::VectorLayerType::VectorLayerType & t);
21  virtual ~VectorLayerInfoQt();
22  virtual gear::geom::Envelope::EnvelopeShp getExtent(const int &srid) const;
23  virtual void getExtent(VctEnvelope & list, const int & srid = gear::projection::ProjectionsManager::UnknownSrid) const;
24  virtual gear::geom::Envelope::EnvelopeShp getExtent(const std::string & geomFld, const int & srid = gear::projection::ProjectionsManager::UnknownSrid) const;
25  virtual std::string getName() const;
26  virtual std::string getSchema() const;
27  virtual source::vector::VectorLayerType::VectorLayerType getType() const;
29  virtual int getSrid(const std::string& geomFld) const;
30  virtual size_t getCount() const;
31 
32  protected:
33  ConnectionQtSql::ConnectionQtSqlShp const _getConnectionNoWait() const;
34 
35  std::string _name;
36  std::string _schema;
37  std::string _cnnName;
38  source::vector::VectorLayerType::VectorLayerType _type;
39 
40  mutable boost::mutex _mtx;
41  mutable source::vector::Metadata::MetadataShp _mtd; // definito mutable per consentire la "lazy initialization"
42 
43  private:
44  VectorLayerInfoQt(VectorLayerInfoQt const & source);
45  VectorLayerInfoQt& operator=(VectorLayerInfoQt const & source);
46 };
47 
48 } // namespace qt
49 } // namespace connection
50 } // namespace fire
51 
52 #endif
virtual source::vector::VectorLayerType::VectorLayerType getType() const
Definition: EnvelopeSh.hpp:18
virtual std::string getName() const
Definition: ConnectionQtSqlSh.hpp:21
Definition: VectorLayerInfo.hpp:31
Definition: MetadataSh.hpp:22
virtual int getSrid(const std::string &geomFld) const
virtual gear::geom::Envelope::EnvelopeShp getExtent(const int &srid) const
Permette di estrarre l'unione degli extent di tutte le colonne spaziali presenti nel livello (eventua...
static const int UnknownSrid
Identificativo del sistema di riferimento sconosciuto.
Definition: ProjectionsManager.hpp:100
virtual size_t getCount() const
getCount
virtual std::string getSchema() const
Definition: VectorLayerInfoQt.hpp:18
virtual source::vector::Metadata::MetadataShp const getMetadata() const