#include <cdb.h>


Definition at line 633 of file cdb.h.
Public Member Functions | |
| cdb_WriteAttribute (data_Attribute &a_dataAttr) | |
| virtual | ~cdb_WriteAttribute () |
| 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 |
| string | GetBarcode (void) const |
Private Attributes | |
| log_CLASSID_m | |
| cdb_WriteAttribute_t | m_attributeCmd |
| data_Attribute & | m_attribute |
| cdb_WriteAttribute::cdb_WriteAttribute | ( | data_Attribute & | a_dataAttr | ) |
Definition at line 32 of file cdb_writeattribute.cpp.
References data_Attribute::GetAttrIDDataLength(), data_Attribute::GetAttrIDListLength(), hton(), m_attribute, m_attributeCmd, op_WRITE_ATTRIBUTE, cdb_WriteAttribute_t::opcode, cdb_WriteAttribute_t::paramLen, and data_Attribute::SetAvailableData().
00033 : m_attribute(a_dataAttr) { 00034 memset (&m_attributeCmd, 0, sizeof(m_attributeCmd)); 00035 m_attributeCmd.opcode=op_WRITE_ATTRIBUTE; 00036 m_attributeCmd.paramLen=hton(m_attribute.GetAttrIDListLength()); 00037 00038 // TODO: Bad design: setting other class' internal parameters. 00039 m_attribute.SetAvailableData(m_attribute.GetAttrIDDataLength()); 00040 }

| cdb_WriteAttribute::~cdb_WriteAttribute | ( | ) | [virtual] |
| const UInt8_t * cdb_WriteAttribute::GetCmdPointer | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 46 of file cdb_writeattribute.cpp.
References m_attributeCmd.
00046 { 00047 return reinterpret_cast<UInt8_t*>( 00048 const_cast<cdb_WriteAttribute_t*>(&m_attributeCmd) ); 00049 }
| UInt32_t cdb_WriteAttribute::GetCmdSize | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 51 of file cdb_writeattribute.cpp.
References m_attributeCmd.
00051 { 00052 return sizeof(m_attributeCmd); 00053 }
| Direction_e cdb_WriteAttribute::GetTransferDirection | ( | ) | const [virtual] |
Implements scsi_CDB.
Definition at line 55 of file cdb_writeattribute.cpp.
References TRANSFER_OUT.
00055 { 00056 return TRANSFER_OUT; 00057 }
| UInt8_t * cdb_WriteAttribute::GetBufferPointer | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 59 of file cdb_writeattribute.cpp.
References data_Attribute::GetAttributeData(), and m_attribute.
00059 { 00060 return reinterpret_cast<UInt8_t*>( 00061 const_cast<data_Attribute_t *> (&(m_attribute.GetAttributeData())) ); 00062 }

| UInt32_t cdb_WriteAttribute::GetBufferSize | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 64 of file cdb_writeattribute.cpp.
References data_Attribute::GetAttrIDListLength(), and m_attribute.
00064 { 00065 return m_attribute.GetAttrIDListLength(); 00066 }

| string cdb_WriteAttribute::GetBarcode | ( | void | ) | const |
cdb_WriteAttribute::log_CLASSID_m [private] |
Definition at line 650 of file cdb.h.
Referenced by cdb_WriteAttribute(), GetCmdPointer(), and GetCmdSize().
data_Attribute& cdb_WriteAttribute::m_attribute [private] |
Definition at line 651 of file cdb.h.
Referenced by cdb_WriteAttribute(), GetBufferPointer(), and GetBufferSize().
1.5.6