ATLAS Offline Software
Loading...
Searching...
No Matches
StrawStatus.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRTCONDITIONSDATA_STRAWSTATUS_H
6#define TRTCONDITIONSDATA_STRAWSTATUS_H
7namespace TRTCond
8{
14 private:
15 unsigned int m_status ;
16 public:
17 //enum EStatus { Undefined, Dead, Good } ; //!< the three status states
22 StrawStatus(unsigned int mystatus) : m_status(mystatus){};
24 virtual ~StrawStatus() = default;
26 void setstatus(unsigned int i) { m_status = i ; }
28 unsigned int getstatus() const { return m_status ; }
30 bool operator==(const StrawStatus& rhs) const {
31 return m_status==rhs.m_status; }
32
33 void print() const { std::cout << "dummy print from StrawStatus.h " << m_status << std::endl ; }
34 } ;
35
36}
37
39
40#endif
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
unsigned int getstatus() const
get status
Definition StrawStatus.h:28
StrawStatus()
default constructor
Definition StrawStatus.h:20
virtual ~StrawStatus()=default
destructor
StrawStatus(unsigned int mystatus)
constructor
Definition StrawStatus.h:22
void print() const
print status
Definition StrawStatus.h:33
void setstatus(unsigned int i)
set status
Definition StrawStatus.h:26
bool operator==(const StrawStatus &rhs) const
equality op
Definition StrawStatus.h:30
unsigned int m_status
the status
Definition StrawStatus.h:15