KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LOCALE_IO Class Reference

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_IOoperator= (const LOCALE_IO &)=delete
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LOCALE_IO() [1/2]

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::~LOCALE_IO ( )

Definition at line 109 of file locale_io.cpp.

References locale_count, locale_mutex, locale_user_locale, and locale_wxLocale.

◆ LOCALE_IO() [2/2]

LOCALE_IO::LOCALE_IO ( const LOCALE_IO & )
delete

References LOCALE_IO().

Member Function Documentation

◆ operator=()

LOCALE_IO & LOCALE_IO::operator= ( const LOCALE_IO & )
delete

References LOCALE_IO().


The documentation for this class was generated from the following files: