Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
lariov::ChannelStatus Class Reference

#include <ChannelStatus.h>

Inheritance diagram for lariov::ChannelStatus:
lariov::ChData

Public Member Functions

 ChannelStatus (unsigned int ch)
 Constructor. More...
 
 ~ChannelStatus ()=default
 Default destructor. More...
 
bool IsDead () const
 
bool IsLowNoise () const
 
bool IsNoisy () const
 
bool IsPresent () const
 
bool IsGood () const
 
chStatus Status () const
 
void SetStatus (chStatus status)
 
- Public Member Functions inherited from lariov::ChData
 ChData (unsigned int ch)
 Constructor. More...
 
virtual ~ChData ()
 Default destructor. More...
 
unsigned int Channel () const
 
void SetChannel (unsigned int ch)
 
bool operator< (unsigned int rhs) const
 
bool operator< (const ChData &ch) const
 

Static Public Member Functions

static chStatus GetStatusFromInt (int status)
 

Private Attributes

chStatus fStatus
 

Additional Inherited Members

- Protected Attributes inherited from lariov::ChData
unsigned int fChannel
 

Detailed Description

Definition at line 26 of file ChannelStatus.h.

Constructor & Destructor Documentation

lariov::ChannelStatus::ChannelStatus ( unsigned int  ch)
inline

Constructor.

Definition at line 31 of file ChannelStatus.h.

31 : ChData(ch) {}
ChData(unsigned int ch)
Constructor.
Definition: ChData.h:28
lariov::ChannelStatus::~ChannelStatus ( )
default

Default destructor.

Member Function Documentation

static chStatus lariov::ChannelStatus::GetStatusFromInt ( int  status)
inlinestatic

Definition at line 45 of file ChannelStatus.h.

45  {
46  switch(status)
47  {
48  case kDISCONNECTED : return kDISCONNECTED;
49  break;
50  case kDEAD : return kDEAD;
51  break;
52  case kLOWNOISE : return kLOWNOISE;
53  break;
54  case kNOISY : return kNOISY;
55  break;
56  case kGOOD : return kGOOD;
57  break;
58  default : return kUNKNOWN;
59  };
60 
61  return kUNKNOWN;
62  }
bool lariov::ChannelStatus::IsDead ( ) const
inline

Definition at line 36 of file ChannelStatus.h.

36 { return fStatus == kDEAD ? true : false; }
bool lariov::ChannelStatus::IsGood ( ) const
inline

Definition at line 40 of file ChannelStatus.h.

40 { return fStatus == kGOOD ? true : false; }
bool lariov::ChannelStatus::IsLowNoise ( ) const
inline

Definition at line 37 of file ChannelStatus.h.

37 { return fStatus == kLOWNOISE ? true : false; }
bool lariov::ChannelStatus::IsNoisy ( ) const
inline

Definition at line 38 of file ChannelStatus.h.

38 { return fStatus == kNOISY ? true : false; }
bool lariov::ChannelStatus::IsPresent ( ) const
inline

Definition at line 39 of file ChannelStatus.h.

39 { return fStatus == kDISCONNECTED ? false : true; }
void lariov::ChannelStatus::SetStatus ( chStatus  status)
inline

Definition at line 43 of file ChannelStatus.h.

chStatus lariov::ChannelStatus::Status ( void  ) const
inline

Definition at line 41 of file ChannelStatus.h.

41 { return fStatus; }

Member Data Documentation

chStatus lariov::ChannelStatus::fStatus
private

Definition at line 65 of file ChannelStatus.h.


The documentation for this class was generated from the following file: