Medical Imaging Interaction Toolkit  2018.4.99-87d68d9f
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 (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 #ifndef MITKEXAMPLEIOMIMETYPES_H
14 #define MITKEXAMPLEIOMIMETYPES_H
15 
16 #include "mitkCustomMimeType.h"
17 
18 #include <string>
19 
20 namespace mitk
21 {
23  {
24  public:
25  // Deriving your own MimeType will probably be overkill in most situations.
27  {
28  public:
30  bool AppliesTo(const std::string &path) const override;
31  ExampleDataStructureMimeType *Clone() const override;
32  };
33 
35  static std::string EXAMPLE_MIMETYPE_NAME();
36 
37  // Simpler method of creating a new MimeType
39  static std::string EXAMPLE_TWO_MIMETYPE_NAME();
40 
41  // Get all example Mime Types
42  static std::vector<CustomMimeType *> Get();
43 
44  private:
45  // purposely not implemented
48  };
49 }
50 
51 #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...
bool AppliesTo(const std::string &path) const override
Checks if the MimeType can handle file at the given location.
static std::vector< CustomMimeType * > Get()
ExampleDataStructureMimeType * Clone() const override
static std::string EXAMPLE_MIMETYPE_NAME()