CMS 3D CMS Logo

StatusManager.h
Go to the documentation of this file.
1 #ifndef StatusManager_H
2 #define StatusManager_H
3 
4 #include <cstdint>
5 #include <iostream>
6 #include <map>
7 #include <vector>
8 
11 
13 
14 namespace ecaldqm {
15 
16  class StatusManager {
17  public:
18  StatusManager();
20 
21  void readFromStream(std::istream &, EcalElectronicsMapping const *);
23  void writeToStream(std::ostream &) const;
25 
26  uint32_t getStatus(uint32_t) const;
27 
28  private:
29  std::map<std::string, uint32_t> dictionary_;
30  std::map<uint32_t, uint32_t> status_;
31  };
32 
33 } // namespace ecaldqm
34 
35 #endif
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
ecaldqm
Definition: DQWorker.h:37
EcalDQMTowerStatus.h
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
ecaldqm::StatusManager::StatusManager
StatusManager()
Definition: StatusManager.cc:20
EcalCondTowerObjectContainer
Definition: EcalCondTowerObjectContainer.h:13
ecaldqm::StatusManager::readFromObj
void readFromObj(EcalDQMChannelStatus const &, EcalDQMTowerStatus const &)
Definition: StatusManager.cc:200
ecaldqm::StatusManager::readFromStream
void readFromStream(std::istream &, EcalElectronicsMapping const *)
Definition: StatusManager.cc:124
ecaldqm::StatusManager::~StatusManager
~StatusManager()
Definition: StatusManager.h:19
EcalElectronicsMapping.h
ecaldqm::StatusManager::writeToStream
void writeToStream(std::ostream &) const
Definition: StatusManager.cc:222
ecaldqm::StatusManager::writeToObj
void writeToObj(EcalDQMChannelStatus &, EcalDQMTowerStatus &) const
Definition: StatusManager.cc:224
ecaldqm::StatusManager::getStatus
uint32_t getStatus(uint32_t) const
Definition: StatusManager.cc:246
ecaldqm::StatusManager::dictionary_
std::map< std::string, uint32_t > dictionary_
Definition: StatusManager.h:29
ecaldqm::StatusManager
Definition: StatusManager.h:16
ecaldqm::StatusManager::status_
std::map< uint32_t, uint32_t > status_
Definition: StatusManager.h:30
EcalDQMChannelStatus.h