Skip to content
Snippets Groups Projects
Commit a284ab08 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH : implement HasValue() method for OutputImageParamter

parent 2247d46c
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,13 @@ OutputImageParameter::SetValue(VectorImageType* image)
m_Image = image;
}
bool
OutputImageParameter::HasValue() const
{
std::string filename(this->GetFileName());
return !filename.empty();
}
}
}
......@@ -59,6 +59,9 @@ public:
/** Return any value */
VectorImageType* GetValue( void );
/** Return true if a filename is set */
bool HasValue() const;
itkSetStringMacro(FileName);
itkGetStringMacro(FileName);
itkGetObjectMacro(Writer, WriterType);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment