Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:06

0001 #ifndef CondFormats_ESObjects_ESChannelStatusCode_H
0002 #define CondFormats_ESObjects_ESChannelStatusCode_H
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <iostream>
0007 #include <cstdint>
0008 
0009 class ESChannelStatusCode {
0010 public:
0011   ESChannelStatusCode();
0012   ESChannelStatusCode(const ESChannelStatusCode& codeStatus);
0013   ESChannelStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus){};
0014   ~ESChannelStatusCode();
0015 
0016   //get Methods to be defined according to the final definition
0017 
0018   void print(std::ostream& s) const { s << "status is: " << status_; }
0019 
0020   ESChannelStatusCode& operator=(const ESChannelStatusCode& rhs);
0021   uint16_t getStatusCode() const { return status_; }
0022 
0023 private:
0024   uint16_t status_;
0025 
0026   COND_SERIALIZABLE;
0027 };
0028 #endif