Public Member Functions | Private Attributes

cdb_Rewind Class Reference
[SCSI Library]

Rewind a tape. More...

#include <cdb.h>

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

List of all members.

Public Member Functions

 cdb_Rewind ()
virtual ~cdb_Rewind ()
virtual const UInt8_tGetCmdPointer () const
virtual UInt32_t GetCmdSize () const
virtual Direction_e GetTransferDirection () const

Private Attributes

 log_CLASSID_m
cdb_Rewind_t m_rewindCmd

Detailed Description

Rewind a tape.

Definition at line 249 of file cdb.h.


Constructor & Destructor Documentation

cdb_Rewind::cdb_Rewind (  ) 

Definition at line 32 of file cdb_rewind.cpp.

References m_rewindCmd, and cdb_Rewind_t::opcode.

                      {
//    cout << "cdb_Rewind::cdb_Rewind()" << endl;
    memset(&m_rewindCmd, 0, sizeof(m_rewindCmd));
    m_rewindCmd.opcode = op_REWIND;
}

cdb_Rewind::~cdb_Rewind (  )  [virtual]

Definition at line 38 of file cdb_rewind.cpp.

                       {
//    cout << "cdb_Rewind::~cdb_Rewind()" << endl;
}


Member Function Documentation

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

Reimplemented from scsi_CDB.

Definition at line 42 of file cdb_rewind.cpp.

References m_rewindCmd.

                                               {
    return reinterpret_cast<UInt8_t*>(
        const_cast<cdb_Rewind_t*>(&m_rewindCmd) );
}

UInt32_t cdb_Rewind::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 47 of file cdb_rewind.cpp.

References m_rewindCmd.

                                      {
    return sizeof(m_rewindCmd);
}

Direction_e cdb_Rewind::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 51 of file cdb_rewind.cpp.

                                                   {
    return TRANSFER_NONE;
}


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 260 of file cdb.h.

Definition at line 262 of file cdb.h.

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


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