Public Member Functions | Private Attributes

cdb_MoveMedium Class Reference
[SCSI Library]

SCSI Move Medium command. More...

#include <cdb.h>

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

List of all members.

Public Member Functions

 cdb_MoveMedium ()
virtual ~cdb_MoveMedium ()
virtual const UInt8_tGetCmdPointer () const
virtual UInt32_t GetCmdSize () const
virtual Direction_e GetTransferDirection () const
void SetTransport (UInt16_t a_trans)
void SetSource (UInt16_t a_src)
void SetDestination (UInt16_t a_dest)

Private Attributes

 log_CLASSID_m
cdb_MoveMedium_t m_moveMediumCmd

Detailed Description

SCSI Move Medium command.

Definition at line 538 of file cdb.h.


Constructor & Destructor Documentation

cdb_MoveMedium::cdb_MoveMedium (  ) 

Definition at line 47 of file cdb_movemedium.cpp.

References m_moveMediumCmd, and cdb_MoveMedium_t::opcode.

                               {
    memset(&m_moveMediumCmd, 0, sizeof(m_moveMediumCmd));
    m_moveMediumCmd.opcode = op_MOVE_MEDIUM;
}

cdb_MoveMedium::~cdb_MoveMedium (  )  [virtual]

Definition at line 52 of file cdb_movemedium.cpp.

                                {
}


Member Function Documentation

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

Reimplemented from scsi_CDB.

Definition at line 55 of file cdb_movemedium.cpp.

References m_moveMediumCmd.

                                                   {
    return reinterpret_cast<UInt8_t*>(
        const_cast<cdb_MoveMedium_t*>(&m_moveMediumCmd) );
}

UInt32_t cdb_MoveMedium::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 60 of file cdb_movemedium.cpp.

References m_moveMediumCmd.

                                          {
    return sizeof(m_moveMediumCmd);
}

Direction_e cdb_MoveMedium::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 64 of file cdb_movemedium.cpp.

                                                       {
    return TRANSFER_NONE;
}

void cdb_MoveMedium::SetDestination ( UInt16_t  a_dest  ) 

Definition at line 76 of file cdb_movemedium.cpp.

References cdb_MoveMedium_t::destination, hton(), and m_moveMediumCmd.

Referenced by la_SCSILibrary::Load(), Mv(), and la_SCSILibrary::Unload().

Here is the call graph for this function:

Here is the caller graph for this function:

void cdb_MoveMedium::SetSource ( UInt16_t  a_src  ) 

Definition at line 72 of file cdb_movemedium.cpp.

References hton(), m_moveMediumCmd, and cdb_MoveMedium_t::source.

Referenced by la_SCSILibrary::Load(), Mv(), and la_SCSILibrary::Unload().

                                             {
    m_moveMediumCmd.source = hton(a_src);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void cdb_MoveMedium::SetTransport ( UInt16_t  a_trans  ) 

Definition at line 68 of file cdb_movemedium.cpp.

References hton(), m_moveMediumCmd, and cdb_MoveMedium_t::transport.

Referenced by la_SCSILibrary::Load(), Mv(), and la_SCSILibrary::Unload().

                                                  {
    m_moveMediumCmd.transport = hton(a_trans);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 553 of file cdb.h.


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