Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Convenience class to temporarily change the current locale. More...
#include <mitkLocaleSwitch.h>
Public Member Functions | |
LocaleSwitch (const char *newLocale) | |
~LocaleSwitch () | |
LocaleSwitch (LocaleSwitch &)=delete | |
LocaleSwitch | operator= (LocaleSwitch &)=delete |
LocaleSwitch (const std::string &newLocale) | |
~LocaleSwitch () | |
Convenience class to temporarily change the current locale.
This helper class can be used to switch to a specific locale for a couple of operations. Once the class is destroyed, the previous locale will be restored. This avoids calling or forgetting to call setlocale() in multiple return locations.
Typically this is used to switch to a "C" locale when parsing or printing numbers, in order to consistently get "." and not "," as a decimal separator.
Helper structure to change (and reset) the local settings in a function scope
Definition at line 50 of file mitkLocaleSwitch.h.
|
explicit |
Definition at line 68 of file mitkLocaleSwitch.cpp.
mitk::LocaleSwitch::~LocaleSwitch | ( | ) |
Definition at line 69 of file mitkLocaleSwitch.cpp.
|
delete |
|
inline |
Definition at line 40 of file mitkMAPRegistrationWrapperIO.cpp.
References MITK_INFO.
|
inline |
Definition at line 59 of file mitkMAPRegistrationWrapperIO.cpp.
References MITK_INFO.
|
delete |