4 #ifndef FIRE_PLUGIN_DATA_SHARED_METADATASH_HPP_INCLUDED
5 #define FIRE_PLUGIN_DATA_SHARED_METADATASH_HPP_INCLUDED
7 #include <boost/shared_ptr.hpp>
8 #include <fire/shared/Shared.hpp>
13 #include "fire/gis/export.hpp"
14 #include "fire/source/vector/Buffer.hpp"
15 #include "fire/source/vector/Metadata.hpp"
37 MetadataSh(
const std::string& db,
const std::string& schema,
const std::string& tbl): Shared(NULL) {
46 inline bool operator!=(
MetadataSh const & r)
const {
47 return !(this->operator ==(r));
50 inline bool operator==(
MetadataSh const & r)
const {
54 bool same = Shared::operator ==(r);
64 inline bool isEqualsStricted(
MetadataSh const & r)
const {
68 bool same = Shared::operator ==(r);
72 return _getPtr()->isEqualsStricted(r);
75 inline void getSource(std::string& db, std::string& schema, std::string& tbl)
const {
76 _getPtr()->getSource(db, schema, tbl);
79 inline void setSource(std::string
const & db, std::string
const & schema, std::string
const & tbl) {
80 _getPtr()->setSource(db, schema, tbl);
84 return _getPtr()->add(fld);
88 return _getPtr()->del(name);
92 return _getPtr()->del(idx);
95 inline size_t getCount()
const {
96 return _getPtr()->getCount();
99 inline int nameToIndex(
const std::string& name)
const {
100 return _getPtr()->nameToIndex(name);
103 inline std::string indexToName(
const int& idx)
const {
104 return _getPtr()->indexToName(idx);
107 inline void getKeyColumns(Metadata::VctFldName & list)
const {
108 return _getPtr()->getKeyColumns(list);
111 inline void getGeometryColumns(Metadata::VctFldName & list)
const {
112 return _getPtr()->getGeometryColumns(list);
116 return _getPtr()->get(name);
120 return _getPtr()->get(name);
124 return _getPtr()->get(idx);
128 return _getPtr()->get(idx);
Definition: FieldSh.hpp:21
Definition: Shared.hpp:17