Public Member Functions | Private Attributes

cdb_ReadPosition Class Reference
[SCSI Library]

Get current logical position on tape. More...

#include <cdb.h>

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

List of all members.

Public Member Functions

 cdb_ReadPosition ()
virtual ~cdb_ReadPosition ()
virtual const UInt8_tGetCmdPointer () const
virtual UInt32_t GetCmdSize () const
virtual Direction_e GetTransferDirection () const
virtual UInt8_tGetBufferPointer () const
virtual UInt32_t GetBufferSize () const
data_Position GetPosition ()

Private Attributes

 log_CLASSID_m
cdb_ReadPosition_t m_readPositionCmd
data_Position m_position

Detailed Description

Get current logical position on tape.

Definition at line 299 of file cdb.h.


Constructor & Destructor Documentation

cdb_ReadPosition::cdb_ReadPosition (  ) 

Definition at line 32 of file cdb_readposition.cpp.

References m_readPositionCmd, and cdb_ReadPosition_t::opcode.

                                  {
    memset(&m_readPositionCmd, 0, sizeof(m_readPositionCmd));
    m_readPositionCmd.opcode = op_READ_POSITION;
}

cdb_ReadPosition::~cdb_ReadPosition (  )  [virtual]

Definition at line 37 of file cdb_readposition.cpp.

                                   {
}


Member Function Documentation

UInt8_t * cdb_ReadPosition::GetBufferPointer (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 53 of file cdb_readposition.cpp.

References data_Position::GetPosStruct(), and m_position.

                                                  {
    return reinterpret_cast<UInt8_t*>(
        const_cast<data_PositionShort_t*>(&(m_position.GetPosStruct()) ) );
}

Here is the call graph for this function:

UInt32_t cdb_ReadPosition::GetBufferSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 58 of file cdb_readposition.cpp.

References data_Position::GetPosStruct(), and m_position.

                                               {
    return sizeof(m_position.GetPosStruct());
}

Here is the call graph for this function:

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

Reimplemented from scsi_CDB.

Definition at line 40 of file cdb_readposition.cpp.

References m_readPositionCmd.

                                                     {
    return reinterpret_cast<UInt8_t*>(
        const_cast<cdb_ReadPosition_t*>(&m_readPositionCmd) );
}

UInt32_t cdb_ReadPosition::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 45 of file cdb_readposition.cpp.

References m_readPositionCmd.

                                            {
    return sizeof(m_readPositionCmd);
}

data_Position cdb_ReadPosition::GetPosition (  ) 

Definition at line 62 of file cdb_readposition.cpp.

References m_position.

Referenced by GetPos(), bea_TapeVolume::GetPosition(), Pos(), Rate(), and ReadBlockPos().

                                            {
    return m_position;
}

Here is the caller graph for this function:

Direction_e cdb_ReadPosition::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 49 of file cdb_readposition.cpp.

                                                         {
    return TRANSFER_IN;
}


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 314 of file cdb.h.

Definition at line 317 of file cdb.h.

Referenced by GetBufferPointer(), GetBufferSize(), and GetPosition().

Definition at line 316 of file cdb.h.

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


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