Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIGTMimeTypes.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 // MITK
18 #include "mitkIGTMimeTypes.h"
19 
21 {
22  mitk::CustomMimeType mimeType(IOMimeTypes::DEFAULT_BASE_NAME() + ".NavigationDataSet.xml");
23  std::string category = "NavigationDataSet";
24  mimeType.SetComment("NavigationDataSet (XML)");
25  mimeType.SetCategory(category);
26  mimeType.AddExtension("xml");
27  return mimeType;
28 }
29 
31 {
32  mitk::CustomMimeType mimeType(IOMimeTypes::DEFAULT_BASE_NAME() + ".NavigationDataSet.csv");
33  std::string category = "NavigationDataSet";
34  mimeType.SetComment("NavigationDataSet (csv)");
35  mimeType.SetCategory(category);
36  mimeType.AddExtension("csv");
37  return mimeType;
38 }
void SetComment(const std::string &comment)
static CustomMimeType NAVIGATIONDATASETXML_MIMETYPE()
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
static std::string DEFAULT_BASE_NAME()
void AddExtension(const std::string &extension)
void SetCategory(const std::string &category)
static CustomMimeType NAVIGATIONDATASETCSV_MIMETYPE()