Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkExampleIOMimeTypes.h
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 #ifndef MITKEXAMPLEIOMIMETYPES_H
18 #define MITKEXAMPLEIOMIMETYPES_H
19 
20 #include "mitkCustomMimeType.h"
21 
22 #include <string>
23 
24 namespace mitk
25 {
27  {
28  public:
29  // Deriving your own MimeType will probably be overkill in most situations.
31  {
32  public:
34  virtual bool AppliesTo(const std::string &path) const override;
35  virtual ExampleDataStructureMimeType *Clone() const override;
36  };
37 
39  static std::string EXAMPLE_MIMETYPE_NAME();
40 
41  // Simpler method of creating a new MimeType
43  static std::string EXAMPLE_TWO_MIMETYPE_NAME();
44 
45  // Get all example Mime Types
46  static std::vector<CustomMimeType *> Get();
47 
48  private:
49  // purposely not implemented
52  };
53 }
54 
55 #endif // MITKEXAMPLEIOMIMETYPES_H
static CustomMimeType EXAMPLE_TWO_MIMETYPE()
DataCollection - Class to facilitate loading/accessing structured data.
static ExampleDataStructureMimeType EXAMPLE_MIMETYPE()
static std::string EXAMPLE_TWO_MIMETYPE_NAME()
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
virtual bool AppliesTo(const std::string &path) const override
Checks if the MimeType can handle file at the given location.
static std::vector< CustomMimeType * > Get()
virtual ExampleDataStructureMimeType * Clone() const override
static std::string EXAMPLE_MIMETYPE_NAME()