MCPcopy Create free account
hub / github.com/MITK/MITK / SaveInfo

Method SaveInfo

Modules/Core/src/IO/mitkIOUtil.cpp:993–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991 }
992
993 IOUtil::SaveInfo::SaveInfo(const BaseData *baseData, const MimeType &mimeType, const std::string &path)
994 : m_BaseData(baseData),
995 m_WriterSelector(baseData, mimeType.GetName(), path),
996 m_MimeType(mimeType.IsValid() ? mimeType // use the original mime-type
997 :
998 (m_WriterSelector.IsEmpty() ?
999 mimeType // no writer found, use the original invalid mime-type
1000 :
1001 m_WriterSelector.GetDefault().GetMimeType() // use the found default mime-type
1002 )),
1003 m_Path(path),
1004 m_Cancel(false)
1005 {
1006 }
1007
1008 bool IOUtil::SaveInfo::operator<(const IOUtil::SaveInfo &other) const
1009 {

Callers

nothing calls this directly

Calls 5

GetNameMethod · 0.45
IsValidMethod · 0.45
IsEmptyMethod · 0.45
GetMimeTypeMethod · 0.45
GetDefaultMethod · 0.45

Tested by

no test coverage detected