Public Member Functions | Private Attributes

cdb_WriteAttribute Class Reference
[SCSI Library]

Write MAM attributes. More...

#include <cdb.h>

Inheritance diagram for cdb_WriteAttribute:
Inheritance graph
[legend]
Collaboration diagram for cdb_WriteAttribute:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 cdb_WriteAttribute (data_Attribute &a_dataAttr)
virtual ~cdb_WriteAttribute ()
virtual const UInt8_tGetCmdPointer () const
virtual UInt32_t GetCmdSize () const
virtual Direction_e GetTransferDirection () const
virtual UInt8_tGetBufferPointer () const
virtual UInt32_t GetBufferSize () const
string GetBarcode (void) const

Private Attributes

 log_CLASSID_m
cdb_WriteAttribute_t m_attributeCmd
data_Attributem_attribute

Detailed Description

Write MAM attributes.

Author:
Andrej Jamsek

Definition at line 647 of file cdb.h.


Constructor & Destructor Documentation

cdb_WriteAttribute::cdb_WriteAttribute ( data_Attribute a_dataAttr  ) 
cdb_WriteAttribute::~cdb_WriteAttribute (  )  [virtual]

Definition at line 56 of file cdb_writeattribute.cpp.

                                       {
  //void
}


Member Function Documentation

string cdb_WriteAttribute::GetBarcode ( void   )  const
UInt8_t * cdb_WriteAttribute::GetBufferPointer (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 73 of file cdb_writeattribute.cpp.

References data_Attribute::GetAttributeData(), and m_attribute.

                                                    {
    return reinterpret_cast<UInt8_t*>(
        const_cast<data_Attribute_t *> (&(m_attribute.GetAttributeData())) );
}

Here is the call graph for this function:

UInt32_t cdb_WriteAttribute::GetBufferSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 78 of file cdb_writeattribute.cpp.

References data_Attribute::GetAttrIDListLength(), and m_attribute.

Here is the call graph for this function:

const UInt8_t * cdb_WriteAttribute::GetCmdPointer (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 60 of file cdb_writeattribute.cpp.

References m_attributeCmd.

                                                       {
  return reinterpret_cast<UInt8_t*>(
         const_cast<cdb_WriteAttribute_t*>(&m_attributeCmd) );
}

UInt32_t cdb_WriteAttribute::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 65 of file cdb_writeattribute.cpp.

References m_attributeCmd.

                                              {
    return sizeof(m_attributeCmd);
}

Direction_e cdb_WriteAttribute::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 69 of file cdb_writeattribute.cpp.

                                                           {
    return TRANSFER_OUT;
}


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 663 of file cdb.h.

Definition at line 665 of file cdb.h.

Referenced by cdb_WriteAttribute(), GetBufferPointer(), and GetBufferSize().

Definition at line 664 of file cdb.h.

Referenced by cdb_WriteAttribute(), GetCmdPointer(), and GetCmdSize().


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