16 #ifndef mitkTestDCMLoading_h
17 #define mitkTestDCMLoading_h
21 #include "MitkDCMTestingExports.h"
32 typedef std::list<itk::SmartPointer<Image>>
ImageList;
42 std::string DumpImageInformation(
const Image *image);
49 bool CompareImageInformationDumps(
const std::string &reference,
const std::string &
test);
52 typedef std::map<std::string, std::string> KeyValueMap;
54 void SetDefaultLocale();
56 void ResetUserLocale();
58 std::string ComponentTypeToString(
int type);
60 KeyValueMap ParseDump(
const std::string &dump);
62 bool CompareSpacedValueFields(
const std::string &reference,
const std::string &
test,
double eps =
mitk::eps);
70 std::string reduce(
const std::string &pString,
71 const std::string &pFill =
" ",
72 const std::string &pWhitespace =
" \t");
79 std::string trim(
const std::string &pString,
const std::string &pWhitespace =
" \t");
82 bool StringToNumber(
const std::string &s, T &value)
84 std::stringstream stream(s);
89 const char *m_PreviousCLocale;
90 std::locale m_PreviousCppLocale;
Follow Up Storage - Class to facilitate loading/accessing structured follow-up data.
std::vector< std::string > StringContainer
Lists of filenames.
DataCollection - Class to facilitate loading/accessing structured data.
DicomSeriesReader::StringContainer StringContainer
Image class for storing images.
MITKCORE_EXPORT const ScalarType eps
std::list< itk::SmartPointer< Image > > ImageList
std::list< DataNode::Pointer > NodeList