21 #ifndef otbOGRFieldWrapper_h
22 #define otbOGRFieldWrapper_h
31 #pragma warning(disable : 4251)
37 #include "itkIndent.h"
39 #include "OTBGdalAdaptersExport.h"
63 FieldDefn(OGRFieldDefn& definition) : m_Definition(&definition)
74 OGRFieldDefn&
ogr()
const
136 return m_Definition.GetType();
141 return m_Definition.GetName();
146 bool HasBeenSet()
const;
159 template <
typename T>
160 void SetValue(T
const& value);
172 template <
typename T>
176 std::ostream& PrintSelf(std::ostream& os, itk::Indent indent)
const;
190 void Assign(
Field const& f);
202 OGRField& ogr()
const;
228 void CheckInvariants()
const;
245 #ifndef OTB_MANUAL_INSTANTIATION
Geometric object with descriptive fields.
Encapsulation of OGRFieldDefn: field definition.
OGRFieldDefn & ogr() const
OGRFieldType GetType() const
Field type accessor.
FieldDefn(OGRFieldDefn &definition)
OGRFieldDefn * m_Definition
std::string GetName() const
Field name accessor.
Encapsulation of OGRField Instances of Field are expected to be built from an existing Feature with w...
void UncheckedAssign(Field const &f)
Definition of the field.
Field(Feature &feature, int index)
std::string GetName() const
Field name accessor.
FieldDefn m_Definition
Definition of the field.
bool UncheckedHasBeenSet() const
Definition of the field.
std::shared_ptr< OGRFeature > & m_Feature
Link to the actual OGRFeature in charge of the fields.
void UncheckedUnset() const
Definition of the field.
std::ostream & UncheckedPrintSelf(std::ostream &os, itk::Indent indent) const
Definition of the field.
OGRFieldType GetType() const
Field type accessor.
FieldDefn const & GetDefinition() const
Field definition accessor.
OTBGdalAdapters_EXPORT bool operator==(Feature const &lhs, Feature const &rhs)
OTBGdalAdapters_EXPORT std::ostream & operator<<(std::ostream &os, FieldDefn const &defn)
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.