#include <scsi_devicelist.h>
Definition at line 38 of file scsi_devicelist.h.
Public Member Functions | |
| scsi_DeviceList () | |
| virtual | ~scsi_DeviceList () |
| void | Scan () |
| void | Print () |
| scsi_Device_t * | FindBySCSIID (UInt32_t a_port, UInt32_t a_channel, UInt32_t a_id, UInt32_t a_lun) |
| scsi_Device_t * | FindBySerialNumber () |
Private Attributes | |
| scsi_DeviceVect_t | m_deviceVector |
| log_CLASSID_m | |
| scsi_DeviceList::scsi_DeviceList | ( | ) |
Definition at line 36 of file scsi_devicelist.cpp.
References log_FUNC_m, m_deviceVector, and Scan().
00036 { 00037 log_FUNC_m(scsi_DeviceList); 00038 00039 m_deviceVector.reserve(10); 00040 Scan(); // fill vector of devices... 00041 }

| scsi_DeviceList::~scsi_DeviceList | ( | ) | [virtual] |
Definition at line 43 of file scsi_devicelist.cpp.
References log_FUNC_m.
00043 { 00044 log_FUNC_m(~scsi_DeviceList); 00045 }
| void scsi_DeviceList::Scan | ( | ) |
Definition at line 49 of file scsi_devicelist.cpp.
References log_FUNC_m.
Referenced by scsi_DeviceList().
00049 { 00050 log_FUNC_m(scan); 00051 }

| void scsi_DeviceList::Print | ( | ) |
Definition at line 242 of file scsi_devicelist.cpp.
References log_FUNC_m, m_deviceVector, and scsi_GetDeviceTypeText().
Referenced by main().
00242 { 00243 log_FUNC_m(Print); 00244 00245 for (unsigned int i=0; i<m_deviceVector.size(); i++) { 00246 cout 00247 << endl 00248 << "** " << m_deviceVector[i].m_deviceName 00249 << " id:" 00250 << m_deviceVector[i].m_port << ":" 00251 << m_deviceVector[i].m_channel << ":" 00252 << m_deviceVector[i].m_id << ":" 00253 << m_deviceVector[i].m_lun 00254 << endl; 00255 00256 cout 00257 << endl 00258 << "SCSI device ID: " 00259 << "port " << m_deviceVector[i].m_port 00260 << ", ch " << m_deviceVector[i].m_channel 00261 << ", id " << m_deviceVector[i].m_id 00262 << ", lun " << m_deviceVector[i].m_lun 00263 << ", type " 00264 << scsi_GetDeviceTypeText(m_deviceVector[i].m_deviceType) << " " 00265 << m_deviceVector[i].m_deviceType 00266 << endl; 00267 00268 cout << "Device: " 00269 << m_deviceVector[i].m_vendorID << " " 00270 << m_deviceVector[i].m_productID << " " 00271 << m_deviceVector[i].m_productRevision << " " 00272 << "ser #: N/A std : N/A" 00273 << endl; 00274 00275 cout << endl << endl; 00276 } // for (...deviceVector.size()...) 00277 }


| scsi_Device_t * scsi_DeviceList::FindBySCSIID | ( | UInt32_t | a_port, | |
| UInt32_t | a_channel, | |||
| UInt32_t | a_id, | |||
| UInt32_t | a_lun | |||
| ) |
Definition at line 279 of file scsi_devicelist.cpp.
References dbg_LOW, log_DBG_m, log_FUNC_m, and m_deviceVector.
00282 { 00283 00284 log_FUNC_m(FindBySCSIID); 00285 00286 log_DBG_m(dbg_LOW, 00287 "Searching SCSI ID: " << 00288 a_port << ":" << 00289 a_channel << ":" << 00290 a_id << ":" << 00291 a_lun); 00292 00293 for (unsigned int i=0; i<m_deviceVector.size(); i++) { 00294 if ((a_port == ((m_deviceVector[i]).m_port )) && 00295 (a_channel == ((m_deviceVector[i]).m_channel)) && 00296 (a_id == ((m_deviceVector[i]).m_id)) && 00297 (a_lun == ((m_deviceVector[i]).m_lun))) { 00298 return &m_deviceVector[i]; 00299 } 00300 } 00301 return NULL; 00302 }
| scsi_Device_t * scsi_DeviceList::FindBySerialNumber | ( | ) |
Definition at line 304 of file scsi_devicelist.cpp.
References log_FUNC_m.
00304 { 00305 log_FUNC_m(FindBySerialNumber); 00306 00307 return NULL; 00308 }
Definition at line 58 of file scsi_devicelist.h.
Referenced by FindBySCSIID(), Print(), and scsi_DeviceList().
scsi_DeviceList::log_CLASSID_m [private] |
Definition at line 60 of file scsi_devicelist.h.
1.5.6