Salome HOME
Bug IPAL21435 - TC5.1.3: incorrect mapping of the object from imported UNV file in...
[modules/smesh.git] / src / DriverUNV / UNV_Utilities.hxx
index e53f75d95da120a9dd3cff3c5cb87e9117a0e313..5e9239f82a37bd0f062b84f0f2509d2858e6aa2b 100644 (file)
 namespace UNV{
   using namespace std;
 
+  class MESHDRIVERUNV_EXPORT Localizer
+  {
+  public:
+    Localizer()
+    {
+      myCurLocale = setlocale(LC_NUMERIC, 0);
+      setlocale(LC_NUMERIC, "C");
+    }
+    ~Localizer()
+    {
+      setlocale(LC_NUMERIC, myCurLocale.c_str());
+    }
+  private:
+    std::string myCurLocale;
+  };
+
   class MESHDRIVERUNV_EXPORT PrefixPrinter{
     static int myCounter;
   public: