12 #ifndef mitkTestDICOMLoading_h
13 #define mitkTestDICOMLoading_h
18 #include "MitkDICOMTestingExports.h"
45 DumpImageInformation(
const Image* image );
53 CompareImageInformationDumps(
const std::string& reference,
54 const std::string&
test );
58 typedef std::map<std::string,std::string> KeyValueMap;
60 ClassicDICOMSeriesReader::Pointer
63 void SetDefaultLocale();
65 void ResetUserLocale();
67 std::string ComponentTypeToString( itk::IOComponentEnum type );
69 KeyValueMap ParseDump(
const std::string& dump );
71 bool CompareSpacedValueFields(
const std::string& reference,
72 const std::string&
test,
81 std::string reduce(
const std::string& pString,
82 const std::string& pFill =
" ",
83 const std::string& pWhitespace =
" \t");
90 std::string trim(
const std::string& pString,
91 const std::string& pWhitespace =
" \t");
94 bool StringToNumber(
const std::string& s, T& value)
96 std::stringstream stream(s);
98 return (!stream.fail()) && (std::abs(value) <= std::numeric_limits<T>::max());
103 const char* m_PreviousCLocale;
104 std::locale m_PreviousCppLocale;