Public Member Functions | Private Attributes

cdb_Erase Class Reference
[SCSI Library]

Erase medium. More...

#include <cdb.h>

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

List of all members.

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

Detailed Description

Erase medium.

Definition at line 203 of file cdb.h.


Constructor & Destructor Documentation

cdb_Erase::cdb_Erase ( bool  a_long = false  ) 

Definition at line 33 of file cdb_erase.cpp.

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

                                {
    memset(&m_eraseCmd, 0, sizeof(m_eraseCmd));
    m_eraseCmd.opcode = op_ERASE;
    if (a_long) {
        m_eraseCmd.longErase = 1;
    }
}

cdb_Erase::~cdb_Erase (  )  [virtual]

Definition at line 41 of file cdb_erase.cpp.

                     {
}


Member Function Documentation

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

Reimplemented from scsi_CDB.

Definition at line 44 of file cdb_erase.cpp.

References m_eraseCmd.

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

UInt32_t cdb_Erase::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 48 of file cdb_erase.cpp.

References m_eraseCmd.

                                     {
    return sizeof(m_eraseCmd);
}

Direction_e cdb_Erase::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 52 of file cdb_erase.cpp.

                                                  {
    return TRANSFER_NONE;
}


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 213 of file cdb.h.

Definition at line 215 of file cdb.h.

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


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