KiCad PCB EDA Suite
numEval::LOCALE_IO Class Reference

Instantiate the current locale within a scope in which you are expecting exceptions to be thrown. More...

Public Member Functions

 LOCALE_IO ()
 
 ~LOCALE_IO ()
 

Private Attributes

std::string m_user_locale
 

Static Private Attributes

static std::atomic< unsigned int > m_c_count
 

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 if an exception is thrown or not.

Definition at line 179 of file numeric_evaluator.cpp.

Constructor & Destructor Documentation

numEval::LOCALE_IO::LOCALE_IO ( )
numEval::LOCALE_IO::~LOCALE_IO ( )

Member Data Documentation

std::atomic<unsigned int> numEval::LOCALE_IO::m_c_count
staticprivate

Definition at line 187 of file numeric_evaluator.cpp.

std::string numEval::LOCALE_IO::m_user_locale
private

Definition at line 191 of file numeric_evaluator.cpp.


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