2 #ifndef HYDROData_Tool_HeaderFile
3 #define HYDROData_Tool_HeaderFile
5 #include <Precision.hxx>
12 class HYDROData_Tool {
16 static void WriteStringsToFile( QFile& theFile,
17 const QStringList& theStrings,
18 const QString& theSep = "\n" );
22 inline bool ValuesEquals( const double& theFirst, const double& theSecond )
24 return theFirst > ( theSecond - Precision::Confusion() ) &&
25 theFirst < ( theSecond + Precision::Confusion() );
28 inline bool ValuesMoreEquals( const double& theFirst, const double& theSecond )
30 return theFirst >= theSecond || ValuesEquals( theFirst, theSecond );
33 inline bool ValuesLessEquals( const double& theFirst, const double& theSecond )
35 return theFirst <= theSecond || ValuesEquals( theFirst, theSecond );