Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 46 of file mitkLocaleSwitch.h.
|
explicit |
Definition at line 64 of file mitkLocaleSwitch.cpp.
mitk::LocaleSwitch::~LocaleSwitch | ( | ) |
Definition at line 65 of file mitkLocaleSwitch.cpp.
|
delete |
|
inline |
Definition at line 36 of file mitkMAPRegistrationWrapperIO.cpp.
References MITK_INFO.
|
inline |
Definition at line 55 of file mitkMAPRegistrationWrapperIO.cpp.
References mitk::MAPRegistrationWrapper::GetRegistration(), mitk::MAPRegistrationWrapperIO::MAPRegistrationWrapperIO(), and MITK_INFO.
|
delete |