Commit d1a9186e authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: #1989: expose Feature::GetFieldIndex()

parent f3939d71
......@@ -247,6 +247,11 @@ public:
* \sa \c OGRFeature::GetFieldDefnRef()
*/
FieldDefn GetFieldDefn(std::string const& name) const;
/** Searches the index of a field given a name.
* \invariant <tt>m_Feature != 0</tt>
* \throw itk::ExceptionObject if no field named \c name exists.
*/
int GetFieldIndex(std::string const& name) const;
//@}
/**\name Geometries
......@@ -351,12 +356,6 @@ private:
void UncheckedSetGeometry(OGRGeometry const* geometry);
//@}
/** Searches the index of a field given a name.
* \invariant <tt>m_Feature != 0</tt>
* \throw itk::ExceptionObject if no field named \c name exists.
*/
int GetFieldIndex(std::string const& name) const;
/**
* Checks whether the internal \c OGRFeature is non null.
* Fires an assertion otherwise.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment