Commit 89d54e26 authored by Julien Michel's avatar Julien Michel

COMP: Remove itkTypeMacro (not an itk derived object) and use the GenericExceptionMacro accordingly

parent 9e06bc36
...@@ -82,9 +82,6 @@ public: ...@@ -82,9 +82,6 @@ public:
typedef std::map<std::string, std::string> KeywordlistMap; typedef std::map<std::string, std::string> KeywordlistMap;
/** Run-time type information (and related methods). */
itkTypeMacro(ImageKeywordlist, ImageKeywordlist);
/** Get the internal map container */ /** Get the internal map container */
const KeywordlistMap& GetKeywordlist() const const KeywordlistMap& GetKeywordlist() const
{ {
......
...@@ -90,7 +90,7 @@ GetMetadataByKey(const std::string& key) const ...@@ -90,7 +90,7 @@ GetMetadataByKey(const std::string& key) const
// If the key can not be found, throw an exception // If the key can not be found, throw an exception
if (it == m_Keywordlist.end()) if (it == m_Keywordlist.end())
{ {
itkExceptionMacro(<< "Keywordlist has no output with key " << key); itkGenericExceptionMacro(<< "Keywordlist has no output with key " << key);
} }
// Then if everything is ok, return the ossinString // Then if everything is ok, return the ossinString
......
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