CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CondFormats/ESObjects/interface/ESChannelStatusCode.h

Go to the documentation of this file.
00001 #ifndef CondFormats_ESObjects_ESChannelStatusCode_H
00002 #define CondFormats_ESObjects_ESChannelStatusCode_H
00003 
00004 #include <iostream>
00005 #include <boost/cstdint.hpp>
00006 
00007 class ESChannelStatusCode {
00008   public:
00009     ESChannelStatusCode();
00010     ESChannelStatusCode(const ESChannelStatusCode & codeStatus);
00011     ESChannelStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus) {};
00012     ~ESChannelStatusCode();
00013 
00014     //get Methods to be defined according to the final definition
00015 
00016     void print(std::ostream& s) const { s << "status is: " << status_; }
00017 
00018     ESChannelStatusCode& operator=(const ESChannelStatusCode& rhs);
00019     uint16_t getStatusCode() const { return status_; }
00020 
00021   private:
00022     uint16_t status_;
00023 };
00024 #endif