CMS 3D CMS Logo

ESChannelStatusCode.h
Go to the documentation of this file.
1 #ifndef CondFormats_ESObjects_ESChannelStatusCode_H
2 #define CondFormats_ESObjects_ESChannelStatusCode_H
3 
5 
6 #include <iostream>
7 #include <cstdint>
8 
10 public:
12  ESChannelStatusCode(const ESChannelStatusCode& codeStatus);
13  ESChannelStatusCode(const uint16_t& encodedStatus) : status_(encodedStatus){};
15 
16  //get Methods to be defined according to the final definition
17 
18  void print(std::ostream& s) const { s << "status is: " << status_; }
19 
21  uint16_t getStatusCode() const { return status_; }
22 
23 private:
24  uint16_t status_;
25 
27 };
28 #endif
ESChannelStatusCode
Definition: ESChannelStatusCode.h:9
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
ESChannelStatusCode::getStatusCode
uint16_t getStatusCode() const
Definition: ESChannelStatusCode.h:21
alignCSCRings.s
s
Definition: alignCSCRings.py:92
ESChannelStatusCode::print
void print(std::ostream &s) const
Definition: ESChannelStatusCode.h:18
ESChannelStatusCode::ESChannelStatusCode
ESChannelStatusCode(const uint16_t &encodedStatus)
Definition: ESChannelStatusCode.h:13
Serializable.h
ESChannelStatusCode::~ESChannelStatusCode
~ESChannelStatusCode()
Definition: ESChannelStatusCode.cc:7
ESChannelStatusCode::ESChannelStatusCode
ESChannelStatusCode()
Definition: ESChannelStatusCode.cc:3
ESChannelStatusCode::operator=
ESChannelStatusCode & operator=(const ESChannelStatusCode &rhs)
Definition: ESChannelStatusCode.cc:9
ESChannelStatusCode::status_
uint16_t status_
Definition: ESChannelStatusCode.h:24