00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef QGUI_OLD_DATA_COLLECTOR_HH
00016 #define QGUI_OLD_DATA_COLLECTOR_HH
00017
00018
00019
00020
00021 #include <string>
00022
00023
00024
00025 #include "QCuore.hh"
00026
00027
00028 class QGUIOldDataCollector
00029 {
00030 public:
00031
00032
00033 QGUIOldDataCollector();
00034 QGUIOldDataCollector(int SettingsBasketId, int RunNumber, int RunType,
00035 unsigned int shifterSet, std::string Comments,
00036 bool SaveData=true, std::string ChSaved="all");
00037
00038 virtual ~QGUIOldDataCollector();
00039
00040
00041
00042 inline const int GetSettingsBasketId() const {return fSettingsBasketId;}
00043 inline const int GetRunNumb() const {return fRunNumb;}
00044 inline const int GetRunType() const {return fRunType;}
00045 inline const std::string GetComments() const {return fComments;}
00046 inline const std::string GetChSaved() const {return fChSaved;}
00047 inline const int GetMinRunNumbAllowed() const {return fMinRunNumbAllowed;}
00048 inline const unsigned int GetShifterSet() const {return fShifterSet;}
00049
00050
00051
00052 inline const bool IsSettingsBasketIdSelected()const {return fProfIdSelected;}
00053 inline const bool IsRunNumbSelected() const {return fRunNumbSelected;}
00054 inline const bool IsRunTypeSelected() const {return fRunTypeSelected;}
00055 inline const bool IsSaveData() const {return fSaveData;}
00056
00057
00058
00059 inline void SetSettingsBasketId (int NewSettingsBasketId) {fSettingsBasketId=NewSettingsBasketId; fProfIdSelected=true;}
00060 inline void SetRunNumb (int NewRunNumb) {fRunNumb=NewRunNumb; fRunNumbSelected=true;}
00061 inline void SetRunType (int NewRunType) {fRunType=NewRunType; fRunTypeSelected=true;}
00062 inline void SetSaveStatus(bool NewStatus) {fSaveData=NewStatus;}
00063 inline void SetComments (const std::string& NewComments) {fComments=NewComments;}
00064 inline void SetChSaved (const std::string& NewChSaved) {fChSaved=NewChSaved;}
00065 inline void SetMinRunNumbAllowed(int NewNumb) {fMinRunNumbAllowed=NewNumb;}
00066 inline void SetShifterSet(unsigned int shifterSet) { fShifterSet = shifterSet; }
00067
00068
00069 void CleanStatus();
00070
00071
00072 private:
00073
00074
00075 void _Clean();
00076
00077
00078 int fSettingsBasketId;
00079 int fRunNumb;
00080 int fMinRunNumbAllowed;
00081 int fRunType;
00082 bool fSaveData;
00083 unsigned int fShifterSet;
00084
00085 std::string fComments;
00086 std::string fChSaved;
00087
00088
00089 bool fProfIdSelected;
00090 bool fRunNumbSelected;
00091 bool fRunTypeSelected;
00092 };
00093
00094
00095 #endif // QGUI_OLD_DATA_COLLECTOR_HH
00096
00097