22 #include <itksys/SystemTools.hxx>
44 MITK_ERROR <<
" Object at " << (
const void*) this->m_Data
45 <<
" is not an mitk::PlanarFigureComposite. Cannot serialize as PlanarFigureComposite.";
49 std::string
filename( this->GetUniqueFilenameInWorkingDirectory() );
51 filename += m_FilenameHint;
54 std::string fullname(m_WorkingDirectory);
56 fullname += itksys::SystemTools::ConvertToOutputPath(filename.c_str());
62 catch (std::exception& e)
64 MITK_ERROR <<
" Error serializing object at " << (
const void*) this->m_Data
static void Save(const mitk::BaseData *data, const std::string &path)
Save a mitk::BaseData instance.
#define MITK_REGISTER_SERIALIZER(classname)
DataCollection - Class to facilitate loading/accessing structured data.
static const std::string filename