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

In This Package:

DybDaq::BitsDefinition Class Reference

#include <BitsDefinition.h>

List of all members.


Public Member Functions

 BitsDefinition (const BitsDefinition &rhs)
 Suppress default.
BitsDefinitionoperator= (const BitsDefinition &rhs)
 Suppress default.
 BitsDefinition (unsigned int field, unsigned int offset, unsigned int lowbit, unsigned int count, const std::string &description)
 Creates an instance of this class.
virtual ~BitsDefinition ()
 Destroy this instance of the class.
unsigned int field () const
 Returns the 'field' index of the value within its containing byte block.
unsigned int offset () const
 Returns the offset of the value within its containing byte block.
unsigned int lowBit () const
 The least significant bit containing this value.
unsigned int highBit () const
 The most significant bit containing this value.
const std::string & description () const
 The description of the value contained in these bits.

Private Member Functions

 BitsDefinition ()
 Suppress default.

Private Attributes

unsigned int m_field
 The 'field' index of the value within its containing byte block.
unsigned int m_offset
 The offset of the value within its containing byte block.
unsigned int m_lowBit
 The bit that contains the least significant bit of the value.
unsigned int m_count
 The number of bits containing this value.
const std::string * m_description
 The description of the value contained in these bits.

Detailed Description

Definition at line 16 of file BitsDefinition.h.


Constructor & Destructor Documentation

BitsDefinition::BitsDefinition ( const BitsDefinition rhs  ) 

Suppress default.

Definition at line 33 of file BitsDefinition.cc.

00033                                                         :
00034 m_field(rhs.m_field),
00035 m_offset(rhs.m_offset),
00036 m_lowBit(rhs.m_lowBit),
00037 m_count(rhs.m_count),
00038 m_description(rhs.m_description) {
00039 }

DybDaq::BitsDefinition::BitsDefinition ( unsigned int  field,
unsigned int  offset,
unsigned int  lowbit,
unsigned int  count,
const std::string &  description 
)

Creates an instance of this class.

BitsDefinition::~BitsDefinition (  )  [virtual]

Destroy this instance of the class.

Definition at line 30 of file BitsDefinition.cc.

00030                                 {
00031 }

BitsDefinition::BitsDefinition (  )  [private]

Suppress default.

Definition at line 14 of file BitsDefinition.cc.

00014                                :
00015 m_description(0) {
00016 }


Member Function Documentation

BitsDefinition & BitsDefinition::operator= ( const BitsDefinition rhs  ) 

Suppress default.

Definition at line 41 of file BitsDefinition.cc.

00041                                                                    {
00042     m_field = rhs.m_field;
00043     m_offset = rhs.m_offset;
00044     m_lowBit = rhs.m_lowBit;
00045     m_count = rhs.m_count;
00046     m_description = rhs.m_description;
00047     return *this;
00048 }

unsigned int BitsDefinition::field (  )  const

Returns the 'field' index of the value within its containing byte block.

Definition at line 50 of file BitsDefinition.cc.

00050                                          {
00051     return m_field;
00052 }

unsigned int BitsDefinition::offset (  )  const

Returns the offset of the value within its containing byte block.

Definition at line 54 of file BitsDefinition.cc.

00054                                           {
00055     return m_offset;
00056 }

unsigned int BitsDefinition::lowBit (  )  const

The least significant bit containing this value.

Definition at line 58 of file BitsDefinition.cc.

00058                                           {
00059     return m_lowBit;
00060 }

unsigned int BitsDefinition::highBit (  )  const

The most significant bit containing this value.

Definition at line 62 of file BitsDefinition.cc.

00062                                            {
00063     if (0 == m_count) {
00064         return m_lowBit;
00065     }
00066     return m_lowBit + m_count - 1;
00067 }

const string & BitsDefinition::description (  )  const

The description of the value contained in these bits.

Definition at line 69 of file BitsDefinition.cc.

00069                                                 {
00070     return *m_description;
00071 }


Member Data Documentation

unsigned int DybDaq::BitsDefinition::m_field [private]

The 'field' index of the value within its containing byte block.

Definition at line 81 of file BitsDefinition.h.

unsigned int DybDaq::BitsDefinition::m_offset [private]

The offset of the value within its containing byte block.

Definition at line 86 of file BitsDefinition.h.

unsigned int DybDaq::BitsDefinition::m_lowBit [private]

The bit that contains the least significant bit of the value.

Definition at line 91 of file BitsDefinition.h.

unsigned int DybDaq::BitsDefinition::m_count [private]

The number of bits containing this value.

Definition at line 96 of file BitsDefinition.h.

const std::string* DybDaq::BitsDefinition::m_description [private]

The description of the value contained in these bits.

Definition at line 101 of file BitsDefinition.h.


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

Generated on Mon Apr 11 20:07:43 2011 for DaqReadoutFormat by doxygen 1.4.7