Skip to content
Snippets Groups Projects
Commit d1a9186e authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

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

parent f3939d71
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment