return p;
}
+ Localizer::Localizer()
+ {
+ myCurLocale = setlocale(LC_NUMERIC, 0);
+ setlocale(LC_NUMERIC, "C");
+ }
+
+ Localizer::~Localizer()
+ {
+ setlocale(LC_NUMERIC, myCurLocale.c_str());
+ }
}
using namespace std;
+#include <Basics_Utils.hxx>
+
#include "DF_Application.hxx"
#include "DF_ChildIterator.hxx"
#define VARIABLE_SEPARATOR ':'
#define OPERATION_SEPARATOR '|'
-// auxilary class intended to fix problems with locales
-class Localizer
-{
-public:
- Localizer()
- {
- myCurLocale = setlocale(LC_NUMERIC, 0);
- setlocale(LC_NUMERIC, "C");
- }
- ~Localizer()
- {
- setlocale(LC_NUMERIC, myCurLocale.c_str());
- }
-private:
- std::string myCurLocale;
-};
-
//============================================================================
/*! Function : SALOMEDSImpl_Study
* Purpose : SALOMEDSImpl_Study constructor
if(myNoteBookVars.empty())
return dump;
- Localizer loc;
+ Kernel_Utils::Localizer loc;
dump += "####################################################\n";
dump += "## Begin of NoteBook variables section ##\n";