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
VectorLayerInfoSh.hpp
1 // Copyright © 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef FIRE_PLUGIN_DATA_SHARED_VECTORLAYERINFOSH_HPP_INCLUDED
5 #define FIRE_PLUGIN_DATA_SHARED_VECTORLAYERINFOSH_HPP_INCLUDED
6 
7 #include <boost/shared_ptr.hpp>
8 #include <fire/shared/Shared.hpp>
9 #include <fire/gear/geom/shared/EnvelopeSh.hpp>
10 
11 #include <string>
12 #include <exception>
13 
14 #include "fire/gis/export.hpp"
15 #include "fire/source/vector/VectorLayerInfo.hpp"
16 #include "fire/source/vector/shared/MetadataSh.hpp"
17 
18 namespace fire {
19 namespace source {
20 namespace vector {
21 namespace shared {
22 
23 class FIRE_GIS_DLL VectorLayerInfoSh: public fire::shared::Shared< VectorLayerInfo > {
24  public:
25  explicit VectorLayerInfoSh(VectorLayerInfo* ptr): Shared(ptr) {
26  }
27 
29  this->operator =(c);
30  }
31 
32  inline gear::geom::Envelope::EnvelopeShp getExtent(const int &srid) const {
33  return _getPtr()->getExtent(srid);
34  }
35 
36  inline void getExtent(VectorLayerInfo::VctEnvelope & list) const {
37  return _getPtr()->getExtent(list);
38  }
39 
40  inline gear::geom::Envelope::EnvelopeShp getExtent(const std::string & geomFld) const {
41  return _getPtr()->getExtent(geomFld);
42  }
43 
44  inline std::string getName() const {
45  return _getPtr()->getName();
46  }
47 
48  inline std::string getSchema() const {
49  return _getPtr()->getSchema();
50  }
51 
52  inline VectorLayerType::VectorLayerType getType() const {
53  return _getPtr()->getType();
54  }
55 
56  inline Metadata::MetadataShp const getMetadata() const {
57  return _getPtr()->getMetadata();
58  }
59 
60  inline int getSrid(const std::string& geomFld) const {
61  return _getPtr()->getSrid(geomFld);
62  }
63 
64  inline size_t getCount() const {
65  return _getPtr()->getCount();
66  }
67 };
68 
69 } // namespace shared
70 } // namespace vector
71 } // namespace source
72 } // namespace fire
73 
74 #endif
Definition: EnvelopeSh.hpp:18
Definition: VectorLayerInfo.hpp:31
Definition: MetadataSh.hpp:22
Definition: Shared.hpp:17
Definition: VectorLayerInfoSh.hpp:23