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

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

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