scsi_Wrapper24 Class Reference
[SCSI Library]

#include <scsi_types.h>

List of all members.


Detailed Description

Class thatis a wrapper around scsi_UInt24_t and behaves like a 24-bit integer.

Definition at line 184 of file scsi_types.h.


Public Member Functions

 scsi_Wrapper24 ()
 scsi_Wrapper24 (UInt32_t a_uint)
 scsi_Wrapper24 (scsi_UInt24_t &a_buf)
scsi_Wrapper24operator= (UInt32_t a_uint)
scsi_Wrapper24operator= (scsi_UInt24_t &a_buf)
 operator UInt32_t () const

Private Attributes

scsi_UInt24_tm_data_p

Constructor & Destructor Documentation

scsi_Wrapper24::scsi_Wrapper24 (  )  [inline]

Definition at line 186 of file scsi_types.h.

00186                             : m_data_p(NULL) {
00187     };

scsi_Wrapper24::scsi_Wrapper24 ( UInt32_t  a_uint  )  [inline, explicit]

Definition at line 189 of file scsi_types.h.

00189                                                     {
00190         scsi_UInt32_t* buf = reinterpret_cast<scsi_UInt32_t*>(&a_uint);
00191         (*m_data_p)[0] = (*buf)[0],
00192         (*m_data_p)[1] = (*buf)[1],
00193         (*m_data_p)[2] = (*buf)[2];
00194     };

scsi_Wrapper24::scsi_Wrapper24 ( scsi_UInt24_t a_buf  )  [inline]

Definition at line 196 of file scsi_types.h.

00196                                                 : m_data_p(&a_buf) {
00197         // Empty
00198     };


Member Function Documentation

scsi_Wrapper24& scsi_Wrapper24::operator= ( UInt32_t  a_uint  )  [inline]

Definition at line 200 of file scsi_types.h.

00200                                                         {
00201         scsi_UInt32_t* buf = reinterpret_cast<scsi_UInt32_t*>(&a_uint);
00202         (*m_data_p)[0] = (*buf)[0],
00203         (*m_data_p)[1] = (*buf)[1],
00204         (*m_data_p)[2] = (*buf)[2];
00205         return (*this);
00206     };

scsi_Wrapper24& scsi_Wrapper24::operator= ( scsi_UInt24_t a_buf  )  [inline]

Definition at line 208 of file scsi_types.h.

00208                                                              {
00209         m_data_p = &a_buf;
00210         return (*this);
00211     };

scsi_Wrapper24::operator UInt32_t (  )  const [inline]

Definition at line 213 of file scsi_types.h.

00213                                       {
00214         UInt32_t retval = *(reinterpret_cast<const UInt32_t*>(*m_data_p));
00215         return (retval & 0x00FFFFFF);
00216     };


Member Data Documentation

Definition at line 216 of file scsi_types.h.


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

Generated on Mon Feb 27 19:50:24 2012 for OPENARCHIVE by  doxygen 1.5.6