32 s_LocaleMutex->Lock();
34 std::string currentCLocale = setlocale(LC_NUMERIC,
nullptr);
35 m_ReplacedCLocales.push(currentCLocale);
36 setlocale(LC_NUMERIC,
"C");
38 std::locale currentCinLocale(std::cin.getloc());
39 m_ReplacedCinLocales.push(currentCinLocale);
43 s_LocaleMutex->Unlock();
48 s_LocaleMutex->Lock();
50 if (!m_ReplacedCLocales.empty())
52 setlocale(LC_NUMERIC, m_ReplacedCLocales.top().c_str());
53 m_ReplacedCLocales.pop();
57 MITK_WARN <<
"Mismatched PopLocale on DICOMITKSeriesGDCMReader.";
60 if (!m_ReplacedCinLocales.empty())
62 std::cin.imbue(m_ReplacedCinLocales.top());
63 m_ReplacedCinLocales.pop();
67 MITK_WARN <<
"Mismatched PopLocale on DICOMITKSeriesGDCMReader.";
70 s_LocaleMutex->Unlock();
75 return setlocale(LC_NUMERIC,
nullptr);
itk::SmartPointer< Self > Pointer
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.