Public Member Functions | Private Attributes

cdb_Inquiry Class Reference
[SCSI Library]

CDB class, specialized for INQUIRY. More...

#include <cdb.h>

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

List of all members.

Public Member Functions

 cdb_Inquiry (data_Inquiry::inq_Type_t a_what=data_Inquiry::inq_STD)
virtual ~cdb_Inquiry ()
virtual const UInt8_tGetCmdPointer () const
virtual UInt32_t GetCmdSize () const
virtual Direction_e GetTransferDirection () const
virtual UInt8_tGetBufferPointer () const
virtual UInt32_t GetBufferSize () const
const data_InquiryGetInquiry () const

Private Attributes

 log_CLASSID_m
 Checks obvious parameters of a CDB.
cdb_Inquiry_t m_inquiryCmd
data_Inquiry m_inquiry
cdb_Buf_t m_transferBuffer [1]

Detailed Description

CDB class, specialized for INQUIRY.

Definition at line 121 of file cdb.h.


Constructor & Destructor Documentation

cdb_Inquiry::cdb_Inquiry ( data_Inquiry::inq_Type_t  a_what = data_Inquiry::inq_STD  ) 
cdb_Inquiry::~cdb_Inquiry (  )  [virtual]

Definition at line 78 of file cdb_inquiry.cpp.

                          {
}


Member Function Documentation

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

Reimplemented from scsi_CDB.

Definition at line 94 of file cdb_inquiry.cpp.

References data_Inquiry::GetInquiryData(), and m_inquiry.

                                             {
    return reinterpret_cast<UInt8_t*>(
        const_cast<data_Inquiry_t*>(
            &(m_inquiry.GetInquiryData()) ) );
}

Here is the call graph for this function:

UInt32_t cdb_Inquiry::GetBufferSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 100 of file cdb_inquiry.cpp.

References data_Inquiry::GetInquiryData(), and m_inquiry.

                                          {
    return sizeof(m_inquiry.GetInquiryData());
}

Here is the call graph for this function:

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

Reimplemented from scsi_CDB.

Definition at line 81 of file cdb_inquiry.cpp.

References m_inquiryCmd.

                                                {
    return reinterpret_cast<UInt8_t*>(
        const_cast<cdb_Inquiry_t*>(&m_inquiryCmd));
}

UInt32_t cdb_Inquiry::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 86 of file cdb_inquiry.cpp.

References m_inquiryCmd.

                                       {
    return sizeof(m_inquiryCmd);
}

const data_Inquiry& cdb_Inquiry::GetInquiry (  )  const [inline]

Definition at line 137 of file cdb.h.

Referenced by scsi_IO::InqSerialNumber(), and scsi_IO::InqStandard().

{ return m_inquiry; };

Here is the caller graph for this function:

Direction_e cdb_Inquiry::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 90 of file cdb_inquiry.cpp.

                                                    {
    return TRANSFER_IN;
}


Member Data Documentation

Checks obvious parameters of a CDB.

Reimplemented from scsi_CDB.

Definition at line 137 of file cdb.h.

Definition at line 150 of file cdb.h.

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

Definition at line 147 of file cdb.h.

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

Definition at line 153 of file cdb.h.


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