17 #ifndef MITKCUSTOMMIMETYPE_H
18 #define MITKCUSTOMMIMETYPE_H
69 std::string GetCategory()
const;
74 std::vector<std::string> GetExtensions()
const;
79 std::string GetComment()
const;
87 virtual bool AppliesTo(
const std::string &path)
const;
94 bool MatchesExtension(
const std::string &path)
const;
102 std::string GetExtension(
const std::string &path)
const;
110 std::string GetFilenameWithoutExtension(
const std::string &path)
const;
112 void SetName(
const std::string &name);
113 void SetCategory(
const std::string &category);
114 void SetExtension(
const std::string &extension);
115 void AddExtension(
const std::string &extension);
116 void SetComment(
const std::string &comment);
124 bool ParsePathForExtension(
const std::string &path, std::string &extension, std::string &
filename)
const;
135 #endif // MITKCUSTOMMIMETYPE_H
DataCollection - Class to facilitate loading/accessing structured data.
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
static const std::string filename
void swap(CustomMimeType &l, CustomMimeType &r)
The MimeType class represens a registered mime-type. It is an immutable wrapper for mitk::CustomMimeT...
static std::string GetName(std::string fileName, std::string suffix)
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")