Public Types | Public Member Functions | Private Attributes

data_Inquiry Class Reference
[SCSI Library]

Inquiry Data. More...

#include <data.h>

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

List of all members.

Public Types

enum  inq_Type_t {
  inq_STD, inq_PAGES,
  inq_SERNO, inq_DEVID
}
enum  inq_Page_t {
  pg_PAGES = 0x00, pg_SERNO = 0x80,
  pg_DEVID = 0x83
}

Public Member Functions

 data_Inquiry (inq_Type_t a_what=inq_STD)
virtual ~data_Inquiry ()
const data_Inquiry_tGetInquiryData () const
inq_Type_t GetType ()
data_PageSet GetSupportedPages () const

Private Attributes

 log_CLASSID_m
inq_Type_t m_type
data_Inquiry_t m_inquiry

Detailed Description

Inquiry Data.

Standard and additional pages.

Definition at line 61 of file data.h.


Member Enumeration Documentation

Enumerator:
pg_PAGES 
pg_SERNO 
pg_DEVID 

Definition at line 70 of file data.h.

                 {
        pg_PAGES    = 0x00,
        pg_SERNO    = 0x80,
        pg_DEVID    = 0x83
    } inq_Page_t;

Enumerator:
inq_STD 
inq_PAGES 
inq_SERNO 
inq_DEVID 

Definition at line 63 of file data.h.

                 {
        inq_STD,
        inq_PAGES,
        inq_SERNO,
        inq_DEVID
    } inq_Type_t;


Constructor & Destructor Documentation

data_Inquiry::data_Inquiry ( inq_Type_t  a_what = inq_STD  ) 

Definition at line 32 of file data_inquiry.cpp.

    : m_type(a_what) {
    // Empty
}

data_Inquiry::~data_Inquiry (  )  [virtual]

Definition at line 37 of file data_inquiry.cpp.

                            {
    // Empty
}


Member Function Documentation

const data_Inquiry_t & data_Inquiry::GetInquiryData (  )  const

Definition at line 41 of file data_inquiry.cpp.

References m_inquiry.

Referenced by cdb_Inquiry::cdb_Inquiry(), cdb_Inquiry::GetBufferPointer(), cdb_Inquiry::GetBufferSize(), scsi_IO::InqSerialNumber(), and scsi_IO::InqStandard().

                                                         {
    return m_inquiry;
}

Here is the caller graph for this function:

data_PageSet data_Inquiry::GetSupportedPages (  )  const

Definition at line 45 of file data_inquiry.cpp.

References inq_PAGES, m_inquiry, m_type, data_InqPages_t::pageLen, data_InqPages_t::pages, and data_Inquiry_t::supportedPages.

                                                   {
    data_PageSet    pages;
    if (m_type != inq_PAGES) {
        return pages;
    }
    for (int i = 0; i < m_inquiry.supportedPages.pageLen; i++) {
        pages.insert(m_inquiry.supportedPages.pages[i]);
    }
    return pages;
}

inq_Type_t data_Inquiry::GetType (  )  [inline]

Definition at line 80 of file data.h.

References m_type.

{ return m_type; };


Member Data Documentation

Reimplemented from scsi_Data.

Definition at line 84 of file data.h.

Definition at line 87 of file data.h.

Referenced by GetInquiryData(), and GetSupportedPages().

Definition at line 86 of file data.h.

Referenced by GetSupportedPages(), and GetType().


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