13 #ifndef MITKCUSTOMMIMETYPE_H 14 #define MITKCUSTOMMIMETYPE_H 60 std::string GetName()
const;
65 std::string GetCategory()
const;
70 std::vector<std::string> GetExtensions()
const;
75 std::string GetComment()
const;
83 virtual bool AppliesTo(
const std::string &path)
const;
90 bool MatchesExtension(
const std::string &path)
const;
98 std::string GetExtension(
const std::string &path)
const;
106 std::string GetFilenameWithoutExtension(
const std::string &path)
const;
108 void SetName(
const std::string &name);
109 void SetCategory(
const std::string &category);
110 void SetExtension(
const std::string &extension);
111 void AddExtension(
const std::string &extension);
112 void SetComment(
const std::string &comment);
120 bool ParsePathForExtension(
const std::string &path, std::string &extension, std::string &filename)
const;
131 #endif // MITKCUSTOMMIMETYPE_H #define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
DataCollection - Class to facilitate loading/accessing structured data.
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
void swap(CustomMimeType &l, CustomMimeType &r)
The MimeType class represens a registered mime-type. It is an immutable wrapper for mitk::CustomMimeT...