Medical Imaging Interaction Toolkit  2016.11.0
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,
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 #ifdef _MSC_VER
18 #pragma warning(disable : 4786)
19 #endif
20 
21 #include "mitkBaseDataIOFactory.h"
22 
23 #include "mitkIOUtil.h"
24 
25 namespace mitk
26 {
27  std::vector<BaseData::Pointer> BaseDataIO::LoadBaseDataFromFile(const std::string path,
28  const std::string /*filePrefix*/,
29  const std::string /*filePattern*/,
30  bool /*series*/)
31  {
32  return IOUtil::Load(path);
33  }
34 
35 } // 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)
Load a file into the given DataStorage.
Definition: mitkIOUtil.cpp:483