KiCad PCB EDA Suite
LOCALESWITCH Class Reference

Public Member Functions

 LOCALESWITCH ()
 
 ~LOCALESWITCH ()
 
 LOCALESWITCH ()
 
 ~LOCALESWITCH ()
 

Private Attributes

std::string m_locale
 

Detailed Description

Definition at line 97 of file s3d_plugin_idf.cpp.

Constructor & Destructor Documentation

◆ LOCALESWITCH() [1/2]

LOCALESWITCH::LOCALESWITCH ( )
inline

Definition at line 100 of file s3d_plugin_idf.cpp.

101  {
102  setlocale( LC_NUMERIC, "C" );
103  }

◆ ~LOCALESWITCH() [1/2]

LOCALESWITCH::~LOCALESWITCH ( )
inline

Definition at line 105 of file s3d_plugin_idf.cpp.

106  {
107  setlocale( LC_NUMERIC, "" );
108  }

◆ LOCALESWITCH() [2/2]

LOCALESWITCH::LOCALESWITCH ( )
inline

Definition at line 153 of file vrml.cpp.

154  {
155  m_locale = setlocale( LC_NUMERIC, nullptr );
156  setlocale( LC_NUMERIC, "C" );
157  }
std::string m_locale
Definition: vrml.cpp:166

References m_locale.

◆ ~LOCALESWITCH() [2/2]

LOCALESWITCH::~LOCALESWITCH ( )
inline

Definition at line 159 of file vrml.cpp.

160  {
161  setlocale( LC_NUMERIC, m_locale.c_str() );
162  }
std::string m_locale
Definition: vrml.cpp:166

References m_locale.

Member Data Documentation

◆ m_locale

std::string LOCALESWITCH::m_locale
private

Definition at line 166 of file vrml.cpp.

Referenced by LOCALESWITCH(), and ~LOCALESWITCH().


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