17 #ifndef MITK_COLLECTION_READER_H
18 #define MITK_COLLECTION_READER_H
22 #include <MitkDataCollectionExports.h>
25 #include <vtkXMLParser.h>
40 void AddDataElementIds(std::vector<std::string> dataElemetIds);
41 void AddSubColIds(std::vector<std::string> subColIds);
43 void SetDataItemNames(std::vector<std::string> itemNames);
45 void ClearDataElementIds();
46 void ClearSubColIds();
54 static DataCollection::Pointer FolderToCollection(std::string folder, std::vector<std::string> suffixes,std::vector<std::string> seriesNames,
bool allowGaps);
68 static FileListType GenerateFileLists(std::string folder, std::vector<std::string> suffixes,
bool allowGaps =
false);
76 static FileListType SanitizeFileList(FileListType list);
85 void StartElement (
const char* elementName,
const char **atts);
89 void EndElement (
const char* elementName);
95 std::string ReadXMLStringAttribut( std::string name,
const char** atts);
99 bool ReadXMLBooleanAttribut( std::string name,
const char** atts );
103 int ReadXMLIntegerAttribut( std::string name,
const char** atts );
119 std::vector<std::string> m_SelectedSubColIds;
121 std::vector<std::string> m_SelectedDataItemIds;
128 std::vector<std::string> m_SelectedDataItemNames;
143 std::string m_BaseDir;
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< std::vector< std::string > > FileListType