Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkBaseDataIOFactory.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 #ifdef _MSC_VER
14 #pragma warning(disable : 4786)
15 #endif
16 
17 #include "mitkBaseDataIOFactory.h"
18 
19 #include "mitkIOUtil.h"
20 
21 namespace mitk
22 {
23  std::vector<BaseData::Pointer> BaseDataIO::LoadBaseDataFromFile(const std::string path,
24  const std::string /*filePrefix*/,
25  const std::string /*filePattern*/,
26  bool /*series*/)
27  {
28  return IOUtil::Load(path);
29  }
30 
31 } // end namespace itk
DataCollection - Class to facilitate loading/accessing structured data.
static std::vector< mitk::BaseData::Pointer > LoadBaseDataFromFile(const std::string path, const std::string filePrefix, const std::string filePattern, bool series)
static DataStorage::SetOfObjects::Pointer Load(const std::string &path, DataStorage &storage, const ReaderOptionsFunctorBase *optionsCallback=nullptr)
Load a file into the given DataStorage.
Definition: mitkIOUtil.cpp:489