13 #ifndef mitkCustomMimeType_h
14 #define mitkCustomMimeType_h
83 virtual bool AppliesTo(
const std::string &path)
const;
120 bool ParsePathForExtension(
const std::string &path, std::string &extension, std::string &filename)
const;
The CustomMimeType class represents a custom mime-type which may be registered as a service object....
bool MatchesExtension(const std::string &path) const
Checks if the MimeType can handle the extension of the given path.
CustomMimeType(const CustomMimeType &other)
std::vector< std::string > GetExtensions() const
Returns all extensions that this MimeType can handle.
virtual CustomMimeType * Clone() const
std::string GetComment() const
Returns the Human readable comment of the MimeType, a string that describes its unique role.
void SetExtension(const std::string &extension)
CustomMimeType(const MimeType &other)
virtual ~CustomMimeType()
void SetCategory(const std::string &category)
std::string GetFilenameWithoutExtension(const std::string &path) const
Provides the filename minus the extension.
void AddExtension(const std::string &extension)
std::string GetCategory() const
Returns the human-readable Category of the mime-type. Allows grouping of similar mime-types (like Sur...
CustomMimeType & operator=(const CustomMimeType &other)
void SetName(const std::string &name)
void Swap(CustomMimeType &r)
std::string GetExtension(const std::string &path) const
Provides the first matching extension.
CustomMimeType(const std::string &name)
void SetComment(const std::string &comment)
std::string GetName() const
Returns the unique name for the MimeType.
CustomMimeType & operator=(const MimeType &other)
virtual bool AppliesTo(const std::string &path) const
Checks if the MimeType can handle file at the given location.
The MimeType class represents a registered mime-type. It is an immutable wrapper for mitk::CustomMime...
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Find image slices visible on a given plane.
void swap(CustomMimeType &l, CustomMimeType &r)