QDaqCommonDefs.hh
Go to the documentation of this file.00001
00002 #ifndef _Q_DAQ_COMMON_DEFS_HH_
00003 #define _Q_DAQ_COMMON_DEFS_HH_
00004
00005 #include <string>
00006
00013 namespace QDaqCommonDefs
00014 {
00015
00020 enum QDaqState {
00021 Q_Invalid_State = -1,
00022 Q_Unknown_State=0,
00023 Q_Idle_State=1,
00024 Q_Running_State=2,
00025 Q_Paused_State=4,
00026 Q_Exiting_State=64
00027 };
00028
00033 enum ProcessStatus_t {
00034 QInvalid_s = -2,
00035 QUnknown_s = -1,
00036 QIdle_s = 1,
00037 QReady_s = 2,
00038 QRunning_s = 3,
00039 QStopped_s = 4,
00040 QPaused_s = 5,
00041 QAskStatus_s = 6,
00043 QTriggerOn_s = 7,
00044 QTriggerOff_s = 8,
00045 QError_s = 9,
00046 QExiting_s = 10,
00047 QIgnore_s = 11
00048 };
00049
00055 ProcessStatus_t ProcessStatusStringToEnum(const std::string statusString);
00056
00058 std::string ProcessStatusEnumToString(ProcessStatus_t status);
00059
00065 QDaqState DaqStateStringToEnum(const std::string& statusString);
00066
00068 std::string DaqStateEnumToString(QDaqState status);
00069
00070 };
00071 #endif