4 #ifndef FIRE_PLUGIN_DATA_SHARED_FIELDSH_HPP_INCLUDED
5 #define FIRE_PLUGIN_DATA_SHARED_FIELDSH_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/Field.hpp"
34 explicit FieldSh(
const std::string & name,
const FieldType::FieldType & type,
const bool & nullable,
const bool & isKeyPart,
const int & nativeType = -1): Shared(NULL) {
35 Field* fldPtr =
new Field(name, type, nullable, isKeyPart, nativeType);
49 inline bool isEqualsStricted(
FieldSh const & r)
const {
50 return _getPtr()->isEqualsStricted(r);
53 inline bool operator!=(
FieldSh const & r)
const {
54 return !(this->operator ==(r));
57 inline bool operator==(
FieldSh const & r)
const {
61 if (Shared::operator ==(r))
64 const Field& lFld = *
this;
65 const Field& rFld = r;
69 inline std::string getName()
const {
73 inline FieldType::FieldType getType()
const {
74 return _getPtr()->getType();
77 inline int getNativeType()
const {
78 return _getPtr()->getNativeType();
81 inline bool isNullable()
const {
82 return _getPtr()->isNullable();
85 inline bool isKeyPart()
const {
86 return _getPtr()->isKeyPart();
89 inline void setName(std::string
const & name) {
90 _getPtr()->setName(name);
93 inline void setType(FieldType::FieldType
const & ft) {
94 _getPtr()->setType(ft);
97 inline void setNullable(
bool const & nullable) {
98 _getPtr()->setNullable(nullable);
101 inline void setKeyPart(
bool const & keypart) {
102 _getPtr()->setKeyPart(keypart);
106 _getPtr()->addExtraParam(
id, val);
110 return _getPtr()->getExtraParam(
id);
114 return _getPtr()->existsExtraParam(
id);
Definition: FieldSh.hpp:21
std::string getName() const
Restituisce il nome del campo.
Definition: Shared.hpp:17
ExtraParamFieldType
Chiavi dei parametri descrittivi extra impostabili sul Field.
Definition: Field.hpp:35