Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::MimeType Class Reference

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 ()
 
MimeTypeoperator= (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)
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

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

mitk::CustomMimeType::GetFileNameWithoutExtension()

Definition at line 59 of file mitkMimeType.cpp.

bool mitk::MimeType::MatchesExtension ( const std::string &  path) const
bool mitk::MimeType::operator< ( const MimeType other) const

Definition at line 46 of file mitkMimeType.cpp.

MimeType & mitk::MimeType::operator= ( const MimeType other)

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)

The documentation for this class was generated from the following files: