Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkCollectionWriter.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 mitkCollectionWriter_h
14 #define mitkCollectionWriter_h
15 
16 //#include "mitkCommon.h"
17 #include "mitkDataCollection.h"
18 #include "mitkCollectionReader.h"
20 
21 namespace mitk {
23  {
24  public:
35  static bool ExportCollectionToFolder(DataCollection* dataCollection, std::string xmlFile , std::vector<std::string> filter);
36 
37  static bool ExportCollectionToFolder(DataCollection* dataCollection, std::string xmlFile);
38 
54  static bool SaveCollection(DataCollection* dataCollection, std::vector<std::string> filter, std::string xmlFile = "");
55 
56  static bool FolderToXml(std::string folder, std::string collectionType, std::string xmlFile, std::vector<std::string> filter, std::vector<std::string> seriesNames);
57 
58  // GTV last entry in filter list, this item will be made to TARGET
59  static bool SingleFolderToXml(std::string folder, std::string xmlFile, std::vector<std::string> filter, std::vector<std::string> seriesNames, bool longDate = true, int skipUntil = 0, float months = 0);
60 
61  protected:
62 
63  private:
64 
65  static size_t GetIndexForinXMonths(CollectionReader::FileListType fileList, float months, size_t curIndex, std::vector<std::string> filter);
66  };
67 } // namespace mitk
68 
69 #endif
mitk::CollectionWriter
Definition: mitkCollectionWriter.h:22
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitkCollectionReader.h
mitkDataCollection.h
mitk::DataCollection
Definition: mitkDataCollection.h:54
mitk::CollectionReader::FileListType
std::vector< std::vector< std::string > > FileListType
Definition: mitkCollectionReader.h:28
MitkDataCollectionExports.h
MITKDATACOLLECTION_EXPORT
#define MITKDATACOLLECTION_EXPORT
Definition: MitkDataCollectionExports.h:15