Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 // MITK
14 #include "mitkIGTMimeTypes.h"
15 
17 {
18  mitk::CustomMimeType mimeType(IOMimeTypes::DEFAULT_BASE_NAME() + ".NavigationDataSet.xml");
19  std::string category = "NavigationDataSet";
20  mimeType.SetComment("NavigationDataSet (XML)");
21  mimeType.SetCategory(category);
22  mimeType.AddExtension("xml");
23  return mimeType;
24 }
25 
27 {
28  mitk::CustomMimeType mimeType(IOMimeTypes::DEFAULT_BASE_NAME() + ".NavigationDataSet.csv");
29  std::string category = "NavigationDataSet";
30  mimeType.SetComment("NavigationDataSet (csv)");
31  mimeType.SetCategory(category);
32  mimeType.AddExtension("csv");
33  return mimeType;
34 }
35 
37 {
38  mitk::CustomMimeType mimeType(IOMimeTypes::DEFAULT_BASE_NAME() + ".USDeviceInformation.xml");
39  std::string category = "USDeviceInformation";
40  mimeType.SetComment("USDeviceInformation (XML)");
41  mimeType.SetCategory(category);
42  mimeType.AddExtension("xml");
43  return mimeType;
44 }
static CustomMimeType USDEVICEINFORMATIONXML_MIMETYPE()
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()