Medical Imaging Interaction Toolkit  2018.4.99-7e02155b
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 36 of file mitkMimeType.h.

Constructor & Destructor Documentation

◆ MimeType() [1/3]

mitk::MimeType::MimeType ( )

◆ MimeType() [2/3]

mitk::MimeType::MimeType ( const MimeType other)

◆ MimeType() [3/3]

mitk::MimeType::MimeType ( const CustomMimeType x,
int  rank,
long  id 
)

◆ ~MimeType()

mitk::MimeType::~MimeType ( )

Member Function Documentation

◆ AppliesTo()

bool mitk::MimeType::AppliesTo ( const std::string &  path) const

◆ GetCategory()

std::string mitk::MimeType::GetCategory ( ) const

◆ GetComment()

std::string mitk::MimeType::GetComment ( ) const

◆ GetExtensions()

std::vector<std::string> mitk::MimeType::GetExtensions ( ) const

◆ GetFilenameWithoutExtension()

std::string mitk::MimeType::GetFilenameWithoutExtension ( const std::string &  path) const

mitk::CustomMimeType::GetFileNameWithoutExtension()

◆ GetName()

std::string mitk::MimeType::GetName ( ) const

◆ IsValid()

bool mitk::MimeType::IsValid ( ) const

mitk::CustomMimeType::IsValid()

Referenced by mitk::MimeTypeTrackerTypeTraits::IsValid().

◆ MatchesExtension()

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

◆ operator<()

bool mitk::MimeType::operator< ( const MimeType other) const

◆ operator=()

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

◆ operator==()

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

◆ Swap()

void mitk::MimeType::Swap ( MimeType m)

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