Medical Imaging Interaction Toolkit  2021.10.99-888ff917
Medical Imaging Interaction Toolkit
mitkNavigationDataReaderXML.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 
14 #ifndef MITKNavigationDataReaderXML_H_HEADER_INCLUDED_
15 #define MITKNavigationDataReaderXML_H_HEADER_INCLUDED_
16 
17 #include <MitkIGTIOExports.h>
18 
19 #include <mitkAbstractFileReader.h>
20 #include <mitkNavigationDataSet.h>
21 // includes for exceptions
22 #include <mitkIGTException.h>
23 #include <mitkIGTIOException.h>
24 
25 namespace mitk {
26 
28  {
29  public:
31  ~NavigationDataReaderXML() override;
32 
34 
35  protected:
36  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
37 
39  mitk::NavigationDataReaderXML* Clone() const override;
40 
41  std::string m_FileName;
42 
43  private:
44  NavigationDataSet::Pointer Read(std::istream& stream);
45  NavigationDataSet::Pointer Read(const std::string& fileName);
46  };
47 
48 } // namespace mitk
49 
50 #endif // MITKNavigationDataReaderXML_H_HEADER_INCLUDED_
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKIGTIO_EXPORT
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
Base class for creating mitk::BaseData objects from files or streams.