16 #include <itksys/SystemTools.hxx> 34 <<
" is not an mitk::ContourModelSet. Cannot serialize as contour model set.";
41 filename +=
".cnt_set";
45 fullname += itksys::SystemTools::ConvertToOutputPath(filename.c_str());
54 catch (
const std::exception &e )
56 MITK_ERROR <<
" Error serializing object at " << (
const void *)this->
m_Data <<
" to " << fullname <<
": " std::string m_WorkingDirectory
#define MITK_REGISTER_SERIALIZER(classname)
void SetInput(const BaseData *data) override
Set the input data for writing.
std::string GetUniqueFilenameInWorkingDirectory()
DataCollection - Class to facilitate loading/accessing structured data.
BaseData::ConstPointer m_Data
~ContourModelSetSerializer() override
void SetOutputLocation(const std::string &location) override
Set the output location.
void Write() override
Write the base data to the specified location or output stream.
std::string Serialize() override
Serializes given BaseData object.
std::string m_FilenameHint
XML-based writer for mitk::ContourModelSet.