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
DataSetSh.hpp
1 // Copyright © 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef FIRE_PLUGIN_DATA_SHARED_DATASETSH_HPP_INCLUDED
5 #define FIRE_PLUGIN_DATA_SHARED_DATASETSH_HPP_INCLUDED
6 
7 #include <boost/shared_ptr.hpp>
8 #include <fire/shared/Shared.hpp>
9 
10 #include <exception>
11 
12 #include "fire/gis/export.hpp"
13 #include "fire/source/vector/DataSet.hpp"
14 #include "fire/source/vector/shared/DataRowSh.hpp"
15 
16 namespace fire {
17 namespace source {
18 namespace vector {
19 namespace shared {
20 
21 class FIRE_GIS_DLL DataSetSh: public fire::shared::Shared< DataSet > {
22  public:
23  explicit DataSetSh(DataSet* ptr): Shared(ptr) {
24  }
25  DataSetSh(DataSetSh const & c) {
26  this->operator =(c);
27  }
28 
29  DataRow::DataRowShp next() {
30  return _getPtr()->next();
31  }
32 
33  DataRow::DataRowShp const next() const {
34  return _getPtr()->next();
35  }
36 
37  bool reset() const {
38  return _getPtr()->reset();
39  }
40 
41  const DataRow::DataRowShp current() const {
42  return _getPtr()->current();
43  }
44 
45  DataRow::DataRowShp current() {
46  return _getPtr()->current();
47  }
48 
49  Metadata::MetadataShp const getMetadata() const {
50  return _getPtr()->getMetadata();
51  }
52 
53  DataRow::DataRowShp createEmptyRow() const {
54  return _getPtr()->createEmptyRow();
55  }
56 };
57 
58 } // namespace shared
59 } // namespace vector
60 } // namespace source
61 } // namespace fire
62 
63 #endif
Definition: DataSetSh.hpp:21
Oggetto responsabile dell'accesso ai dati estratti da una sorgente. Ogni istanza di questo oggetto pu...
Definition: DataSet.hpp:26
Definition: DataRowSh.hpp:22
Definition: MetadataSh.hpp:22
Definition: Shared.hpp:17