Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitk::CollectionWriter Class Reference

#include <mitkCollectionWriter.h>

Static Public Member Functions

static bool ExportCollectionToFolder (DataCollection *dataCollection, std::string xmlFile, std::vector< std::string > filter)
 ExportCollectionToFolder. More...
 
static bool ExportCollectionToFolder (DataCollection *dataCollection, std::string xmlFile)
 
static bool SaveCollection (DataCollection *dataCollection, std::vector< std::string > filter, std::string xmlFile="")
 SaveCollection - Stores data collection at original location. More...
 
static bool FolderToXml (std::string folder, std::string collectionType, std::string xmlFile, std::vector< std::string > filter, std::vector< std::string > seriesNames)
 
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)
 

Detailed Description

Definition at line 22 of file mitkCollectionWriter.h.

Member Function Documentation

◆ ExportCollectionToFolder() [1/2]

static bool mitk::CollectionWriter::ExportCollectionToFolder ( DataCollection dataCollection,
std::string  xmlFile 
)
static

◆ ExportCollectionToFolder() [2/2]

static bool mitk::CollectionWriter::ExportCollectionToFolder ( DataCollection dataCollection,
std::string  xmlFile,
std::vector< std::string >  filter 
)
static

ExportCollectionToFolder.

Creates an XML file and stores all data in the same folder as the xml file (creating sub-folders for sub-collections)

Parameters
dataCollection
xmlFile
filter- (optional) only items with names contained in this list are written, if list is empty all items are written
Returns

◆ FolderToXml()

static bool mitk::CollectionWriter::FolderToXml ( std::string  folder,
std::string  collectionType,
std::string  xmlFile,
std::vector< std::string >  filter,
std::vector< std::string >  seriesNames 
)
static

◆ SaveCollection()

static bool mitk::CollectionWriter::SaveCollection ( DataCollection dataCollection,
std::vector< std::string >  filter,
std::string  xmlFile = "" 
)
static

SaveCollection - Stores data collection at original location.

Writes the collection back to the files given in the original XML file. New data items are stored into the default location, which is relative to the XML file.

If a XML file is provided the files are stored as stated above with the differences that a new XML file is generated and new files are saved relative to the newly generated xml.

Parameters
dataCollection
filter
xmlFile
Returns

◆ SingleFolderToXml()

static bool mitk::CollectionWriter::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 
)
static

The documentation for this class was generated from the following file: