bea_DiskDrive Class Reference
[IVD Back-End Agent]

#include <bea_diskdrive.h>

Inheritance diagram for bea_DiskDrive:

Inheritance graph
[legend]
Collaboration diagram for bea_DiskDrive:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 26 of file bea_diskdrive.h.


Public Member Functions

 bea_DiskDrive ()
virtual void Open (const string &a_deviceID, const string &a_barcode, UInt64_t a_jobID)
virtual void Close ()
virtual const string & GetVendorID () const
virtual const string & GetProductID () const
virtual const string & GetProductRevision () const
virtual const string & GetSerialNumber () const
virtual UInt64_t GetDefaultSeekThreshold () const

Protected Member Functions

virtual ~bea_DiskDrive ()

Private Attributes

 log_CLASSID_m

Constructor & Destructor Documentation

bea_DiskDrive::bea_DiskDrive (  ) 

Definition at line 35 of file bea_diskdrive.cpp.

References log_FUNC_m.

00035                              {
00036 
00037     log_FUNC_m(bea_DiskDrive);
00038 }

bea_DiskDrive::~bea_DiskDrive (  )  [protected, virtual]

Definition at line 40 of file bea_diskdrive.cpp.

References log_FUNC_m.

00040                               {
00041     log_FUNC_m(~bea_DiskDrive);
00042 }


Member Function Documentation

void bea_DiskDrive::Open ( const string &  a_deviceID,
const string &  a_barcode,
UInt64_t  a_jobID 
) [virtual]

Implements bea_Drive.

Definition at line 44 of file bea_diskdrive.cpp.

References cmn_Global::evt, g_cmn, bea_Drive::GetMedium(), log_FUNC_A_m, bea_Medium::SetBarcode(), bea_Drive::SetJobID(), bea_Drive::SetMedium(), and log_EventLogger::SetQualifier().

00047                                {
00048 
00049     log_FUNC_A_m(Open,
00050         "a_deviceID: " << a_deviceID <<
00051         " a_bc: " << a_barcode <<
00052         " a_jobID: " << a_jobID);
00053 
00054     g_cmn.evt.SetQualifier(a_deviceID);
00055 
00056     SetMedium(new bea_DiskMedium(a_barcode));
00057 
00058     SetJobID(a_jobID);
00059 
00060     if (GetMedium()->GetBarcode() != a_barcode) {
00061         GetMedium()->SetBarcode(a_barcode);
00062     }
00063 }

Here is the call graph for this function:

void bea_DiskDrive::Close (  )  [virtual]

Implements bea_Drive.

Definition at line 65 of file bea_diskdrive.cpp.

References cmn_Global::evt, g_cmn, log_FUNC_m, NULL, bea_Drive::SetMedium(), and log_EventLogger::SetQualifier().

00065                           {
00066     log_FUNC_m(Close);
00067 
00068     g_cmn.evt.SetQualifier("");
00069 
00070     // Close all files and reset internal members
00071 
00072     SetMedium(NULL);
00073 }

Here is the call graph for this function:

const string & bea_DiskDrive::GetVendorID (  )  const [virtual]

Implements bea_Drive.

Definition at line 75 of file bea_diskdrive.cpp.

00075                                                {
00076     static const string vendor_c("UNKNOWN");
00077     return vendor_c;
00078 }

const string & bea_DiskDrive::GetProductID (  )  const [virtual]

Implements bea_Drive.

Definition at line 80 of file bea_diskdrive.cpp.

00080                                                 {
00081     static const string product_c("DISK-STORAGE");
00082     return product_c;
00083 }

const string & bea_DiskDrive::GetProductRevision (  )  const [virtual]

Implements bea_Drive.

Definition at line 85 of file bea_diskdrive.cpp.

00085                                                       {
00086     static const string revision_c("N/A");
00087     return revision_c;
00088 }

const string & bea_DiskDrive::GetSerialNumber (  )  const [virtual]

Implements bea_Drive.

Definition at line 90 of file bea_diskdrive.cpp.

00090                                                    {
00091     static const string serialno_c("N/A");
00092     return serialno_c;
00093 }

UInt64_t bea_DiskDrive::GetDefaultSeekThreshold (  )  const [virtual]

Reimplemented from bea_Drive.

Definition at line 95 of file bea_diskdrive.cpp.

References cfg_KILOBYTE.

00095                                                       {
00096     return cfg_KILOBYTE;
00097 }


Member Data Documentation

Reimplemented from bea_Drive.

Definition at line 48 of file bea_diskdrive.h.


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

Generated on Mon Feb 27 18:57:55 2012 for OPENARCHIVE by  doxygen 1.5.6