13 #ifndef _QmitkIOUtil__h_ 14 #define _QmitkIOUtil__h_ 34 #include <QScopedPointer> 65 std::vector<mitk::MimeType> GetMimeTypes()
const;
66 QString GetFilterForMimeType(
const std::string &mimeType)
const;
68 QString GetDefaultFilter()
const;
69 QString GetDefaultExtension()
const;
71 QString ToString()
const;
75 bool ContainsMimeType(
const std::string &mimeType);
79 QScopedPointer<Impl> d;
86 static QString GetFileOpenFilterString();
101 static QList<mitk::BaseData::Pointer> Load(
const QStringList &paths, QWidget *parent =
nullptr);
103 static mitk::DataStorage::SetOfObjects::Pointer Load(
const QStringList &paths,
105 QWidget *parent =
nullptr);
107 static QList<mitk::BaseData::Pointer> Load(
const QString &path, QWidget *parent =
nullptr);
109 static mitk::DataStorage::SetOfObjects::Pointer Load(
const QString &path,
111 QWidget *parent =
nullptr);
116 const QString &defaultBaseName,
117 const QString &defaultPath = QString(),
118 QWidget *parent =
nullptr,
119 bool setPathProperty =
false);
180 static QStringList Save(
const std::vector<const mitk::BaseData *> &data,
181 const QStringList &defaultBaseNames,
182 const QString &defaultPath = QString(),
183 QWidget *parent =
nullptr,
184 bool setPathProperty =
false);
196 DEPRECATED(
static void SaveBaseDataWithDialog(
mitk::BaseData *data, std::string fileName, QWidget *parent =
nullptr));
207 std::string fileName =
"",
208 QWidget *parent =
nullptr));
219 std::string fileName =
"",
220 QWidget *parent =
nullptr));
231 std::string fileName =
"",
232 QWidget *parent =
nullptr));
238 #endif // _QmitkIOUtil__h_
Data management class that handles 'was created by' relations.
Base of all data objects.
DataCollection - Class to facilitate loading/accessing structured data.
QmitkIOUtil Provides static helper methods to open and save files with Qt dialogs.
static void Save(const mitk::BaseData *data, const std::string &path, bool setPathProperty=false)
Save a mitk::BaseData instance.
A utility class to load and save data from/to the local file system.
The MimeType class represens a registered mime-type. It is an immutable wrapper for mitk::CustomMimeT...
static DataStorage::SetOfObjects::Pointer Load(const std::string &path, DataStorage &storage, const ReaderOptionsFunctorBase *optionsCallback=nullptr)
Load a file into the given DataStorage.