Commit 5525c4ad authored by Stéphane Albert's avatar Stéphane Albert

ENH: Added missing ImageKeywordList::operator!=().

parent a3eede16
......@@ -127,7 +127,9 @@ public:
ImageKeywordlist(const Self &);
void operator =(const Self&);
bool operator ==(const Self&);
bool operator ==(const Self&) const;
inline bool operator != ( const Self & ) const;
protected:
/** Methods invoked by Print() to print information about the object
......@@ -154,6 +156,14 @@ ImageKeywordlist ReadGeometryFromGEOMFile(const std::string& filename);
ImageKeywordlist ReadGeometryFromRPCTag(const std::string& filename);
void WriteGeometry(const ImageKeywordlist& otb_kwl, const std::string& filename);
inline
bool
ImageKeywordlist
::operator !=( const Self & p ) const
{
return !this->operator == ( p );
}
} //namespace otb
#endif // __otbImageKeywordlist_h
......@@ -59,8 +59,8 @@ operator =(const Self& p)
}
bool
ImageKeywordlist::
operator ==(const Self& p)
ImageKeywordlist
::operator ==(const Self& p) const
{
return m_Keywordlist == p.m_Keywordlist;
}
......
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