cdb_Erase Class Reference
[SCSI Library]

#include <cdb.h>

Inheritance diagram for cdb_Erase:

Inheritance graph
[legend]
Collaboration diagram for cdb_Erase:

Collaboration graph
[legend]

List of all members.


Detailed Description

Erase medium.

Definition at line 189 of file cdb.h.


Public Member Functions

 cdb_Erase (bool a_long=false)
virtual ~cdb_Erase ()
virtual const UInt8_tGetCmdPointer () const
virtual UInt32_t GetCmdSize () const
virtual Direction_e GetTransferDirection () const

Private Attributes

 log_CLASSID_m
cdb_Erase_t m_eraseCmd

Constructor & Destructor Documentation

cdb_Erase::cdb_Erase ( bool  a_long = false  ) 

Definition at line 19 of file cdb_erase.cpp.

References cdb_Erase_t::longErase, m_eraseCmd, op_ERASE, and cdb_Erase_t::opcode.

00019                                 {
00020     memset(&m_eraseCmd, 0, sizeof(m_eraseCmd));
00021     m_eraseCmd.opcode = op_ERASE;
00022     if (a_long) {
00023         m_eraseCmd.longErase = 1;
00024     }
00025 }

cdb_Erase::~cdb_Erase (  )  [virtual]

Definition at line 27 of file cdb_erase.cpp.

00027                      {
00028 }


Member Function Documentation

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

Reimplemented from scsi_CDB.

Definition at line 30 of file cdb_erase.cpp.

References m_eraseCmd.

00030                                               {
00031     return reinterpret_cast<UInt8_t*>(const_cast<cdb_Erase_t*>(&m_eraseCmd));
00032 }

UInt32_t cdb_Erase::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 34 of file cdb_erase.cpp.

References m_eraseCmd.

00034                                      {
00035     return sizeof(m_eraseCmd);
00036 }

Direction_e cdb_Erase::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 38 of file cdb_erase.cpp.

References TRANSFER_NONE.

00038                                                   {
00039     return TRANSFER_NONE;
00040 }


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 199 of file cdb.h.

Definition at line 201 of file cdb.h.

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


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

Generated on Mon Feb 27 19:02:15 2012 for OPENARCHIVE by  doxygen 1.5.6