Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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
mitk::ExampleIOMimeTypes::ExampleDataStructureMimeType::AppliesTo
bool AppliesTo(const std::string &path) const override
Checks if the MimeType can handle file at the given location.
mitk::ExampleIOMimeTypes::ExampleDataStructureMimeType
Definition: mitkExampleIOMimeTypes.h:26
mitk::ExampleIOMimeTypes
Definition: mitkExampleIOMimeTypes.h:22
mitk::CustomMimeType
The CustomMimeType class represents a custom mime-type which may be registered as a service object....
Definition: mitkCustomMimeType.h:44
mitkCustomMimeType.h
mitk::ExampleIOMimeTypes::EXAMPLE_MIMETYPE_NAME
static std::string EXAMPLE_MIMETYPE_NAME()
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ExampleIOMimeTypes::ExampleDataStructureMimeType::Clone
ExampleDataStructureMimeType * Clone() const override
mitk::ExampleIOMimeTypes::EXAMPLE_TWO_MIMETYPE
static CustomMimeType EXAMPLE_TWO_MIMETYPE()
mitk::ExampleIOMimeTypes::ExampleDataStructureMimeType::ExampleDataStructureMimeType
ExampleDataStructureMimeType()
mitk::ExampleIOMimeTypes::EXAMPLE_TWO_MIMETYPE_NAME
static std::string EXAMPLE_TWO_MIMETYPE_NAME()
mitk::ExampleIOMimeTypes::Get
static std::vector< CustomMimeType * > Get()
mitk::ExampleIOMimeTypes::EXAMPLE_MIMETYPE
static ExampleDataStructureMimeType EXAMPLE_MIMETYPE()