|
OTB
9.0.0
Orfeo Toolbox
|
Go to the documentation of this file.
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)
66 std::string GetName()
const;
74 OGRFieldDefn&
ogr()
const
91 OTBGdalAdapters_EXPORT std::ostream&
operator<<(std::ostream& os, FieldDefn
const& defn);
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;
213 bool UncheckedHasBeenSet()
const;
214 void UncheckedUnset()
const;
215 std::ostream& UncheckedPrintSelf(std::ostream& os, itk::Indent indent)
const;
216 void UncheckedAssign(
Field const& f);
228 void CheckInvariants()
const;
245 #ifndef OTB_MANUAL_INSTANTIATION
249 #endif // otbOGRFieldWrapper_h
Encapsulation of OGRFieldDefn: field definition.
OTBGdalAdapters_EXPORT std::ostream & operator<<(std::ostream &os, FieldDefn const &defn)
OGRFieldDefn * m_Definition
FieldDefn m_Definition
Definition of the field.
std::string GetName() const
Field name accessor.
OTBGdalAdapters_EXPORT bool operator==(Feature const &lhs, Feature const &rhs)
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
OGRFieldDefn & ogr() const
FieldDefn(OGRFieldDefn &definition)
OGRFieldType GetType() const
Field type accessor.
Encapsulation of OGRField Instances of Field are expected to be built from an existing Feature with w...
std::string GetName() const
Field name accessor.
FieldDefn const & GetDefinition() const
Field definition accessor.
Geometric object with descriptive fields.
OGRFieldType GetType() const
Field type accessor.
std::shared_ptr< OGRFeature > & m_Feature
Link to the actual OGRFeature in charge of the fields.