CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/CondFormats/EcalObjects/interface/EcalChannelStatusCode.h

Go to the documentation of this file.
00001 #ifndef CondFormats_EcalObjects_EcalChannelStatusCode_H
00002 #define CondFormats_EcalObjects_EcalChannelStatusCode_H
00003 
00010 #include <iostream>
00011 #include <boost/cstdint.hpp>
00012 
00013 class EcalChannelStatusCode {
00014   public:
00015     EcalChannelStatusCode();
00016     EcalChannelStatusCode(const EcalChannelStatusCode & codeStatus);
00017     EcalChannelStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus) {};
00018     ~EcalChannelStatusCode();
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     EcalChannelStatusCode& operator=(const EcalChannelStatusCode& rhs);
00025     uint16_t getStatusCode() const { return status_; }
00026 
00027   private:
00028     uint16_t status_;
00029 };
00030 #endif