|
KiCad PCB EDA Suite
|
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown. More...
#include <locale_io.h>
Public Member Functions | |
| LOCALE_IO () | |
| ~LOCALE_IO () | |
| LOCALE_IO (const LOCALE_IO &)=delete | |
| LOCALE_IO & | operator= (const LOCALE_IO &)=delete |
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
The constructor sets a "C" language locale option, to read/print files with floating point numbers. The destructor insures that the default locale is restored whether an exception is thrown or not.
The nesting count and the process-global locale transition it drives are serialized with a mutex, so instances may safely be created and destroyed from multiple threads at once.
Definition at line 36 of file locale_io.h.
| LOCALE_IO::LOCALE_IO | ( | ) |
Definition at line 86 of file locale_io.cpp.
References locale_count, locale_mutex, locale_user_locale, and locale_wxLocale.
Referenced by LOCALE_IO(), and operator=().
| LOCALE_IO::~LOCALE_IO | ( | ) |
Definition at line 109 of file locale_io.cpp.
References locale_count, locale_mutex, locale_user_locale, and locale_wxLocale.
|
delete |
References LOCALE_IO().
References LOCALE_IO().