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 ()
 

Private Attributes

std::string m_user_locale
 

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.

Definition at line 48 of file locale_io.h.

Constructor & Destructor Documentation

◆ LOCALE_IO()

LOCALE_IO::LOCALE_IO ( )

Definition at line 71 of file locale_io.cpp.

References locale_count().

◆ ~LOCALE_IO()

LOCALE_IO::~LOCALE_IO ( )

Definition at line 96 of file locale_io.cpp.

References locale_count(), and m_user_locale.

Member Data Documentation

◆ m_user_locale

std::string LOCALE_IO::m_user_locale
private

Definition at line 60 of file locale_io.h.

Referenced by ~LOCALE_IO().


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