Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
The MimeType class represens 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 represens 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 45 of file mitkMimeType.h.
mitk::MimeType::MimeType | ( | ) |
Definition at line 35 of file mitkMimeType.cpp.
mitk::MimeType::MimeType | ( | const MimeType & | other | ) |
Definition at line 36 of file mitkMimeType.cpp.
mitk::MimeType::MimeType | ( | const CustomMimeType & | x, |
int | rank, | ||
long | id | ||
) |
Definition at line 37 of file mitkMimeType.cpp.
mitk::MimeType::~MimeType | ( | ) |
Definition at line 38 of file mitkMimeType.cpp.
bool mitk::MimeType::AppliesTo | ( | const std::string & | path | ) | const |
mitk::CustomMimeType::AppliesTo()
Definition at line 64 of file mitkMimeType.cpp.
std::string mitk::MimeType::GetCategory | ( | ) | const |
mitk::CustomMimeType::GetCategory()
Definition at line 56 of file mitkMimeType.cpp.
Referenced by mitk::CustomMimeType::CustomMimeType(), and mitk::operator<<().
std::string mitk::MimeType::GetComment | ( | ) | const |
mitk::CustomMimeType::GetComment()
Definition at line 58 of file mitkMimeType.cpp.
Referenced by mitk::CustomMimeType::CustomMimeType(), and mitk::operator<<().
std::vector< std::string > mitk::MimeType::GetExtensions | ( | ) | const |
mitk::CustomMimeType::GetExtensions()
Definition at line 57 of file mitkMimeType.cpp.
Referenced by mitk::CustomMimeType::CustomMimeType(), mitk::operator<<(), QmitkIOUtil::Save(), and mitk::IOUtil::Save().
std::string mitk::MimeType::GetFilenameWithoutExtension | ( | const std::string & | path | ) | const |
mitk::CustomMimeType::GetFileNameWithoutExtension()
Definition at line 59 of file mitkMimeType.cpp.
std::string mitk::MimeType::GetName | ( | ) | const |
mitk::CustomMimeType::GetName()
Definition at line 55 of file mitkMimeType.cpp.
Referenced by mitk::CustomMimeType::CustomMimeType(), mitk::FileReaderRegistry::GetReferences(), mitk::IOUtil::Load(), mitk::operator<<(), operator==(), QmitkFileWriterOptionsDialog::QmitkFileWriterOptionsDialog(), QmitkIOUtil::Save(), and mitk::IOUtil::Save().
bool mitk::MimeType::IsValid | ( | ) | const |
mitk::CustomMimeType::IsValid()
Definition at line 70 of file mitkMimeType.cpp.
References us::SharedDataPointer< T >::Data().
Referenced by mitk::FileWriterSelector::FileWriterSelector(), mitk::FileReaderRegistry::GetReaders(), mitk::MimeTypeTrackerTypeTraits::IsValid(), QmitkIOUtil::Save(), and mitk::IOUtil::Save().
bool mitk::MimeType::MatchesExtension | ( | const std::string & | path | ) | const |
mitk::CustomMimeType::MatchesExtension()
Definition at line 65 of file mitkMimeType.cpp.
bool mitk::MimeType::operator< | ( | const MimeType & | other | ) | const |
Definition at line 46 of file mitkMimeType.cpp.
Definition at line 39 of file mitkMimeType.cpp.
bool mitk::MimeType::operator== | ( | const MimeType & | other | ) | const |
Definition at line 45 of file mitkMimeType.cpp.
References GetName().
void mitk::MimeType::Swap | ( | MimeType & | m | ) |
Definition at line 76 of file mitkMimeType.cpp.
References us::SharedDataPointer< T >::Swap().
Referenced by mitk::swap().