17 #ifndef _QmitkIOUtil__h_
18 #define _QmitkIOUtil__h_
38 #include <QScopedPointer>
69 std::vector<mitk::MimeType> GetMimeTypes()
const;
70 QString GetFilterForMimeType(
const std::string &mimeType)
const;
72 QString GetDefaultFilter()
const;
73 QString GetDefaultExtension()
const;
75 QString ToString()
const;
79 bool ContainsMimeType(
const std::string &mimeType);
83 QScopedPointer<Impl> d;
90 static QString GetFileOpenFilterString();
105 static QList<mitk::BaseData::Pointer> Load(
const QStringList &paths, QWidget *parent = NULL);
109 QWidget *parent = NULL);
111 static QList<mitk::BaseData::Pointer> Load(
const QString &path, QWidget *parent = NULL);
115 QWidget *parent = NULL);
120 const QString &defaultBaseName,
121 const QString &defaultPath = QString(),
122 QWidget *parent = NULL);
182 static QStringList Save(
const std::vector<const mitk::BaseData *> &data,
183 const QStringList &defaultBaseNames,
184 const QString &defaultPath = QString(),
185 QWidget *parent = NULL);
208 std::string fileName =
"",
209 QWidget *parent = NULL));
220 std::string fileName =
"",
221 QWidget *parent = NULL));
232 std::string fileName =
"",
233 QWidget *parent = NULL));
239 #endif // _QmitkIOUtil__h_
static void Save(const mitk::BaseData *data, const std::string &path)
Save a mitk::BaseData instance.
Data management class that handles 'was created by' relations.
itk::SmartPointer< Self > Pointer
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.
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)
Load a file into the given DataStorage.