Overture  Version 25
Checker.h
Go to the documentation of this file.
1 #ifndef CHECKER_H
2 #define CHECKER_H
3 
4 #include "aString.H"
5 #include "OvertureTypes.h" // define real to be float or double
6 #include "wdhdefs.h" // some useful defines and constants
7 #include "mathutil.h" // define max, min, etc
8 
9 // This class is used for writing a check file for regression testing
10 
11 class Checker
12 {
13 
14  public:
15  Checker(const aString & checkFileName );
16  ~Checker();
17 
18  // set the cutOff for errors (errors below this value are set to zero)
19  void setCutOff( real cutOff );
20  // set label numbered "index"
21  void setLabel(const aString & label, const int index);
22 
23  void printMessage(const aString & label, real error, real time, real timeInit=-1. );
24 
25  protected:
26 
28  FILE *checkFile;
31 };
32 
33 #endif