UltraScan III
us_experiment_ra.h
Go to the documentation of this file.
1 #ifndef US_EXPERIMENT_H
3 #define US_EXPERIMENT_H
4 
5 #include "us_extern.h"
6 #include "us_ramp.h"
7 #include "us_project.h"
8 #include "us_rotor.h"
9 
17 {
18  public:
19 
21  {
23  double rotorCoeff1;
24  double rotorCoeff2;
25  };
26 
27  struct RotorInfo
28  {
29  int rotorID;
30  QString rotorGUID;
31  QString rotorSerial;
32  QList< CalibrationInfo > calibrationInfo;
33  };
34 
35  int invID;
36  QString invGUID;
37 
38  QString name;
39  int expID;
40  QString expGUID;
42  QString runID;
43  int labID;
45  QString instrumentSerial;
46  int operatorID;
47  QString operatorGUID;
48  int rotorID;
49  QString rotorGUID;
50  QString rotorSerial;
51  QString rotorName;
53  double rotorCoeff1;
54  double rotorCoeff2;
55  QDate rotorUpdated;
56  QString expType;
57  QByteArray opticalSystem;
58 // QList< double > rpms; //!< A list of rotor speeds observed during the experiment
59  QString runTemp;
60  QString label;
61  QString comments;
63  QString date;
64  bool syncOK;
65  QStringList experimentTypes;
66 // QVector< double > RIProfile; //!< If RI data, the intensity profile
67 // QVector< int > RIwvlns; //!< For RI+MWL, wavelengths present
68 // int RI_nscans; //!< RI+MWL scans per profile
69 // int RI_nwvlns; //!< RI+MWL wavelengths (profiles count)
70 
73  US_ExperimentRa( void );
74 
80  int checkRunID( US_DB2* = 0 );
81 
87  int saveToDB ( bool = false, US_DB2* = 0 );
88 
94  int readFromDB( QString ,
95  US_DB2* = 0 );
96 
109  int saveToDisk(
110  QVector< US_mwlRamp::RampRawData* >& ,
111  QList< US_Ramp::TripleInfo >& ,
112  QString ,
113  QString ,
114  QString );
115 
128  int readFromDisk(
129  QList< US_Ramp::TripleInfo >& ,
130  QString ,
131  QString ,
132  QString );
133 
134 
135  void clear( void );
136  void show ( void ); // Temporary function to display current exp info
137 
139 
140  private:
141  void readExperiment(
142  QXmlStreamReader& ,
143  QList< US_Ramp::TripleInfo >& ,
144  QString ,
145  QString );
146 
147  void readDataset(
148  QXmlStreamReader& ,
150 
151 };
152 #endif