17 #ifndef MITKMIMETYPEPROVIDER_H
18 #define MITKMIMETYPEPROVIDER_H
48 virtual std::vector<MimeType>
GetMimeTypes()
const override;
49 virtual std::vector<MimeType>
GetMimeTypesForFile(
const std::string &filePath)
const override;
53 virtual std::vector<std::string>
GetCategories()
const override;
64 typedef std::map<std::string, std::set<MimeType>> MapType;
65 MapType m_NameToMimeTypes;
67 std::map<std::string, MimeType> m_NameToMimeType;
71 #endif // MITKMIMETYPEPROVIDER_H
DataCollection - Class to facilitate loading/accessing structured data.
virtual MimeType GetMimeTypeForName(const std::string &name) const override
static TrackedType DefaultValue()
virtual std::vector< MimeType > GetMimeTypesForFile(const std::string &filePath) const override
The IMimeTypeProvider service interface allows to query all registered mime types.
virtual std::vector< MimeType > GetMimeTypes() const override
The MimeType class represens a registered mime-type. It is an immutable wrapper for mitk::CustomMimeT...
virtual std::vector< std::string > GetCategories() const override
Get a sorted and unique list of mime-type categories.
static bool IsValid(const TrackedType &t)
virtual std::vector< MimeType > GetMimeTypesForCategory(const std::string &category) const override
static void Dispose(TrackedType &)