| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay::FecHardwareId Class Reference

#include <Hardware.h>

Inheritance diagram for DayaBay::FecHardwareId:

[legend]
Collaboration diagram for DayaBay::FecHardwareId:
[legend]
List of all members.

Public Member Functions

 FecHardwareId ()
 FecHardwareId (int boardId, int connector)
 FecHardwareId (int data)
virtual ~FecHardwareId ()
FecHardwareIdoperator= (const FecHardwareId &id)
int boardId () const
int connector () const
int fullPackedData () const
Hardware::Hardware_t type () const
int id () const
bool operator== (const HardwareId &rhs) const
bool operator!= (const HardwareId &rhs) const

Protected Attributes

unsigned int m_data

Detailed Description

Definition at line 168 of file Hardware.h.


Constructor & Destructor Documentation

DayaBay::FecHardwareId::FecHardwareId (  )  [inline]

Definition at line 170 of file Hardware.h.

00170 : HardwareId(0) {}

DayaBay::FecHardwareId::FecHardwareId ( int  boardId,
int  connector 
) [inline]

Definition at line 171 of file Hardware.h.

00171                                               : 
00172       HardwareId((0x000000ff & boardId)<<8 |
00173                  (0x000000ff & connector),
00174                  Hardware::kFee) {}

DayaBay::FecHardwareId::FecHardwareId ( int  data  )  [inline]

Definition at line 175 of file Hardware.h.

00175 : HardwareId(data) {}

virtual DayaBay::FecHardwareId::~FecHardwareId (  )  [inline, virtual]

Definition at line 176 of file Hardware.h.

00176 {}


Member Function Documentation

FecHardwareId& DayaBay::FecHardwareId::operator= ( const FecHardwareId id  )  [inline]

Definition at line 178 of file Hardware.h.

00179       { m_data = id.m_data; return *this; }

int DayaBay::FecHardwareId::boardId (  )  const [inline]

Definition at line 182 of file Hardware.h.

00182 { return (m_data & 0x0000ff00) >> 8; }

int DayaBay::FecHardwareId::connector (  )  const [inline]

Definition at line 185 of file Hardware.h.

00185 { return (m_data & 0x000000ff); }

int DayaBay::HardwareId::fullPackedData (  )  const [inline, inherited]

Definition at line 60 of file Hardware.h.

00060 { return m_data; }

Hardware::Hardware_t DayaBay::HardwareId::type (  )  const [inline, inherited]

Definition at line 63 of file Hardware.h.

00064       { return (Hardware::Hardware_t)((m_data&0xff000000)>>24); }

int DayaBay::HardwareId::id (  )  const [inline, inherited]

Reimplemented in DayaBay::PmtHardwareId.

Definition at line 66 of file Hardware.h.

00066 { return (m_data & 0x00ffffff); }

bool DayaBay::HardwareId::operator== ( const HardwareId rhs  )  const [inline, inherited]

Definition at line 69 of file Hardware.h.

00069 { return this->m_data == rhs.m_data; }

bool DayaBay::HardwareId::operator!= ( const HardwareId rhs  )  const [inline, inherited]

Definition at line 70 of file Hardware.h.

00070 { return !(*this == rhs); }


Member Data Documentation

unsigned int DayaBay::HardwareId::m_data [protected, inherited]

Definition at line 73 of file Hardware.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:14:49 2011 for Conventions by doxygen 1.4.7