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 75 of file s3d_plugin_idf.cpp.

Constructor & Destructor Documentation

◆ LOCALESWITCH() [1/2]

LOCALESWITCH::LOCALESWITCH ( )
inline

Definition at line 78 of file s3d_plugin_idf.cpp.

79  {
80  setlocale( LC_NUMERIC, "C" );
81  }

◆ ~LOCALESWITCH() [1/2]

LOCALESWITCH::~LOCALESWITCH ( )
inline

Definition at line 83 of file s3d_plugin_idf.cpp.

84  {
85  setlocale( LC_NUMERIC, "" );
86  }

◆ LOCALESWITCH() [2/2]

LOCALESWITCH::LOCALESWITCH ( )
inline

Definition at line 148 of file vrml.cpp.

149  {
150  m_locale = setlocale( LC_NUMERIC, 0 );
151  setlocale( LC_NUMERIC, "C" );
152  }
std::string m_locale
Definition: vrml.cpp:145

References m_locale.

◆ ~LOCALESWITCH() [2/2]

LOCALESWITCH::~LOCALESWITCH ( )
inline

Definition at line 154 of file vrml.cpp.

155  {
156  setlocale( LC_NUMERIC, m_locale.c_str() );
157  }
std::string m_locale
Definition: vrml.cpp:145

References m_locale.

Member Data Documentation

◆ m_locale

std::string LOCALESWITCH::m_locale
private

Definition at line 145 of file vrml.cpp.

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


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