Salome HOME
[EDF29150] : head monitoring file management
[modules/kernel.git] / src / Basics / KernelBasis.i
index 3d070b68c757d653990561a1705a45fbdf44e30f..06c4fdd0868a35db45eb63b715ad3c043c19f98e 100644 (file)
@@ -62,9 +62,9 @@ void setIOROfEmbeddedNS(const std::string& ior);
 
 double GetTimeAdjustmentCst();
 
-void LaunchMonitoring(const std::string& pyScriptToEvaluate, const std::string& outFileName);
+long LaunchMonitoring(const std::string& pyScriptToEvaluate);
 
-std::vector<double> StopMonitoring();
+void StopMonitoring(long pid);
 
 bool VerbosityActivated();
 
@@ -97,6 +97,17 @@ PyObject *HeatMarcelSwig(double timeAjustment, unsigned int nbThreads = 0)
   return ret;
 }
 
+std::vector<double> ReadFloatsInFileSwig(const std::string& fileName)
+{
+  std::vector<double> ret;
+  try
+  {
+    ret = SALOME::ReadFloatsInFile( fileName );
+  }
+  catch(std::exception& e) { }
+  return ret;
+}
+
 void SetVerbosityLevelSwig(const std::string& level)
 {
   SetVerbosityLevelStr(level);
@@ -107,3 +118,9 @@ std::string VerbosityLevelSwig()
   return VerbosityLevelStr();
 }
 }
+
+%pythoncode %{
+def ReadFloatsInFile( fileName ):
+  ret = ReadFloatsInFileSwig( fileName )
+  return ret
+%}
\ No newline at end of file