#include <cdb.h>


Definition at line 357 of file cdb.h.
Public Member Functions | |
| cdb_Read () | |
| cdb_Read (UInt8_t *a_dataPtr, UInt32_t a_dataSize) | |
| virtual | ~cdb_Read () |
| void | SetBuffer (UInt8_t *a_dataPtr, UInt32_t a_dataSize) |
| void | SetSILI (bool a_sili) |
| virtual const UInt8_t * | GetCmdPointer () const |
| virtual UInt32_t | GetCmdSize () const |
| virtual Direction_e | GetTransferDirection () const |
| virtual UInt8_t * | GetBufferPointer () const |
| virtual UInt32_t | GetBufferSize () const |
Private Attributes | |
| log_CLASSID_m | |
| cdb_Read_t | m_readCmd |
| UInt8_t * | m_dataPtr |
| UInt32_t | m_dataSize |
| cdb_Read::cdb_Read | ( | ) |
Definition at line 32 of file cdb_read.cpp.
References m_readCmd, op_READ_6, and cdb_Read_t::opcode.
00033 : m_dataPtr(NULL), 00034 m_dataSize(0) { 00035 00036 memset (&m_readCmd, 0, sizeof(m_readCmd)); 00037 m_readCmd.opcode = op_READ_6; 00038 }
Definition at line 40 of file cdb_read.cpp.
References hton24(), m_readCmd, op_READ_6, cdb_Read_t::opcode, and cdb_Read_t::size.
00041 : m_dataPtr(a_dataPtr), 00042 m_dataSize(a_dataSize) { 00043 00044 memset (&m_readCmd, 0, sizeof(m_readCmd)); 00045 m_readCmd.opcode = op_READ_6; 00046 m_readCmd.size = hton24(a_dataSize); 00047 }

| cdb_Read::~cdb_Read | ( | ) | [virtual] |
Definition at line 53 of file cdb_read.cpp.
References hton24(), m_dataPtr, m_dataSize, m_readCmd, and cdb_Read_t::size.
Referenced by bea_TapeVolume::ReadRaw().
00053 { 00054 m_dataPtr = a_dataPtr; 00055 m_dataSize = a_dataSize; 00056 m_readCmd.size = hton24(a_dataSize); 00057 }


| void cdb_Read::SetSILI | ( | bool | a_sili | ) |
Definition at line 59 of file cdb_read.cpp.
References m_readCmd, and cdb_Read_t::sili.
Referenced by ParseTapeMediumVolumeHeader().
00059 { 00060 if (a_sili) { 00061 m_readCmd.sili = 1; 00062 } 00063 else { 00064 m_readCmd.sili = 0; 00065 } 00066 }

| UInt8_t const * cdb_Read::GetCmdPointer | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 81 of file cdb_read.cpp.
References m_readCmd.
00081 { 00082 return reinterpret_cast<UInt8_t*>( 00083 const_cast<cdb_Read_t*>(&m_readCmd) ); 00084 }
| UInt32_t cdb_Read::GetCmdSize | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 86 of file cdb_read.cpp.
References m_readCmd.
00086 { 00087 return sizeof(m_readCmd); 00088 }
| Direction_e cdb_Read::GetTransferDirection | ( | ) | const [virtual] |
Implements scsi_CDB.
Definition at line 90 of file cdb_read.cpp.
References TRANSFER_IN.
00090 { 00091 return TRANSFER_IN; 00092 }
| UInt8_t * cdb_Read::GetBufferPointer | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 69 of file cdb_read.cpp.
References m_dataPtr.
00069 { 00070 return m_dataPtr; 00071 }
| UInt32_t cdb_Read::GetBufferSize | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 73 of file cdb_read.cpp.
References log_ERR_m, log_FUNC_m, and m_dataSize.
00073 { 00074 if (m_dataSize == 0) { 00075 log_FUNC_m(GetBufferSize); 00076 log_ERR_m("Request for zero bytes SCSI read."); 00077 } 00078 return m_dataSize; 00079 }
cdb_Read::log_CLASSID_m [private] |
cdb_Read_t cdb_Read::m_readCmd [private] |
Definition at line 377 of file cdb.h.
Referenced by cdb_Read(), GetCmdPointer(), GetCmdSize(), SetBuffer(), and SetSILI().
UInt8_t* cdb_Read::m_dataPtr [private] |
UInt32_t cdb_Read::m_dataSize [private] |
1.5.6