00001 #ifndef CondFormats_EcalObjects_EcalDAQStatusCode_H 00002 #define CondFormats_EcalObjects_EcalDAQStatusCode_H 00003 00010 #include <iostream> 00011 #include <boost/cstdint.hpp> 00012 00013 class EcalDAQStatusCode { 00014 public: 00015 EcalDAQStatusCode(); 00016 EcalDAQStatusCode(const EcalDAQStatusCode & codeStatus); 00017 EcalDAQStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus) {}; 00018 ~EcalDAQStatusCode(); 00019 00020 //get Methods to be defined according to the final definition 00021 00022 void print(std::ostream& s) const { s << "status is: " << status_; } 00023 00024 EcalDAQStatusCode& operator=(const EcalDAQStatusCode& rhs); 00025 uint16_t getStatusCode() const { return status_; } 00026 00027 private: 00028 uint16_t status_; 00029 }; 00030 #endif