cdb_MoveMedium Class Reference
[SCSI Library]

#include <cdb.h>

Inheritance diagram for cdb_MoveMedium:

Inheritance graph
[legend]
Collaboration diagram for cdb_MoveMedium:

Collaboration graph
[legend]

List of all members.


Detailed Description

SCSI Move Medium command.

Definition at line 524 of file cdb.h.


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

Constructor & Destructor Documentation

cdb_MoveMedium::cdb_MoveMedium (  ) 

Definition at line 33 of file cdb_movemedium.cpp.

References m_moveMediumCmd, op_MOVE_MEDIUM, and cdb_MoveMedium_t::opcode.

00033                                {
00034     memset(&m_moveMediumCmd, 0, sizeof(m_moveMediumCmd));
00035     m_moveMediumCmd.opcode = op_MOVE_MEDIUM;
00036 }

cdb_MoveMedium::~cdb_MoveMedium (  )  [virtual]

Definition at line 38 of file cdb_movemedium.cpp.

00038                                 {
00039 }


Member Function Documentation

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

Reimplemented from scsi_CDB.

Definition at line 41 of file cdb_movemedium.cpp.

References m_moveMediumCmd.

00041                                                    {
00042     return reinterpret_cast<UInt8_t*>(
00043         const_cast<cdb_MoveMedium_t*>(&m_moveMediumCmd) );
00044 }

UInt32_t cdb_MoveMedium::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 46 of file cdb_movemedium.cpp.

References m_moveMediumCmd.

00046                                           {
00047     return sizeof(m_moveMediumCmd);
00048 }

Direction_e cdb_MoveMedium::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 50 of file cdb_movemedium.cpp.

References TRANSFER_NONE.

00050                                                        {
00051     return TRANSFER_NONE;
00052 }

void cdb_MoveMedium::SetTransport ( UInt16_t  a_trans  ) 

Definition at line 54 of file cdb_movemedium.cpp.

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

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

00054                                                   {
00055     m_moveMediumCmd.transport = hton(a_trans);
00056 }

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 58 of file cdb_movemedium.cpp.

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

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

00058                                              {
00059     m_moveMediumCmd.source = hton(a_src);
00060 }

Here is the call graph for this function:

Here is the caller graph for this function:

void cdb_MoveMedium::SetDestination ( UInt16_t  a_dest  ) 

Definition at line 62 of file cdb_movemedium.cpp.

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

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

00062                                                    {
00063     m_moveMediumCmd.destination = hton(a_dest);
00064 }

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 539 of file cdb.h.


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

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