X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Tool.cxx;h=9cb932d340a7066442e860a91959c030c7002799;hb=010fbf49c40c5a990222597ad773a8877856e0a4;hp=9ed8f0be5063deaae02dd4be0843c127db56ff42;hpb=a3ae70db118828f7996bab07e05d18d619dd2c41;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Tool.cxx b/src/HYDROData/HYDROData_Tool.cxx index 9ed8f0be..9cb932d3 100644 --- a/src/HYDROData/HYDROData_Tool.cxx +++ b/src/HYDROData/HYDROData_Tool.cxx @@ -1,2 +1,21 @@ #include "HYDROData_Tool.h" + +#include +#include +#include + +void HYDROData_Tool::WriteStringsToFile( QFile& theFile, + const QStringList& theStrings, + const QString& theSep ) +{ + if ( !theFile.isOpen() || theStrings.isEmpty() ) + return; + + QString aWriteStr = theStrings.join( theSep ); + if ( aWriteStr.isEmpty() ) + return; + + QTextStream anOutStream( &theFile ); + anOutStream << aWriteStr << theSep << theSep; +}