00001 // Copyright CERN 2012 - Developed in collaboration with GSI 00002 00003 #ifndef EQUIPMENT_DATA_H_ 00004 #define EQUIPMENT_DATA_H_ 00005 00006 #include <fesa-core/DataStore/DataStore.h> 00007 00008 namespace fesa 00009 { 00010 00015 class EquipmentData : public DataStore 00016 { 00017 public: 00018 00023 static EquipmentData* getInstance(); 00024 00028 virtual ~EquipmentData(); 00029 00033 void initialize(); 00034 00038 bool* isInitialize_; 00039 00043 bool* notificationIDreadoutFlag_; 00044 00045 00049 int32_t* srvProcessPid_; 00050 00051 00056 bool* notificationFailure_; 00057 00061 bool* hasRt_; 00062 00066 bool* rtUp_; 00067 00071 bool* serverUp_; 00072 00076 pid_t* rtProcessID_; 00077 00081 pid_t* serverProcessID_; 00082 00083 protected: 00084 00088 EquipmentData(); 00089 00090 00091 00096 int32_t getSizeOfAdditionalFields(); 00097 00102 void mapAdditionalFields(char* p); 00103 00107 static EquipmentData* instance_; 00108 00109 }; 00110 00111 } // fesa 00112 00113 #endif // EQUIPMENT_DATA_H_