00001
00002 #ifndef US_DATAIO_H
00003 #define UD_DATAIO_H
00004
00005 #include <QtCore>
00006 #include <vector>
00007
00008 using namespace std;
00009
00010 struct reading
00011 {
00012 union
00013 {
00014 float radius;
00015 float wavelength;
00016 } d;
00017 float value;
00018 float stdDev;
00019 };
00020
00033 struct beckmanRaw
00034 {
00035 QString description;
00036 char type;
00037 int cell;
00038 float temperature;
00039 float rpm;
00040 int seconds;
00041 float omega2t;
00042 union
00043 {
00044 float wavelength;
00045 float radius;
00046 } t;
00047 int count;
00048
00049 vector< struct reading > readings;
00050 };
00051
00052 class US_DataIO
00053 {
00054 public:
00055
00056 enum { ABSORBANCE, INTENSITY, INTERFERENCE, FLUORESCENCE, WAVELENGTH };
00057 static bool readLegacyFile( const QString&, struct beckmanRaw& );
00058 };
00059
00060 #endif