Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
The MimeType class represents a registered mime-type. It is an immutable wrapper for mitk::CustomMimeType that makes memory handling easier by providing a stack-object for the user. More...
#include <mitkMimeType.h>
Public Member Functions | |
MimeType () | |
MimeType (const MimeType &other) | |
MimeType (const CustomMimeType &x, int rank, long id) | |
~MimeType () | |
MimeType & | operator= (const MimeType &other) |
bool | operator== (const MimeType &other) const |
bool | operator< (const MimeType &other) const |
std::string | GetName () const |
std::string | GetCategory () const |
std::vector< std::string > | GetExtensions () const |
std::string | GetComment () const |
std::string | GetFilenameWithoutExtension (const std::string &path) const |
bool | AppliesTo (const std::string &path) const |
bool | MatchesExtension (const std::string &path) const |
bool | IsValid () const |
void | Swap (MimeType &m) |
The MimeType class represents a registered mime-type. It is an immutable wrapper for mitk::CustomMimeType that makes memory handling easier by providing a stack-object for the user.
If you want to register a new MimeType, use the CustomMimeType class instead. Wrapping will be performed for you automatically. In all other cases you should use mitk::MimeType when working with mime-types.
Definition at line 36 of file mitkMimeType.h.
mitk::MimeType::MimeType | ( | ) |
mitk::MimeType::MimeType | ( | const MimeType & | other | ) |
mitk::MimeType::MimeType | ( | const CustomMimeType & | x, |
int | rank, | ||
long | id | ||
) |
mitk::MimeType::~MimeType | ( | ) |
bool mitk::MimeType::AppliesTo | ( | const std::string & | path | ) | const |
std::string mitk::MimeType::GetCategory | ( | ) | const |
std::string mitk::MimeType::GetComment | ( | ) | const |
std::vector<std::string> mitk::MimeType::GetExtensions | ( | ) | const |
std::string mitk::MimeType::GetFilenameWithoutExtension | ( | const std::string & | path | ) | const |
std::string mitk::MimeType::GetName | ( | ) | const |
bool mitk::MimeType::IsValid | ( | ) | const |
Referenced by mitk::MimeTypeTrackerTypeTraits::IsValid().
bool mitk::MimeType::MatchesExtension | ( | const std::string & | path | ) | const |
bool mitk::MimeType::operator< | ( | const MimeType & | other | ) | const |
bool mitk::MimeType::operator== | ( | const MimeType & | other | ) | const |
void mitk::MimeType::Swap | ( | MimeType & | m | ) |